PrivateChunk Class Reference

#include <c4d_privatechunk.h>

Inheritance diagram for PrivateChunk:

Public Member Functions

virtual Bool IsInstanceOf (cineware::Int32 id) const
 PrivateChunk ()
Bool ReadChunk (HyperFile *hf, Bool keepin=false, Bool noheader=false)
virtual Bool IsListHead ()
virtual Int32 GetType () const
virtual Int32 GetInstanceType () const
Bool ReadObject (HyperFile *hf, Bool readheader)
Bool WriteObject (HyperFile *hf, Int32 type)
virtual Bool Write (HyperFile *hf)
Bool CopyTo (PrivateChunk *dest, COPYFLAGS flags, AliasTrans *trans)
virtual Bool CopyToX (PrivateChunk *dest, COPYFLAGS flags, AliasTrans *trans)
virtual Bool GetDParameter (const DescID &id, GeData &data)
virtual Bool SetDParameter (const DescID &id, const GeData &data)
Bool GetParameter (Int32 id, GeData &data)
Bool SetParameter (Int32 id, const GeData &data)
Bool GetParameter (const DescID &id, GeData &data)
Bool SetParameter (const DescID &id, const GeData &data)
virtual Int32 GetChunkLevel ()
- Public Member Functions inherited from GeTempPublicNode2D< PrivateChunk >
PrivateChunkGetNext () const
PrivateChunkGetPrev () const
void InsertBefore (PrivateChunk *n)
void InsertAfter (PrivateChunk *n)
void Remove ()

Protected Member Functions

virtual Bool HandleSubChunk (HyperFile *hf, Int32 id, Int32 level)

Detailed Description

Mostly private with the exception of GetParameter()/SetParameter():

if (op->SetParameter(12345, GeData(Vector(1.0,2.0,3.0))))
if (op->GetParameter(12345, data))
Vector v = data.GetVector();
printf("Vector: %f %f %f\n", v.x, v.y, v.z);
data = 5.0;
if (op->SetParameter(DescID(DescLevel(12345, DTYPE_VECTOR,0), DescLevel(VECTOR_Y)), data))
if (op->GetParameter(12345, data))
v = data.GetVector();
printf("Vector: %f %f %f\n", v.x, v.y, v.z);
if (op->GetParameter(DescID(DescLevel(12345, DTYPE_VECTOR, 0), DescLevel(VECTOR_Z)), data))
printf("Vector: %f", data.GetReal());

Constructor & Destructor Documentation

◆ PrivateChunk()

Member Function Documentation

◆ IsInstanceOf()

◆ HandleSubChunk()

◆ ReadChunk()

Bool ReadChunk ( HyperFile hf,
Bool  keepin = false,
Bool  noheader = false 

◆ IsListHead()

virtual Bool IsListHead ( )

Reimplemented in RootList2D.

◆ GetType()

◆ GetInstanceType()

virtual Int32 GetInstanceType ( ) const

◆ ReadObject()

Bool ReadObject ( HyperFile hf,
Bool  readheader 

◆ WriteObject()

Bool WriteObject ( HyperFile hf,
Int32  type 

◆ Write()

◆ CopyTo()

Bool CopyTo ( PrivateChunk dest,
AliasTrans trans 

◆ CopyToX()

◆ GetDParameter()

◆ SetDParameter()

◆ GetParameter() [1/2]

Bool GetParameter ( Int32  id,
GeData data 

◆ SetParameter() [1/2]

Bool SetParameter ( Int32  id,
const GeData data 

◆ GetParameter() [2/2]

Bool GetParameter ( const DescID id,
GeData data 

◆ SetParameter() [2/2]

Bool SetParameter ( const DescID id,
const GeData data 

◆ GetChunkLevel()