GT_Transform Class Reference

A simple interface to provide multiple-segments of transforms. More...

#include <GT_Transform.h>

List of all members.

Public Member Functions

 GT_Transform ()
 Default c-tor.
 GT_Transform (const GT_Transform &src)
 Copy c-tor.
 GT_Transform (const UT_Matrix4F *xforms, int nsegments)
 Initialize with single precision transforms.
 GT_Transform (const UT_Matrix4D *xforms, int nsegments)
 Initialize with double precision transforms.
 ~GT_Transform ()
GT_Transformoperator= (const GT_Transform &m)
 Assignment operator.
void computeInverse ()
int64 getMemoryUsage () const
 Return approximate memory usage.
int getSegments () const
 Return motion segments.
bool isIdentity () const
 Test whether the transform is an identity matrix.
void incref ()
void decref ()
void alloc (int nsegments)
void setMatrix (const UT_Matrix4F &xform, int segment)
void setMatrix (const UT_Matrix4D &xform, int segment)
GT_TransformpreMultiply (const UT_Matrix4D &xform) const
GT_Transformmultiply (const UT_Matrix4D &xform) const
void getMatrix (UT_Matrix4F &xform, int segment=0) const
void getMatrix (UT_Matrix4D &xform, int segment=0) const
void getInverse (UT_Matrix4F &xform, int segment=0) const
void getInverse (UT_Matrix4D &xform, int segment=0) const
GT_DataArrayHandle transform (const GT_DataArrayHandle &src, int segment=0) const

Static Public Member Functions

static GT_TransformHandle identity ()
 Get the identity transform (as a handle).


Detailed Description

A simple interface to provide multiple-segments of transforms.

Definition at line 27 of file GT_Transform.h.


Constructor & Destructor Documentation

GT_Transform::GT_Transform (  ) 

Default c-tor.

GT_Transform::GT_Transform ( const GT_Transform src  ) 

Copy c-tor.

GT_Transform::GT_Transform ( const UT_Matrix4F xforms,
int  nsegments 
)

Initialize with single precision transforms.

GT_Transform::GT_Transform ( const UT_Matrix4D xforms,
int  nsegments 
)

Initialize with double precision transforms.

GT_Transform::~GT_Transform (  ) 


Member Function Documentation

void GT_Transform::alloc ( int  nsegments  ) 

Initialize the matrix

void GT_Transform::computeInverse (  ) 

Compute inverse transforms. This will be done lazily when getting inverse transforms.

void GT_Transform::decref (  )  [inline]

Reference counting

Definition at line 49 of file GT_Transform.h.

void GT_Transform::getInverse ( UT_Matrix4D xform,
int  segment = 0 
) const

Extract a matrix

void GT_Transform::getInverse ( UT_Matrix4F xform,
int  segment = 0 
) const

Extract a matrix

void GT_Transform::getMatrix ( UT_Matrix4D xform,
int  segment = 0 
) const

Extract a matrix

void GT_Transform::getMatrix ( UT_Matrix4F xform,
int  segment = 0 
) const

Extract a matrix

int64 GT_Transform::getMemoryUsage (  )  const

Return approximate memory usage.

int GT_Transform::getSegments (  )  const [inline]

Return motion segments.

Definition at line 78 of file GT_Transform.h.

static GT_TransformHandle GT_Transform::identity (  )  [static]

Get the identity transform (as a handle).

void GT_Transform::incref (  )  [inline]

Reference counting

Definition at line 48 of file GT_Transform.h.

bool GT_Transform::isIdentity (  )  const [inline]

Test whether the transform is an identity matrix.

Definition at line 98 of file GT_Transform.h.

GT_Transform* GT_Transform::multiply ( const UT_Matrix4D xform  )  const

Multiply this transform by a single matrix. This applies the matrix to all the embedded transforms.

GT_Transform& GT_Transform::operator= ( const GT_Transform m  ) 

Assignment operator.

GT_Transform* GT_Transform::preMultiply ( const UT_Matrix4D xform  )  const

Multiply this transform by a single matrix. This applies the matrix to all the embedded transforms.

void GT_Transform::setMatrix ( const UT_Matrix4D xform,
int  segment 
)

Initialize the matrix

void GT_Transform::setMatrix ( const UT_Matrix4F xform,
int  segment 
)

Initialize the matrix

GT_DataArrayHandle GT_Transform::transform ( const GT_DataArrayHandle src,
int  segment = 0 
) const

Transform a data array (using the type info on the array)


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

Generated on Thu Jan 31 00:31:14 2013 for HDK by  doxygen 1.5.9