HDK
|
Handle to a transformable attribute. More...
#include <GA_AttributeTransformer.h>
Public Types | |
typedef void(* | GAtransformPageF )(const Handle &handle, const Transform< fpreal32 > &context, GA_Offset start, GA_Offset end) |
typedef void(* | GAtransformPageD )(const Handle &handle, const Transform< fpreal64 > &context, GA_Offset start, GA_Offset end) |
typedef void(* | GAtransformF )(const Handle &handle, const Transform< fpreal32 > &context, GA_Offset offset) |
typedef void(* | GAtransformD )(const Handle &handle, const Transform< fpreal64 > &context, GA_Offset offset) |
Public Member Functions | |
Handle (GA_Attribute *attrib, bool keep_length=false) | |
Construct a handle for a given attribute. More... | |
~Handle () | |
bool | isValid () const |
Check to see whether the attribute is valid. More... | |
GA_TypeInfo | getType () const |
Return the GA_TypeInfo for the attribute. More... | |
bool | isDouble () const |
void | transform (const Transform< fpreal32 > &ctx, GA_Offset start, GA_Offset end) const |
void | transform (const Transform< fpreal64 > &ctx, GA_Offset start, GA_Offset end) const |
void | transform (const Transform< fpreal32 > &ctx, GA_Offset offset) const |
void | transform (const Transform< fpreal64 > &ctx, GA_Offset offset) const |
bool | keepLength () const |
void | setKeepLength (bool v) |
GA_Attribute * | getAttribute () const |
template<typename FLOAT_T > | |
const GA_RWHandleT < UT_Vector3T< FLOAT_T > > & | getV3 () const |
const GA_AIFMath * | getMath () const |
const GA_AIFTuple * | getTuple () const |
bool | needInverse () const |
bool | needQuaternion () const |
Handle to a transformable attribute.
Definition at line 112 of file GA_AttributeTransformer.h.
typedef void(* GA_AttributeTransformer::Handle::GAtransformD)(const Handle &handle, const Transform< fpreal64 > &context, GA_Offset offset) |
Handle callback functions. These perform different styles of transformation depending on the attribute type properties.
Definition at line 127 of file GA_AttributeTransformer.h.
typedef void(* GA_AttributeTransformer::Handle::GAtransformF)(const Handle &handle, const Transform< fpreal32 > &context, GA_Offset offset) |
Handle callback functions. These perform different styles of transformation depending on the attribute type properties.
Definition at line 124 of file GA_AttributeTransformer.h.
typedef void(* GA_AttributeTransformer::Handle::GAtransformPageD)(const Handle &handle, const Transform< fpreal64 > &context, GA_Offset start, GA_Offset end) |
Handle callback functions. These perform different styles of transformation depending on the attribute type properties.
Definition at line 121 of file GA_AttributeTransformer.h.
typedef void(* GA_AttributeTransformer::Handle::GAtransformPageF)(const Handle &handle, const Transform< fpreal32 > &context, GA_Offset start, GA_Offset end) |
Handle callback functions. These perform different styles of transformation depending on the attribute type properties.
Definition at line 118 of file GA_AttributeTransformer.h.
GA_AttributeTransformer::Handle::Handle | ( | GA_Attribute * | attrib, |
bool | keep_length = false |
||
) |
Construct a handle for a given attribute.
|
inline |
Definition at line 134 of file GA_AttributeTransformer.h.
|
inline |
Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!
Definition at line 167 of file GA_AttributeTransformer.h.
|
inline |
Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!
Definition at line 176 of file GA_AttributeTransformer.h.
|
inline |
Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!
Definition at line 177 of file GA_AttributeTransformer.h.
|
inline |
Return the GA_TypeInfo for the attribute.
Definition at line 155 of file GA_AttributeTransformer.h.
|
inline |
Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!
Definition at line 169 of file GA_AttributeTransformer.h.
|
inline |
Check if the attribute is double-precision, if can choose between single and double-precision transformation.
Definition at line 189 of file GA_AttributeTransformer.h.
|
inline |
Check to see whether the attribute is valid.
Definition at line 153 of file GA_AttributeTransformer.h.
|
inline |
Check whether length of vectors/normals should be preserved after transforming.
Definition at line 160 of file GA_AttributeTransformer.h.
|
inline |
Check whether the inverse matrix or quaternion transform are required
Definition at line 183 of file GA_AttributeTransformer.h.
|
inline |
Check whether the inverse matrix or quaternion transform are required
Definition at line 184 of file GA_AttributeTransformer.h.
|
inline |
Check whether length of vectors/normals should be preserved after transforming.
Definition at line 161 of file GA_AttributeTransformer.h.
|
inline |
Transform the attribute using the handle callback
Definition at line 138 of file GA_AttributeTransformer.h.
|
inline |
Transform the attribute using the handle callback
Definition at line 141 of file GA_AttributeTransformer.h.
|
inline |
Transform the attribute using the handle callback
Definition at line 144 of file GA_AttributeTransformer.h.
|
inline |
Transform the attribute using the handle callback
Definition at line 147 of file GA_AttributeTransformer.h.