HDK
|
Class to efficiently transform multiple attributes. More...
#include <GA_AttributeTransformer.h>
Classes | |
class | Handle |
Handle to a transformable attribute. More... | |
class | Transform |
Class to pass transforms to GA_AttributeTransformer. More... | |
Class to efficiently transform multiple attributes.
This class will transform attributes as efficiently as possible, depending on the attribute's properties. The transformer works on a single class of attributes (i.e. GA_ATTRIB_POINT).
Definition at line 41 of file GA_AttributeTransformer.h.
GA_AttributeTransformer::GA_AttributeTransformer | ( | GA_Detail & | gdp, |
GA_AttributeOwner | owner | ||
) |
GA_AttributeTransformer::~GA_AttributeTransformer | ( | ) |
void GA_AttributeTransformer::addAttribute | ( | GA_Attribute * | attrib, |
bool | keep_lengths = false |
||
) |
Add a single transformable attributes to the handle list. When keep_length
is set, normals and vectors will maintain their lengths under scaling.
void GA_AttributeTransformer::addAttributes | ( | bool | keep_lengths = false | ) |
Add all transformable attributes to the handle list. When keep_length
is set, normals and vectors will maintain their lengths under scaling.
void GA_AttributeTransformer::addAttributes | ( | const GA_AttributeFilter & | filter, |
bool | keep_lenghts = false |
||
) |
Add a filtered selection of attributes to the handle list. The filter should filter out non-transforming attributes. When keep_length
is set, normals and vectors will maintain their lengths under scaling.
void GA_AttributeTransformer::clearAttributes | ( | ) |
Clear the list of transformable attributes.
|
inline |
Return the number of attributes which will be transformed.
Definition at line 234 of file GA_AttributeTransformer.h.
|
inline |
Return the bound detail.
Definition at line 238 of file GA_AttributeTransformer.h.
Return the handle to the individual attribute.
Definition at line 236 of file GA_AttributeTransformer.h.
|
inline |
Check whether any attributes are single- or double-precision
Definition at line 270 of file GA_AttributeTransformer.h.
|
inline |
Check whether any attributes are single- or double-precision
Definition at line 269 of file GA_AttributeTransformer.h.
|
inline |
Check whether any attributes require the inverse/quaternion transforms
Definition at line 263 of file GA_AttributeTransformer.h.
|
inline |
Check whether any attributes require the inverse/quaternion transforms
Definition at line 264 of file GA_AttributeTransformer.h.