#include
<kfbxcluster.h>
Definition at line 58 of file kfbxcluster.h.
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 () const |
Get the length of the arrays of control
point indices and weights. |
|
int * | GetControlPointIndices () const |
Get the array of control point indices.
|
|
double * | GetControlPointWeights () const |
Get the array of control point weights.
|
|
Transformation Matrices |
|
A link has three transformation matrices:
|
|
void | SetTransformMatrix (const KFbxXMatrix &pMatrix) |
Set matrix associated with the node
containing the link. |
|
KFbxXMatrix & | GetTransformMatrix (KFbxXMatrix &pMatrix) const |
Get matrix associated with the node
containing the link. |
|
void | SetTransformLinkMatrix (const KFbxXMatrix &pMatrix) |
Set matrix associated with the link node.
|
|
KFbxXMatrix & | GetTransformLinkMatrix (KFbxXMatrix &pMatrix) const |
Get matrix associated with the link node.
|
|
void | SetTransformAssociateModelMatrix (const KFbxXMatrix &pMatrix) |
Set matrix associated with the associate
model. |
|
KFbxXMatrix & | GetTransformAssociateModelMatrix (KFbxXMatrix &pMatrix) const |
Get matrix associated with the associate
model. |
|
void | SetTransformParentMatrix (const KFbxXMatrix &pMatrix) |
Set matrix associated with the parent node.
|
|
KFbxXMatrix & | GetTransformParentMatrix (KFbxXMatrix &pMatrix) const |
Get matrix associated with the parent node.
|
|
bool | IsTransformParentSet () const |
Get the Transform Parent set flag value.
|
|
Public Types |
|
enum | ELinkMode
{ eNORMALIZE, eADDITIVE, eTOTAL1 } |
Link modes. More... |
|
Public Member Functions |
|
ESubDeformerType | GetSubDeformerType () const |
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. |
|
KFbxNode const * | GetLink () const |
Get the const link node. |
|
void | SetAssociateModel (KFbxNode *pNode) |
Set the associate model. |
|
KFbxNode * | GetAssociateModel () const |
Get the associate model. |
|
void | SetControlPointIWCount (int pCount) |
Set the count of indices and weight of
control points. |
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 99 of file kfbxcluster.h.
ESubDeformerType GetSubDeformerType | ( | ) | const [inline, virtual] |
Get the type of the sub deformer.
Reimplemented from KFbxSubDeformer.
Definition at line 66 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.KFbxNode const* GetLink | ( | ) | const |
Get the const 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.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 | ( | ) | const |
Get the length of the arrays of control point indices and weights.
int* GetControlPointIndices | ( | ) | const |
Get the array of control point indices.
NULL
if no control point indices have been added or
the array has been reset.double* GetControlPointWeights | ( | ) | const |
Get the array of control point weights.
NULL
if no control point indices have been added or
the array has been reset.void SetControlPointIWCount | ( | int | pCount | ) |
Set the count of indices and weight of control points.
pCount | The new count. |
void SetTransformMatrix | ( | const KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the node containing the link.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformMatrix | ( | KFbxXMatrix & | pMatrix | ) | const |
Get matrix associated with the node containing the link.
pMatrix | Transformation matrix. |
void SetTransformLinkMatrix | ( | const KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the link node.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformLinkMatrix | ( | KFbxXMatrix & | pMatrix | ) | const |
Get matrix associated with the link node.
pMatrix | Transformation matrix. |
void SetTransformAssociateModelMatrix | ( | const KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the associate model.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformAssociateModelMatrix | ( | KFbxXMatrix & | pMatrix | ) | const |
Get matrix associated with the associate model.
pMatrix | Transformation matrix. |
void SetTransformParentMatrix | ( | const KFbxXMatrix & | pMatrix | ) |
Set matrix associated with the parent node.
pMatrix | Transformation matrix. |
KFbxXMatrix& GetTransformParentMatrix | ( | KFbxXMatrix & | pMatrix | ) | const |
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 265 of file kfbxcluster.h.