HDK
|
Go to the source code of this file.
Macros | |
#define | GA_AIFINTERP_OPERAND_METHODS(BASECLASS) |
Functions | |
virtual bool | endSum (GA_Attribute &d, GA_Offset di, const GA_WeightedSum &sum, fpreal scale_factor=1) const =0 |
Attribute Interface class to perform interpolation operations on attributes. More... | |
virtual bool | endSquare (GA_Attribute &d, GA_Offset di, const GA_WeightedSum &sum, fpreal scale_factor=1) const =0 |
virtual bool | addHSum (GA_Attribute &d, GA_Offset di, const GA_WeightedSum &sum, const GA_Attribute &a, GA_Offset ai) const |
virtual bool | addHSquare (GA_Attribute &d, GA_Offset di, const GA_WeightedSum &sum, const GA_Attribute &a, GA_Offset ai) const |
Add the square of the homogeneous input to the sum. More... | |
virtual bool | endHSum (GA_Attribute &d, GA_Offset di, const GA_WeightedSum &sum, fpreal scale_factor=1) const |
virtual bool | endHSquare (GA_Attribute &d, GA_Offset di, const GA_WeightedSum &sum, fpreal scale_factor=1) const |
virtual bool | lerp (GA_AttributeOperand &d, GA_AttributeOperand &a, GA_AttributeOperand &b, GA_AttributeOperand &t) const |
d = SYSlerp(a, b, t); More... | |
virtual bool | smooth (GA_AttributeOperand &d, GA_AttributeOperand &min, GA_AttributeOperand &max, GA_AttributeOperand &t) const |
d = SYSsmooth(min, max, t); More... | |
virtual bool | fit (GA_AttributeOperand &d, GA_AttributeOperand &a, GA_AttributeOperand &omin, GA_AttributeOperand &omax, GA_AttributeOperand &nmin, GA_AttributeOperand &nmax) const |
d = SYSfit(a, omin, omax, nmin, nmax); More... | |
virtual bool | fit01 (GA_AttributeOperand &d, GA_AttributeOperand &a, GA_AttributeOperand &nmin, GA_AttributeOperand &nmax) const |
d = SYSfit(a, 0, 1, nmin, nmax); More... | |
virtual bool | fit01 (GA_Attribute &d, const GA_Range &di, const GA_Attribute &a, const GA_Range &ai, fpreal nmin, fpreal nmax) const |
virtual bool | fit01 (GA_Attribute &d, GA_Offset di, const GA_Attribute &a, GA_Offset ai, fpreal nmin, fpreal nmax) const |
virtual bool | lerp (GA_Attribute &d, GA_Offset di, const GA_Attribute &a, GA_Offset ai, const GA_Attribute &b, GA_Offset bi, fpreal t) const =0 |
virtual bool | lerp (GA_Attribute &d, const GA_Range &di, const GA_Attribute &a, const GA_Range &ai, const GA_Attribute &b, const GA_Range &bi, fpreal t) const =0 |
virtual bool | lerp (GA_Attribute &d, const GA_Range &di, const GA_Attribute &a, const GA_Range &ai, const GA_Attribute &b, const GA_Range &bi, const GA_Attribute &t, const GA_Range &ti) const =0 |
virtual bool | smooth (GA_Attribute &d, GA_Offset di, fpreal min, fpreal max, const GA_Attribute &a, GA_Offset ai) const =0 |
virtual bool | smooth (GA_Attribute &d, const GA_Range &di, fpreal min, fpreal max, const GA_Attribute &a, const GA_Range &ai) const =0 |
virtual bool | fit (GA_Attribute &d, GA_Offset di, const GA_Attribute &a, GA_Offset ai, fpreal omin, fpreal omax, fpreal nmin, fpreal nmax) const =0 |
virtual bool | fit (GA_Attribute &d, const GA_Range &di, const GA_Attribute &a, const GA_Range &ai, fpreal omin, fpreal omax, fpreal nmin, fpreal nmax) const =0 |
#define GA_AIFINTERP_OPERAND_METHODS | ( | BASECLASS | ) |
This macro can be used to implement the non-pure virtual attribute operand methods by calling the baseclass given (usually GA_AIFMath). For example, it might be used as:
Definition at line 253 of file GA_AIFInterp.h.
|
virtual |
Add the square of the homogeneous input to the sum.
|
virtual |
Add an element into the weighted sum where the element refers to homogeneous coordinates.
The wsum
should be used in the endSum() to correct the normalization. That is, the endSum() code should look like:
where the scale_factor is the non-homogeneous scale factor.
d | Destination attribute |
di | Destination offset |
sum | Storage for state of weighted sum |
a | Attribute to add into the sum |
ai | Index of the attribute to add into the sum |
|
virtual |
Finish a weighted sum for homogeneous coordinates by scaling then taking the square root. For example:
|
virtual |
Finish a weighted sum for homogeneous coordinates. The scale_factor can be used to normalize weighting. For example:
|
pure virtual |
Finish a weighted sum by scaling then taking the square root of the sum. The scale_factor can be used to normalize weighting. For example:
A scale of 1 will result in the result being the square root of the sum.
|
pure virtual |
Attribute Interface class to perform interpolation operations on attributes.
This class provides an interface to perform interpolation operations on attribute data.
|
virtual |
d = SYSfit(a, omin, omax, nmin, nmax);
|
pure virtual |
Specializations of common method
|
pure virtual |
Specializations of common method
|
virtual |
d = SYSfit(a, 0, 1, nmin, nmax);
|
virtual |
|
virtual |
|
virtual |
d = SYSlerp(a, b, t);
|
pure virtual |
Specializations of common method
|
pure virtual |
Specializations of common method
|
pure virtual |
Specializations of common method
|
virtual |
d = SYSsmooth(min, max, t);
|
pure virtual |
Specializations of common method
|
pure virtual |
Specializations of common method