HDK
|
Attribute Interface class to perform numeric operations on attributes. More...
#include <GA_AIFMath.h>
Public Member Functions | |
GA_AIFMath () | |
virtual | ~GA_AIFMath () |
Static Public Member Functions | |
static const GA_AIFMath * | getNoMath () |
Attribute Interface class to perform numeric operations on attributes.
This class provides the interface to perform numerical operations on attribute data. Each attribute type may provide this interface if it makes sense.
Basic mathematicl operations.
Common mathematical operations
Matrix Operations
Signatures
When performing operations on attributes, there are different variable types.
Many operations may also be performed on one or more components of the tuple of values. The methods which take a component parameter will use the component to work only on a single component of the tuple. If the component parameter is less than zero, the operation will be applied to all components.
For example, the add() operation has the following signatures
To assist with being able to implement all these operations with minimal effort, please see the GA_AttributeOperand class. All of the specialized methods will simply call into the method which handles the operand. If you wish to specialize the methods to be more efficient, you can do that by overriding the specific method. In the case of add(), the generic operation is.
Definition at line 88 of file GA_AIFMath.h.
|
inline |
Definition at line 91 of file GA_AIFMath.h.
|
virtual |
|
static |
Create an AIFMath which performs no arithmetic on any objects. This is different than not having an AIFMath.