HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_DAClampedArray.h File Reference
#include "GT_API.h"
#include "GT_DAInherit.h"
#include <UT/UT_StringArray.h>
#include <UT/UT_ValArray.h>
+ Include dependency graph for GT_DAClampedArray.h:

Go to the source code of this file.

Classes

class  GT_DAClampedArray
 A value-clamped version of another array, useful for data ranges. More...
 

Macros

#define CLAMP(EXPR, TYPE)   SYSclamp((EXPR), (TYPE)myMin, (TYPE)myMax)
 
#define CLAMP_VALUES(TYPE)
 
#define CLAMP_ARRAY(TYPE)
 

Macro Definition Documentation

#define CLAMP (   EXPR,
  TYPE 
)    SYSclamp((EXPR), (TYPE)myMin, (TYPE)myMax)

Definition at line 42 of file GT_DAClampedArray.h.

#define CLAMP_ARRAY (   TYPE)
Value:
for(int i=0; i<data.entries(); i++) \
data(i) = SYSclamp(data(i), (TYPE)myMin, (TYPE)myMax)
GLboolean * data
Definition: glcorearb.h:131
UT_Vector3T< T > SYSclamp(const UT_Vector3T< T > &v, const UT_Vector3T< T > &min, const UT_Vector3T< T > &max)
Definition: UT_Vector3.h:1057
Definition: format.h:895

Definition at line 104 of file GT_DAClampedArray.h.

#define CLAMP_VALUES (   TYPE)
Value:
for(exint i=0; i<sz; i++) \
d[i] = SYSclamp(d[i], TYPE(myMin), TYPE(myMax))
int64 exint
Definition: SYS_Types.h:125
UT_Vector3T< T > SYSclamp(const UT_Vector3T< T > &v, const UT_Vector3T< T > &min, const UT_Vector3T< T > &max)
Definition: UT_Vector3.h:1057

Definition at line 74 of file GT_DAClampedArray.h.