Inheritance diagram for KFbxCluster:
Definition at line 63 of file kfbxcluster.h.
Public Types | |
enum | ELinkMode |
Link modes. More... | |
Public Member Functions | |
ESubDeformerType | GetSubDeformerType () |
Get the type of the sub deformer. | |
void | Reset () |
Restore the link to its initial state. | |
void | SetLinkMode (ELinkMode pMode) |
Set the link mode. | |
ELinkMode | GetLinkMode () const |
Get the link mode. | |
void | SetLink (KFbxNode const *pNode) |
Set the link node. | |
KFbxNode * | GetLink () |
Get the link node. | |
void | SetAssociateModel (KFbxNode *pNode) |
Set the associate model. | |
KFbxNode * | GetAssociateModel () const |
Get the associate model. | |
KFbxCluster & | operator= (KFbxCluster const &pCluster) |
Assigment operator. | |
Control Points | |
A link has an array of indices to control points and associated weights.
The indices refer to the control points in the instance of class KFbxGeometry owning the link. The weights are the influence of the link node over the displacement of the indexed control points. | |
void | AddControlPointIndex (int pIndex, double pWeight) |
Add an element in both arrays of control point indices and weights. | |
int | GetControlPointIndicesCount () |
Get the length of the arrays of control point indices and weights. | |
int * | GetControlPointIndices () |
Get the array of control point indices. | |
double * | GetControlPointWeights () |
Get the array of control point weights. | |
Transformation Matrices | |
A link has three transformation matrices:
These matrices are used to set the positions where the influences of the link node and associate model over the control points are null. | |
void | SetTransformMatrix (KFbxXMatrix &pMatrix) |
Set matrix associated with the node containing the link. | |
KFbxXMatrix & | GetTransformMatrix (KFbxXMatrix &pMatrix) |
Get matrix associated with the node containing the link. | |
void | SetTransformLinkMatrix (KFbxXMatrix &pMatrix) |
Set matrix associated with the link node. | |
KFbxXMatrix & | GetTransformLinkMatrix (KFbxXMatrix &pMatrix) |
Get matrix associated with the link node. | |
void | SetTransformAssociateModelMatrix (KFbxXMatrix &pMatrix) |
Set matrix associated with the associate model. | |
KFbxXMatrix & | GetTransformAssociateModelMatrix (KFbxXMatrix &pMatrix) |
Get matrix associated with the associate model. | |
void | SetTransformParentMatrix (KFbxXMatrix &pMatrix) |
Set matrix associated with the parent node. | |
KFbxXMatrix & | GetTransformParentMatrix (KFbxXMatrix &pMatrix) |
Get matrix associated with the parent node. | |
bool | IsTransformParentSet () const |
Get the Transform Parent set flag value. |
enum ELinkMode |
Link modes.
The link mode sets how the link influences the position of a control point and the relationship between the weights assigned to a control point. The weights assigned to a control point are distributed among the set of links associated with an instance of class KFbxGeometry.
Definition at line 104 of file kfbxcluster.h.
ESubDeformerType GetSubDeformerType | ( | ) | [inline, virtual] |
Get the type of the sub deformer.
Reimplemented from KFbxSubDeformer.
Definition at line 70 of file kfbxcluster.h.
void Reset | ( | ) |
Restore the link to its initial state.
Calling this function will clear the following:
void SetLinkMode | ( | ELinkMode | pMode | ) |
Set the link mode.
pMode | The link mode. |
ELinkMode GetLinkMode | ( | ) | const |
Get the link mode.
void SetLink | ( | KFbxNode const * | pNode | ) |
Set the link node.
pNode | The link node. |
KFbxNode* GetLink | ( | ) |
Get the link node.
NULL
if KFbxCluster::SetLink() has not been called before. void SetAssociateModel | ( | KFbxNode * | pNode | ) |
Set the associate model.
The associate model is optional. It is only relevant if the link mode is of type eADDITIVE.
pNode | The associate model node. |
KFbxNode* GetAssociateModel | ( | ) | const |
Get the associate model.
The associate model is optional. It is only relevant if the link mode is of type eADDITIVE.
NULL
if KFbxCluster::SetAssociateModel() has not been called before. void AddControlPointIndex | ( | int | pIndex, | |
double | pWeight | |||
) |
Add an element in both arrays of control point indices and weights.
pIndex | The index of the control point. | |
pWeight | The link weight. |
int GetControlPointIndicesCount | ( | ) |
Get the length of the arrays of control point indices and weights.
int* GetControlPointIndices | ( | ) |
Get the array of control point indices.
NULL
if no control point indices have been added or the array has been reset. double* GetControlPointWeights | ( | ) |
Get the array of control point weights.
NULL
if no control point indices have been added or the array has been reset. void SetTransformMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the node containing the link.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Get matrix associated with the node containing the link.
pMatrix | Transformation matrix. |
void SetTransformLinkMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the link node.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformLinkMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Get matrix associated with the link node.
pMatrix | Transformation matrix. |
void SetTransformAssociateModelMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the associate model.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformAssociateModelMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Get matrix associated with the associate model.
pMatrix | Transformation matrix. |
void SetTransformParentMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the parent node.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformParentMatrix | ( | KFbxXMatrix & | pMatrix | ) |
Get matrix associated with the parent node.
pMatrix | Transformation matrix. |
bool IsTransformParentSet | ( | ) | const [inline] |
Get the Transform Parent set flag value.
true
if transform matrix associated with parent node is set. Definition at line 259 of file kfbxcluster.h.
KFbxCluster& operator= | ( | KFbxCluster const & | pCluster | ) |
Assigment operator.