#include
<kfbxweightedmapping.h>
Definition at line 50 of file kfbxweightedmapping.h.
| Constructor and Destructor | |
| KFbxWeightedMapping (int pSourceSize, int pDestinationSize) | |
| Constructor. | |
| ~KFbxWeightedMapping () | |
| Destructor. | |
| Public Types | |
| enum | ESet { eSOURCE, eDESTINATION } | 
| Public Member Functions | |
| void | Reset (int pSourceSize, int pDestinationSize) | 
| Remove all weighted relations and give new
source and destination sets sizes. | |
| void | Add (int pSourceIndex, int pDestinationIndex, double pWeight) | 
| Add a weighted relation. | |
| int | GetElementCount (ESet pSet) const | 
| Get the number of elements of a set. | |
| int | GetRelationCount (ESet pSet, int pElement) const | 
| Get the number of relations an element of a
set is linked to. | |
| KElement & | GetRelation (ESet pSet, int pElement, int pIndex) | 
| Get one of the relations an element of a set
is linked to. | |
| int | GetRelationIndex (ESet pSet, int pElementInSet, int pElementInOtherSet) const | 
| Given the index of an element in the other
set, get the index of one of the relations an element of a set is
linked to. | |
| double | GetRelationSum (ESet pSet, int pElement, bool pAbsoluteValue) const | 
| Get the sum of the weights from the
relations an element of a set is linked to. | |
| void | Normalize (ESet pSet, bool pAbsoluteValue) | 
| Normalize the weights of the relations of
all the elements of a set. | |
| Classes | |
| struct | KElement | 
| enum ESet | 
Definition at line 55 of file kfbxweightedmapping.h.
| KFbxWeightedMapping | ( | int | pSourceSize, | |
| int | pDestinationSize | |||
| ) | 
Constructor.
| pSourceSize | Source set size | |
| pDestinationSize | Destination set size | 
| ~KFbxWeightedMapping | ( | ) | 
Destructor.
Remove all weighted relations and give new source and destination sets sizes.
| pSourceSize | New source set size | |
| pDestinationSize | New destination set size | 
Add a weighted relation.
| pSourceIndex | ||
| pDestinationIndex | ||
| pWeight | 
Get the number of relations an element of a set is linked to.
| pSet | ||
| pElement | 
Get one of the relations an element of a set is linked to.
| pSet | ||
| pElement | ||
| pIndex | 
Given the index of an element in the other set, get the index of one of the relations an element of a set is linked to.
Returns -1 if there is not relation between these elements.
| pSet | ||
| pElementInSet | ||
| pElementInOtherSet | 
Get the sum of the weights from the relations an element of a set is linked to.
| pSet | ||
| pElement | ||
| pAbsoluteValue | 
| void Normalize | ( | ESet | pSet, | |
| bool | pAbsoluteValue | |||
| ) | 
Normalize the weights of the relations of all the elements of a set.
| pSet | ||
| pAbsoluteValue |