#include<kfbxcluster.h>
Definition at line67of filekfbxcluster.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 classKFbxGeometryowning 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:
| |
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. | |
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(ELinkModepMode) |
Set the link mode. | |
ELinkMode | GetLinkMode() const |
Get the link mode. | |
void | SetLink(KFbxNodeconst *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=(KFbxClusterconst&pCluster) |
Assigment operator. |
enumELinkMode |
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 classKFbxGeometry.
Definition at line108of filekfbxcluster.h.
ESubDeformerTypeGetSubDeformerType | ( | ) | [inline, virtual] |
Get the type of the sub deformer.
Reimplemented fromKFbxSubDeformer.
Definition at line74of filekfbxcluster.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. |
ELinkModeGetLinkMode | ( | ) | const |
Get the link mode.
void SetLink | ( | KFbxNodeconst * | pNode | ) |
Set the link node.
pNode | The link node. |
KFbxNode* GetLink | ( | ) |
Get the link node.
NULL
ifKFbxCluster::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
ifKFbxCluster::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 line263of filekfbxcluster.h.
KFbxCluster&operator= | ( | KFbxClusterconst& | pCluster | ) |
Assigment operator.