HDK
|
A simple interface to provide multiple-segments of transforms. More...
#include <GT_Transform.h>
Static Public Member Functions | |
static const GT_TransformHandle & | identity () |
Get the identity transform (as a handle) More... | |
static bool | load (GT_TransformHandle &x, UT_JSONParser &p) |
Load from a JSON stream/value. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_Transform > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
A simple interface to provide multiple-segments of transforms.
Definition at line 22 of file GT_Transform.h.
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 | ( | ) |
void GT_Transform::computeInverse | ( | ) |
Compute inverse transforms. This will be done lazily when getting inverse transforms.
void GT_Transform::getInverse | ( | UT_Matrix4F & | xform, |
int | segment = 0 |
||
) | const |
Extract a matrix
void GT_Transform::getInverse | ( | UT_Matrix4D & | xform, |
int | segment = 0 |
||
) | const |
Extract a matrix
void GT_Transform::getMatrix | ( | UT_Matrix4F & | xform, |
int | segment = 0 |
||
) | const |
Extract a matrix
void GT_Transform::getMatrix | ( | UT_Matrix4D & | xform, |
int | segment = 0 |
||
) | const |
Extract a matrix
int64 GT_Transform::getMemoryUsage | ( | ) | const |
Return approximate memory usage.
|
inline |
Return motion segments.
Definition at line 81 of file GT_Transform.h.
|
static |
Get the identity transform (as a handle)
GT_TransformHandle GT_Transform::invert | ( | ) | const |
Return the inverse transform.
|
inline |
Test whether the transform is an identity matrix.
Definition at line 104 of file GT_Transform.h.
|
static |
Load from a JSON stream/value.
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::multiply | ( | const UT_Matrix4F & | xform | ) | const |
Multiply this transform by a single matrix. This applies the matrix to all the embedded transforms.
GT_TransformHandle GT_Transform::multiply | ( | const GT_Transform & | x | ) | const |
Multiply this transform by a single matrix. This applies the matrix to all the embedded transforms.
GT_Transform* GT_Transform::multiply | ( | const UT_Matrix3D & | xform | ) | const |
Multiply by the 3x3 transform (not including translates)
GT_Transform* GT_Transform::multiply | ( | const UT_Matrix3F & | xform | ) | const |
Multiply by the 3x3 transform (not including translates)
|
inline |
Definition at line 41 of file GT_Transform.h.
GT_Transform& GT_Transform::operator= | ( | const GT_Transform & | m | ) |
Assignment operator.
bool GT_Transform::operator== | ( | const GT_Transform & | other | ) | const |
Equality operation.
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.
GT_Transform* GT_Transform::preMultiply | ( | const UT_Matrix4F & | xform | ) | const |
Multiply this transform by a single matrix. This applies the matrix to all the embedded transforms.
GT_TransformHandle GT_Transform::preMultiply | ( | const GT_Transform & | x | ) | const |
Multiply this transform by a single matrix. This applies the matrix to all the embedded transforms.
GT_Transform* GT_Transform::preMultiply | ( | const UT_Matrix3D & | xform | ) | const |
Multiply by the 3x3 transform (not including translates)
GT_Transform* GT_Transform::preMultiply | ( | const UT_Matrix3F & | xform | ) | const |
Multiply by the 3x3 transform (not including translates)
bool GT_Transform::save | ( | UT_JSONWriter & | w | ) | const |
Save to a JSON stream/value.
void GT_Transform::setMatrix | ( | const UT_Matrix4F & | xform, |
int | segment | ||
) |
Initialize the matrix
void GT_Transform::setMatrix | ( | const UT_Matrix4D & | 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)