#include <GT_Transform.h>
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_Transform & | operator= (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_Transform * | preMultiply (const UT_Matrix4D &xform) const |
| GT_Transform * | multiply (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). | |
Definition at line 27 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::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] |
| 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] |
| 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)
1.5.9