Weighting interface for meshes.
#include <fbmodel.h>

Public Member Functions |
|
| int | ClusterBegin (int pIndex=-1) |
| Begin cluster definition. |
|
| int | ClusterEnd () |
| End cluster definition. |
|
| void | LinkSetName (char *pName, int pLinkNumber) |
| Set the name of a link. |
|
| char * | LinkGetName (int pLinkNumber) |
| Get the name of a link. |
|
| void | LinkRemove (int pLinkNumber) |
| Remove a link. |
|
| int | LinkGetCount () |
| Get number of links. |
|
| void | LinkSetModel (HFBModel pModel) |
| Set model to a link. |
|
| HFBModel | LinkGetModel (int pLinkNumber) |
| Get model from a link. |
|
| HFBModel | LinkGetAssociateModel (int pLinkNumber) |
| Get model associated with link. |
|
| void | LinkClearUnused (double pThreshold=-1.0) |
| Remove all unused links. |
|
| void | LinkSetCurrentVertex (int pLinkIndex, int pPointIndex) |
| Link at current vertex. |
|
| int | LinkGetVertexIndex (int pIndex) |
| Get current vertex at link. |
|
| void | VertexSetTransform (FBVector3d pPosition, FBVector3d pRotation, FBVector3d pScaling) |
| Set transform of a cluster set. |
|
| void | VertexGetTransform (FBVector3d &pPosition, FBVector3d &pRotation, FBVector3d &pScaling) |
| Get transform of a cluster set. |
|
| void | VertexAdd (int pVertexIndex, double pWeight) |
| Add a vertex to a cluster. |
|
| void | VertexRemove (int pVertexIndex) |
| Remove a vertex from a cluster. |
|
| int | VertexGetCount () |
| Get the number of vertices. |
|
| int | VertexGetNumber (int pIndex) |
| Get vertex number. |
|
| double | VertexGetWeight (int pIndex) |
| Get vertex weight. |
|
| void | VertexSetWeight (double pWeight, int pIndex) |
| Set vertex weight. |
|
| void | VertexClear () |
| Clear all linked vertices. |
|
Public Attributes |
|
| FBPropertyClusterMode | ClusterMode |
| Read Write Property: Cluster mode.
|
|
| FBPropertyDouble | ClusterAccuracy |
| Read Write Property: Cluster
accuracy. |
|
Protected Member Functions |
|
| FBCluster (HFBModel pModel) | |
| Constructor. |
|
Friends |
|
| class | DataFBModel |
| FBCluster | ( | HFBModel | pModel | ) | [protected] |
Constructor.
protected access, call FBModel::Cluster instead.
| pModel | Parent model in question. |
| int ClusterBegin | ( | int | pIndex = -1 |
) |
Begin cluster definition.
| pIndex | Link index. |
| int ClusterEnd | ( | ) |
| void LinkSetName | ( | char * | pName, |
| int | pLinkNumber | ||
| ) |
Set the name of a link.
| pLinkNumber | Number value of link to name. |
| pName | Name of the link. |
| char* LinkGetName | ( | int | pLinkNumber | ) |
Get the name of a link.
| pLinkNumber | Number value of link to get name from. |
pLinkNumber.| void LinkRemove | ( | int | pLinkNumber | ) |
| int LinkGetCount | ( | ) |
| void LinkSetModel | ( | HFBModel | pModel | ) |
| HFBModel LinkGetModel | ( | int | pLinkNumber | ) |
Get model from a link.
| pLinkNumber | Number value of link to get model from. |
pLinkNumber.| HFBModel LinkGetAssociateModel | ( | int | pLinkNumber | ) |
Get model associated with link.
| pLinkNumber | Nubmer value of link to get associated model from. |
pLinkNumber.| void LinkClearUnused | ( | double | pThreshold = -1.0 |
) |
Remove all unused links.
| pThreshold | Weight value under which links are considered unused (default=-1). |
| void LinkSetCurrentVertex | ( | int | pLinkIndex, |
| int | pPointIndex | ||
| ) |
Link at current vertex.
| pLinkIndex | Index of link to add vertex to. |
| pPointIndex | Index of vertex to add. |
| int LinkGetVertexIndex | ( | int | pIndex | ) |
Get current vertex at link.
| pIndex | Index of link to get vertex from. |
pIndex| void VertexSetTransform | ( | FBVector3d | pPosition, |
| FBVector3d | pRotation, | ||
| FBVector3d | pScaling | ||
| ) |
Set transform of a cluster set.
| pPosition | Position transform. |
| pRotation | Rotation transform. |
| pScaling | Scaling transform. |
| void VertexGetTransform | ( | FBVector3d & | pPosition, |
| FBVector3d & | pRotation, | ||
| FBVector3d & | pScaling | ||
| ) |
Get transform of a cluster set.
| pPosition | Position transform. |
| pRotation | Rotation transform. |
| pScaling | Scaling transform. |
| void VertexAdd | ( | int | pVertexIndex, |
| double | pWeight | ||
| ) |
Add a vertex to a cluster.
| pVertexIndex | Index of vertex to add. |
| pWeight | Weight to give to vertex. |
| void VertexRemove | ( | int | pVertexIndex | ) |
Remove a vertex from a cluster.
| pVertexIndex | Index of vertex to remove. |
| int VertexGetCount | ( | ) |
| int VertexGetNumber | ( | int | pIndex | ) |
Get vertex number.
| pIndex | Index of link to get vertex from. |
pIndex| double VertexGetWeight | ( | int | pIndex | ) |
Get vertex weight.
| pIndex | Index of link to get vertex from. |
pIndex.| void VertexSetWeight | ( | double | pWeight, |
| int | pIndex | ||
| ) |
Set vertex weight.
| pIndex | Index of link to get vertex from. |
| pWeight | Weight to give to vertex. |
| void VertexClear | ( | ) |
Clear all linked vertices.
friend class DataFBModel
[friend] |
| FBPropertyClusterMode ClusterMode |
Read Write Property: Cluster mode.
Read Write Property: Cluster accuracy.