HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_AttributeTransformer::Transform< FLOAT_T > Class Template Reference

Class to pass transforms to GA_AttributeTransformer. More...

#include <GA_AttributeTransformer.h>

Public Types

typedef FLOAT_T ValueType
 

Public Member Functions

 Transform ()
 
template<typename FLOAT_T2 >
 Transform (const UT_Matrix4T< FLOAT_T2 > &m)
 
template<typename FLOAT_T2 >
void set (const UT_Matrix4T< FLOAT_T2 > &m)
 Set the matrix. More...
 
void computeInverse ()
 Compute the inverse (if required) More...
 
void computeQuaternion ()
 Compute the quaternion transform (if required) More...
 
const UT_Matrix4T< FLOAT_T > & xform () const
 
const UT_Matrix4T< FLOAT_T > & ixform () const
 
const UT_QuaternionT< FLOAT_T > & q () const
 

Detailed Description

template<typename FLOAT_T>
class GA_AttributeTransformer::Transform< FLOAT_T >

Class to pass transforms to GA_AttributeTransformer.

Computing inverse/quaternion transforms can be expensive. If possible, you should reuse unchanging Transform objects rather than re-building them when performing multiple transforms.

Definition at line 50 of file GA_AttributeTransformer.h.

Member Typedef Documentation

template<typename FLOAT_T>
typedef FLOAT_T GA_AttributeTransformer::Transform< FLOAT_T >::ValueType

Definition at line 53 of file GA_AttributeTransformer.h.

Constructor & Destructor Documentation

template<typename FLOAT_T>
GA_AttributeTransformer::Transform< FLOAT_T >::Transform ( )
inline

Definition at line 54 of file GA_AttributeTransformer.h.

template<typename FLOAT_T>
template<typename FLOAT_T2 >
GA_AttributeTransformer::Transform< FLOAT_T >::Transform ( const UT_Matrix4T< FLOAT_T2 > &  m)
inline

Definition at line 61 of file GA_AttributeTransformer.h.

Member Function Documentation

template<typename FLOAT_T>
void GA_AttributeTransformer::Transform< FLOAT_T >::computeInverse ( )
inline

Compute the inverse (if required)

Definition at line 76 of file GA_AttributeTransformer.h.

template<typename FLOAT_T>
void GA_AttributeTransformer::Transform< FLOAT_T >::computeQuaternion ( )
inline

Compute the quaternion transform (if required)

Definition at line 88 of file GA_AttributeTransformer.h.

template<typename FLOAT_T>
const UT_Matrix4T<FLOAT_T>& GA_AttributeTransformer::Transform< FLOAT_T >::ixform ( ) const
inline

Accessor

Definition at line 101 of file GA_AttributeTransformer.h.

template<typename FLOAT_T>
const UT_QuaternionT<FLOAT_T>& GA_AttributeTransformer::Transform< FLOAT_T >::q ( ) const
inline

Accessor

Definition at line 102 of file GA_AttributeTransformer.h.

template<typename FLOAT_T>
template<typename FLOAT_T2 >
void GA_AttributeTransformer::Transform< FLOAT_T >::set ( const UT_Matrix4T< FLOAT_T2 > &  m)
inline

Set the matrix.

Definition at line 69 of file GA_AttributeTransformer.h.

template<typename FLOAT_T>
const UT_Matrix4T<FLOAT_T>& GA_AttributeTransformer::Transform< FLOAT_T >::xform ( ) const
inline

Accessor

Definition at line 100 of file GA_AttributeTransformer.h.


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