HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 112 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 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.

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 134 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 167 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 176 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 177 of file GA_AttributeTransformer.h.

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

Return the GA_TypeInfo for the attribute.

Definition at line 155 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 169 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 189 of file GA_AttributeTransformer.h.

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

Check to see whether the attribute is valid.

Definition at line 153 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 160 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 183 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 184 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 161 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 138 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 141 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 144 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 147 of file GA_AttributeTransformer.h.


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