#include <c4d_instanceobjectdata.h>
Public Types | |
typedef NodeData | SUPER |
Public Types inherited from NodeData | |
typedef PrivateChunk | SUPER |
Static Protected Member Functions | |
static NodeData * | Alloc () |
Private Member Functions | |
virtual Bool | Init () |
virtual void | Free () |
virtual Bool | SetDParameter (const DescID &id, const GeData &t_data) |
virtual Bool | GetDParameter (const DescID &id, GeData &t_data) |
virtual Int32 | GetChunkLevel () |
virtual Bool | Read (HyperFile *hf, Int32 id, Int32 level) |
virtual Bool | Write (HyperFile *hf) |
virtual Bool | CopyToX (PrivateChunk *dest, COPYFLAGS flags, AliasTrans *trn) |
void | FlushArrays () |
Private Attributes | |
BaseArray< Matrix > | objectMatrices |
BaseArray< Color64 > | objectColors |
Friends | |
class | BaseObject |
Multi-instance Reference Object | |
BaseObject * | GetReferenceObject (BaseDocument *doc) |
void | SetReferenceObject (BaseObject *refObj) |
Multi-instance Matrix and Instance Count | |
Bool | IsMultiInstance () |
Bool | SetInstanceMatrices (const BaseArray< Matrix > &matrices) |
BaseArray< Matrix > * | GetInstanceMatrices () |
Matrix | GetInstanceMatrix (UInt index) const |
UInt | GetInstanceCount () |
Multi-instance Color | |
Bool | SetInstanceColors (const BaseArray< Color64 > &colors) |
BaseArray< Color64 > * | GetInstanceColors () |
Color64 | GetInstanceColor (UInt index) |
Additional Inherited Members | |
Protected Member Functions inherited from NodeData | |
virtual Bool | Execute () |
virtual Int32 | GetDiskType () const |
virtual Bool | TranslateDescID (GeListNode *node, const DescID &id, DescID &res_id, GeListNode *&res_at) |
Protected Member Functions inherited from PrivateChunk | |
virtual Bool | HandleSubChunk (HyperFile *hf, Int32 id, Int32 level) |
Node data class for Cinema 4D's instance object.
|
virtual |
Reimplemented from NodeData.
BaseObject* GetReferenceObject | ( | BaseDocument * | doc | ) |
Return the instanciated object.
[in] | doc | The document the instance object belongs to. |
void SetReferenceObject | ( | BaseObject * | refObj | ) |
Sets the instanciated object used for the multiple instances.
[in] | refObj | The reference object to set. |
Bool IsMultiInstance | ( | ) |
Checks if the instance object is in multi-instance mode.
Sets the instance matrices.
[in] | matrices | The instance matrix array. |
Returns the instance matrices.
Returns the global matrix of the instance at the specified index.
[in] | index | The instance index. |
UInt GetInstanceCount | ( | ) |
Returns the instance count (number of instances and matrices).
Sets the instance colors.
[in] | colors | The array of instance colors to set. |
Returns the instance colors.
Returns the color of the instance at the specified index.
[in] | index | The instance index. |
|
staticprotected |
|
privatevirtual |
Called when an instance of a derived node data class needs to be initialized.
Reimplemented from NodeData.
|
privatevirtual |
Reimplemented from NodeData.
Reimplemented from PrivateChunk.
Reimplemented from PrivateChunk.
|
privatevirtual |
Reimplemented from PrivateChunk.
Reads the node from a hyper file.
[in] | hf | The hyper file to read from. Cineware SDK owns the pointed hyper file. |
[in] | id | The ID of the node to read. |
[in] | level | The disklevel of the node to read. |
Reimplemented from NodeData.
Reimplemented from PrivateChunk.
|
privatevirtual |
Private.
Reimplemented from NodeData.
|
private |
|
friend |