HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_AIFMath.h File Reference
#include "GA_API.h"
#include "GA_Types.h"
#include <UT/UT_VectorTypes.h>
#include <SYS/SYS_Types.h>
+ Include dependency graph for GA_AIFMath.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GA_AIFMath
 Attribute Interface class to perform numeric operations on attributes. More...
 

Macros

#define GA_MATH_SPEC_BINARY_PURE(NAME)
 
#define GA_MATH_SPEC_BINARY(NAME)
 Convenience define for sub-class implementations. More...
 
#define GA_MATH_SPEC_TRANSFORM_PURE(DTYPE, FTYPE, NAME)
 
#define GA_MATH_SPEC_TRANSFORM(DTYPE, FTYPE, NAME)
 

Macro Definition Documentation

#define GA_MATH_SPEC_BINARY (   NAME)
Value:
bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
fpreal b, int component=-1) const override; \
bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
const fpreal32 *b, int tuple_size, \
int component=-1) const override; \
bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
const fpreal64 *b, int tuple_size, \
int component=-1) const override; \
bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
const GA_Attribute &b, GA_Offset bi, \
int component=-1) const override;
Definition of a geometry attribute.
Definition: GA_Attribute.h:198
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
float fpreal32
Definition: SYS_Types.h:200
double fpreal64
Definition: SYS_Types.h:201
GA_Size GA_Offset
Definition: GA_Types.h:641
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
fpreal64 fpreal
Definition: SYS_Types.h:277

Convenience define for sub-class implementations.

Definition at line 121 of file GA_AIFMath.h.

#define GA_MATH_SPEC_BINARY_PURE (   NAME)
Value:
virtual bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
fpreal b, int component=-1) const = 0; \
virtual bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
const fpreal32 *b, int tuple_size, \
int component=-1) const = 0; \
virtual bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
const fpreal64 *b, int tuple_size, \
int component=-1) const = 0; \
virtual bool NAME(GA_Attribute &d, GA_Offset di, \
const GA_Attribute &a, GA_Offset ai, \
const GA_Attribute &b, GA_Offset bi, \
int component=-1) const = 0;
Definition of a geometry attribute.
Definition: GA_Attribute.h:198
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
float fpreal32
Definition: SYS_Types.h:200
double fpreal64
Definition: SYS_Types.h:201
GA_Size GA_Offset
Definition: GA_Types.h:641
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
fpreal64 fpreal
Definition: SYS_Types.h:277

Specialization macro for binary operations. This macro provides 9 specializations for various combinations of parameters. In the base class, these methods simply call the generic implementations of the operations, returning false if the attribute doesn't support required elements.

Definition at line 103 of file GA_AIFMath.h.

#define GA_MATH_SPEC_TRANSFORM (   DTYPE,
  FTYPE,
  NAME 
)
Value:
bool NAME(const DTYPE &xform, \
const GA_Attribute &s, \
GA_Offset si) const override; \
bool NAME(const FTYPE &xform, \
const GA_Attribute &s, GA_Offset si) const override;
Definition of a geometry attribute.
Definition: GA_Attribute.h:198
GLdouble s
Definition: glad.h:3009
GA_Size GA_Offset
Definition: GA_Types.h:641

Definition at line 155 of file GA_AIFMath.h.

#define GA_MATH_SPEC_TRANSFORM_PURE (   DTYPE,
  FTYPE,
  NAME 
)
Value:
virtual bool NAME(const DTYPE &xform, \
const GA_Attribute &s, GA_Offset si) const=0; \
virtual bool NAME(const FTYPE &xform, \
const GA_Attribute &s, GA_Offset si) const=0;
Definition of a geometry attribute.
Definition: GA_Attribute.h:198
GLdouble s
Definition: glad.h:3009
GA_Size GA_Offset
Definition: GA_Types.h:641

Definition at line 147 of file GA_AIFMath.h.