HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_TransformArray Class Reference

#include <GT_TransformArray.h>

+ Inheritance diagram for GT_TransformArray:

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_TransformHandleget (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_IntrusiveRefCounteroperator= (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 voidoperator new (size_t size)
 
static voidoperator 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...
 

Detailed Description

Examples:
packedsphere/GT_GEOPackedSphere.C.

Definition at line 23 of file GT_TransformArray.h.

Constructor & Destructor Documentation

GT_TransformArray::GT_TransformArray ( )
inline

Definition at line 27 of file GT_TransformArray.h.

virtual GT_TransformArray::~GT_TransformArray ( )
inlinevirtual

Definition at line 28 of file GT_TransformArray.h.

Member Function Documentation

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.

GT_Size GT_TransformArray::entries ( ) const
inline

Return the number of entries.

Definition at line 31 of file GT_TransformArray.h.

const GT_TransformHandle& GT_TransformArray::get ( GT_Size  i) const
inline

Return a transform handle.

Definition at line 44 of file GT_TransformArray.h.

virtual int64 GT_TransformArray::getDataId ( ) const
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.

static void GT_TransformArray::operator delete ( void p,
size_t  size 
)
static

For memory tracking, we override the new/delete operators

static void* GT_TransformArray::operator new ( size_t  size)
static

For memory tracking, we override the new/delete operators

static void* GT_TransformArray::operator new ( size_t  size,
void p 
)
static

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.

void GT_TransformArray::set ( GT_Size  i,
const GT_TransformHandle h 
)
inline

Set a transform handle.

Definition at line 47 of file GT_TransformArray.h.

void GT_TransformArray::setEntries ( GT_Size  n)

Set the number of entries.

void GT_TransformArray::setTransforms ( const UT_Matrix4FArray transforms)
void GT_TransformArray::setTransforms ( const UT_Matrix4DArray transforms)

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