PolygonObjectData Class Reference

#include <c4d_polygonobjectdata.h>

Inheritance diagram for PolygonObjectData:

Public Types

typedef PointObjectData SUPER
 
- Public Types inherited from PointObjectData
typedef NodeData SUPER
 
- Public Types inherited from NodeData
typedef PrivateChunk SUPER
 

Public Member Functions

virtual Bool IsInstanceOf (cineware::Int32 id) const
 
- Public Member Functions inherited from PointObjectData
- Public Member Functions inherited from NodeData
 NodeData ()
 
BaseList2DGetNode ()
 
void SetNode (BaseList2D *ptr)
 
BaseTagGetTag (Int32 id)
 
BaseTagMakeTag (Int32 id)
 
- Public Member Functions inherited from PrivateChunk
 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)
 
Bool CopyTo (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 ()
 

Private Member Functions

virtual Int32 GetDiskType () const
 
virtual Bool CopyToX (PrivateChunk *dst, COPYFLAGS flags, AliasTrans *trans)
 

Private Attributes

BaseSelect bs_v
 
BaseSelect hide_v
 
BaseSelect bs_e
 
BaseSelect hide_e
 
BaseSelect phong_e
 
NgonBasem_NgonBase
 

Friends

class PolygonObject
 

Constructor/Destructor

 PolygonObjectData ()
 
 ~PolygonObjectData ()
 

Resize

Bool _ResizeObject (Int32 pcnt, Int32 vcnt)
 
Bool _ResizeObject (Int32 pcnt, Int32 vcnt, Int32 ncnt)
 

N-gon

NgonBase_GetNgonBase ()
 

Read/Write

virtual Bool Read (HyperFile *hf, Int32 id, Int32 level)
 
virtual Bool Write (HyperFile *hf)
 

Additional Inherited Members

- Protected Member Functions inherited from PointObjectData
Bool _ResizeObject (Int32 pcnt)
 
- Protected Member Functions inherited from NodeData
virtual Bool Init ()
 
virtual void Free ()
 
virtual Bool Execute ()
 
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)
 

Detailed Description

Node data class for polygonal objects.

Member Typedef Documentation

◆ SUPER

Constructor & Destructor Documentation

◆ PolygonObjectData()

Default constructor.

◆ ~PolygonObjectData()

Default destructor.

Member Function Documentation

◆ IsInstanceOf()

virtual Bool IsInstanceOf ( cineware::Int32  id) const
virtual

Reimplemented from PointObjectData.

◆ GetDiskType()

virtual Int32 GetDiskType ( ) const
privatevirtual

Gets the node's unique disk type ID.

Returns
The node's disk type.

Reimplemented from PointObjectData.

◆ CopyToX()

virtual Bool CopyToX ( PrivateChunk dst,
COPYFLAGS  flags,
AliasTrans trans 
)
privatevirtual

Private.

Reimplemented from PointObjectData.

◆ _ResizeObject() [1/2]

Bool _ResizeObject ( Int32  pcnt,
Int32  vcnt 
)

Changes the number of points and polygons in the object.

Parameters
[in]pcntThe new point count.
[in]vcntThe new polygon count.
Returns
true if successful, otherwise false.

◆ _ResizeObject() [2/2]

Bool _ResizeObject ( Int32  pcnt,
Int32  vcnt,
Int32  ncnt 
)

Changes the number of points, polygons and N-gons.

Parameters
[in]pcntThe new point count.
[in]vcntThe new polygon count.
[in]ncntThe new N-gon count.
Returns
true if successful, otherwise false.

◆ _GetNgonBase()

NgonBase* _GetNgonBase ( )

Gets the NgonBase instance for the object.

Returns
The N-gon base. The polygon object data owns the pointed N-gon base.

◆ Read()

virtual Bool Read ( HyperFile hf,
Int32  id,
Int32  level 
)
virtual

Reads the polygon object data from a hyper file.

Parameters
[in]hfThe hyper file to read from. The caller owns the pointed hyper file.
[in]idThe type ID of the polygon object to read.
[in]levelThe disklevel of the object to read.
Returns
true if successful, otherwise false.

Reimplemented from PointObjectData.

◆ Write()

virtual Bool Write ( HyperFile hf)
virtual

Writes the polygon object data to a hyper file.

Parameters
[in]hfThe hyper file to write to. The caller owns the pointed hyper file.
Returns
true if successful, otherwise false.

Reimplemented from PointObjectData.

Friends And Related Function Documentation

◆ PolygonObject

friend class PolygonObject
friend

Member Data Documentation

◆ bs_v

BaseSelect bs_v
private

◆ hide_v

BaseSelect hide_v
private

◆ bs_e

BaseSelect bs_e
private

◆ hide_e

BaseSelect hide_e
private

◆ phong_e

BaseSelect phong_e
private

◆ m_NgonBase

NgonBase* m_NgonBase
private