HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_AttributeTransformer::Handle Class Reference

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_AttributegetAttribute () const
 
template<typename FLOAT_T >
const GA_RWHandleT
< UT_Vector3T< FLOAT_T > > & 
getV3 () const
 
const GA_AIFMathgetMath () const
 
const GA_AIFTuplegetTuple () const
 
bool needInverse () const
 
bool needQuaternion () const
 

Detailed Description

Handle to a transformable attribute.

Definition at line 114 of file GA_AttributeTransformer.h.

Member Typedef Documentation

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 129 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 126 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 123 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 120 of file GA_AttributeTransformer.h.

Constructor & Destructor Documentation

GA_AttributeTransformer::Handle::Handle ( GA_Attribute attrib,
bool  keep_length = false 
)

Construct a handle for a given attribute.

GA_AttributeTransformer::Handle::~Handle ( )
inline

Definition at line 136 of file GA_AttributeTransformer.h.

Member Function Documentation

GA_Attribute* GA_AttributeTransformer::Handle::getAttribute ( ) const
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.

const GA_AIFMath* GA_AttributeTransformer::Handle::getMath ( ) const
inline

Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!

Definition at line 178 of file GA_AttributeTransformer.h.

const GA_AIFTuple* GA_AttributeTransformer::Handle::getTuple ( ) const
inline

Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!

Definition at line 179 of file GA_AttributeTransformer.h.

GA_TypeInfo GA_AttributeTransformer::Handle::getType ( void  ) const
inline

Return the GA_TypeInfo for the attribute.

Definition at line 157 of file GA_AttributeTransformer.h.

template<typename FLOAT_T >
const GA_RWHandleT<UT_Vector3T<FLOAT_T> >& GA_AttributeTransformer::Handle::getV3 ( ) const
inline

Accessors to provide information in the callback handle functions NOTE: Always check isDouble() before calling getV3!

Definition at line 171 of file GA_AttributeTransformer.h.

bool GA_AttributeTransformer::Handle::isDouble ( ) const
inline

Check if the attribute is double-precision, if can choose between single and double-precision transformation.

Definition at line 191 of file GA_AttributeTransformer.h.

bool GA_AttributeTransformer::Handle::isValid ( ) const
inline

Check to see whether the attribute is valid.

Definition at line 155 of file GA_AttributeTransformer.h.

bool GA_AttributeTransformer::Handle::keepLength ( ) const
inline

Check whether length of vectors/normals should be preserved after transforming.

Definition at line 162 of file GA_AttributeTransformer.h.

bool GA_AttributeTransformer::Handle::needInverse ( ) const
inline

Check whether the inverse matrix or quaternion transform are required

Definition at line 185 of file GA_AttributeTransformer.h.

bool GA_AttributeTransformer::Handle::needQuaternion ( ) const
inline

Check whether the inverse matrix or quaternion transform are required

Definition at line 186 of file GA_AttributeTransformer.h.

void GA_AttributeTransformer::Handle::setKeepLength ( bool  v)
inline

Check whether length of vectors/normals should be preserved after transforming.

Definition at line 163 of file GA_AttributeTransformer.h.

void GA_AttributeTransformer::Handle::transform ( const Transform< fpreal32 > &  ctx,
GA_Offset  start,
GA_Offset  end 
) const
inline

Transform the attribute using the handle callback

Definition at line 140 of file GA_AttributeTransformer.h.

void GA_AttributeTransformer::Handle::transform ( const Transform< fpreal64 > &  ctx,
GA_Offset  start,
GA_Offset  end 
) const
inline

Transform the attribute using the handle callback

Definition at line 143 of file GA_AttributeTransformer.h.

void GA_AttributeTransformer::Handle::transform ( const Transform< fpreal32 > &  ctx,
GA_Offset  offset 
) const
inline

Transform the attribute using the handle callback

Definition at line 146 of file GA_AttributeTransformer.h.

void GA_AttributeTransformer::Handle::transform ( const Transform< fpreal64 > &  ctx,
GA_Offset  offset 
) const
inline

Transform the attribute using the handle callback

Definition at line 149 of file GA_AttributeTransformer.h.


The documentation for this class was generated from the following file: