HDK
|
#include <GT_TransformArray.h>
Public Member Functions | |
GT_TransformArray () | |
virtual | ~GT_TransformArray () |
GT_Size | entries () const |
Return the number of entries. More... | |
int64 | getMemoryUsage () const |
Return approximate memory usage. More... | |
int | getMotionSegments () const |
void | setEntries (GT_Size n) |
Set the number of entries. More... | |
const GT_TransformHandle & | get (GT_Size i) const |
Return a transform handle. More... | |
void | set (GT_Size i, const GT_TransformHandle &h) |
Set a transform handle. More... | |
void | append (const GT_TransformHandle &h) |
Append a transform handle. More... | |
void | append (const GT_TransformArrayHandle &h) |
Append a transform array. More... | |
GT_TransformArrayHandle | multiply (const GT_TransformHandle &h) const |
Multiply all the transforms by a single transform. More... | |
GT_TransformArrayHandle | preMultiply (const GT_TransformHandle &h) const |
Pre-multiply all the transforms by a single transform. More... | |
bool | save (UT_JSONWriter &w) const |
Save to JSON. More... | |
void | setTransforms (const UT_Matrix4FArray &transforms) |
void | setTransforms (const UT_Matrix4DArray &transforms) |
void | getTransforms (UT_Matrix4FArray &transforms) |
void | getTransforms (UT_Matrix4DArray &transforms) |
virtual int64 | getDataId () const |
Data id support for derived classes (-1 means always re-update). More... | |
void | dump (const char *msg="") const |
Dump array. More... | |
Public Member Functions inherited from UT_IntrusiveRefCounter< GT_TransformArray > | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter () noexcept |
Default constructor: Sets counter to 0. More... | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept |
Copy constructor: Sets counter to 0. More... | |
UT_IntrusiveRefCounter & | operator= (const UT_IntrusiveRefCounter &) noexcept |
Assignment operator: Does not modify counter. More... | |
SYS_FORCE_INLINE uint32 | use_count () const noexcept |
Return current counter. More... | |
SYS_FORCE_INLINE bool | conditionalAddRef () noexcept |
Static Public Member Functions | |
static void * | operator new (size_t size) |
static void * | operator new (size_t size, void *p) |
static void | operator delete (void *p, size_t size) |
Additional Inherited Members | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_TransformArray > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Definition at line 23 of file GT_TransformArray.h.
|
inline |
Definition at line 27 of file GT_TransformArray.h.
|
inlinevirtual |
Definition at line 28 of file GT_TransformArray.h.
void GT_TransformArray::append | ( | const GT_TransformHandle & | h | ) |
Append a transform handle.
void GT_TransformArray::append | ( | const GT_TransformArrayHandle & | h | ) |
Append a transform array.
void GT_TransformArray::dump | ( | const char * | msg = "" | ) | const |
Dump array.
|
inline |
Return the number of entries.
Definition at line 31 of file GT_TransformArray.h.
|
inline |
Return a transform handle.
Definition at line 44 of file GT_TransformArray.h.
|
inlinevirtual |
Data id support for derived classes (-1 means always re-update).
Reimplemented in XUSD_HydraTransforms.
Definition at line 79 of file GT_TransformArray.h.
int64 GT_TransformArray::getMemoryUsage | ( | ) | const |
Return approximate memory usage.
int GT_TransformArray::getMotionSegments | ( | ) | const |
Return the number of motion segments. We assume that all transforms have the same number of segments.
void GT_TransformArray::getTransforms | ( | UT_Matrix4FArray & | transforms | ) |
void GT_TransformArray::getTransforms | ( | UT_Matrix4DArray & | transforms | ) |
GT_TransformArrayHandle GT_TransformArray::multiply | ( | const GT_TransformHandle & | h | ) | const |
Multiply all the transforms by a single transform.
For memory tracking, we override the new/delete operators
|
static |
For memory tracking, we override the new/delete operators
For memory tracking, we override the new/delete operators
GT_TransformArrayHandle GT_TransformArray::preMultiply | ( | const GT_TransformHandle & | h | ) | const |
Pre-multiply all the transforms by a single transform.
bool GT_TransformArray::save | ( | UT_JSONWriter & | w | ) | const |
Save to JSON.
|
inline |
Set a transform handle.
Definition at line 47 of file GT_TransformArray.h.
void GT_TransformArray::setTransforms | ( | const UT_Matrix4FArray & | transforms | ) |
void GT_TransformArray::setTransforms | ( | const UT_Matrix4DArray & | transforms | ) |