#include <c4d_posemorphtagdata.h>
Navigation | |
CAMorphNode * | GetNext () |
CAMorphNode * | GetPrev () |
CAMorphNode * | GetUp () |
CAMorphNode * | GetDown () |
Get Link | |
BaseList2D * | GetLink (PoseMorphTagData *tag, CAMorph *morph, BaseDocument *doc) |
Get Info | |
CAMORPH_DATA_FLAGS | GetInfo () |
Get/Set Positon/Scale/Rotation | |
Vector | GetP () |
Vector | GetS () |
Vector | GetR () |
Point | |
Int32 | GetPointCount () |
Vector | GetPoint (Int32 index) |
CAMorphNode class allows to access the actual morph data. For every morph there exist a morph node tree representing the hierarchy of the morphed objects.
Before using any of the access function always check which data exist with GetInfo().
Example of a simple case with one polygon object. In this case just access the first morph node of the morph to get the data from.
Get the morph to get the data from:
Now get the morph node. The first will be the object with the morph tag:
The point data can now be accessed, but make sure the data exists:
To access the data use GetPointCount() and GetPoint().
CAMorphNode* GetNext | ( | ) |
Retrieves the next morph node.
CAMorphNode* GetPrev | ( | ) |
Retrieves the previous morph node.
CAMorphNode* GetUp | ( | ) |
Retrieves the parent morph node.
CAMorphNode* GetDown | ( | ) |
Retrieves the first child morph node.
BaseList2D* GetLink | ( | PoseMorphTagData * | tag, |
CAMorph * | morph, | ||
BaseDocument * | doc | ||
) |
Retrieves the object linked to the morph node.
[in] | tag | The morph tag containing the morph data. |
[in] | morph | The morph containing the morph node. |
[in] | doc | The document containing the linked object. |
CAMORPH_DATA_FLAGS GetInfo | ( | ) |
Gets what morph data is stored in the morph node.
Vector GetP | ( | ) |
Retrieves the position of the morph node.
Vector GetS | ( | ) |
Retrieves the scale of the morph node.
Vector GetR | ( | ) |
Retrieves the HPB rotation of the morph node.
Int32 GetPointCount | ( | ) |
Retrieves the point count of the morph node.
Retrieves the point at index.
[in] | index | The point index: 0 <= index < GetPointCount() |