#include<kfbxweightedmapping.h>List of all members.
Detailed Description
FBX SDK weighted mapping class.
Definition at line61of filekfbxweightedmapping.h.
 | 
 Constructor and Destructor | 
|   | KFbxWeightedMapping(int pSourceSize, int pDestinationSize) | 
|   | Constructor.
  | 
|   | ~KFbxWeightedMapping() | 
|   | Destructor.
  | 
 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) | 
|   | Get the number of elements of a set.
  | 
| int  | GetRelationCount(ESet pSet, int pElement) | 
|   | 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) | 
|   | 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) | 
|   | 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.
  | 
Constructor&Destructor Documentation
Constructor.
- Parameters:
  | pSourceSize  | Source set size | 
 | pDestinationSize  | Destination set size | 
Member Function Documentation
| void Reset | ( | int  | pSourceSize, | 
 |  | int  | pDestinationSize |   | 
 | ) |  |  |  | 
Remove all weighted relations and give new source and destination sets sizes.
- Parameters:
  | pSourceSize  | New source set size | 
 | pDestinationSize  | New destination set size | 
| void Add | ( | int  | pSourceIndex, | 
 |  | int  | pDestinationIndex, | 
 |  | double  | pWeight |   | 
 | ) |  |  |  | 
Add a weighted relation.
- Parameters:
  | pSourceIndex  |  | 
 | pDestinationIndex  |  | 
 | pWeight  |  | 
| int GetElementCount | ( | ESet  | pSet |  )  |  | 
Get the number of elements of a set.
- Parameters:
 
| int GetRelationCount | ( | ESet  | pSet, | 
 |  | int  | pElement |   | 
 | ) |  |  |  | 
Get the number of relations an element of a set is linked to.
- Parameters:
 
| KElement&GetRelation | ( | ESet  | pSet, | 
 |  | int  | pElement, | 
 |  | int  | pIndex |   | 
 | ) |  |  |  | 
Get one of the relations an element of a set is linked to.
- Parameters:
 
- Returns:
 - KElement gives the index of an element in the other set and the assigned weight.
 
| int GetRelationIndex | ( | ESet  | pSet, | 
 |  | int  | pElementInSet, | 
 |  | int  | pElementInOtherSet |   | 
 | ) |  |  |  | 
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.
- Parameters:
  | pSet  |  | 
 | pElementInSet  |  | 
 | pElementInOtherSet  |  | 
- Returns:
 - the index of one of the relations, -1 if there is not relation between these elements.
 
| double GetRelationSum | ( | ESet  | pSet, | 
 |  | int  | pElement, | 
 |  | bool  | pAbsoluteValue |   | 
 | ) |  |  |  | 
Get the sum of the weights from the relations an element of a set is linked to.
- Parameters:
  | pSet  |  | 
 | pElement  |  | 
 | pAbsoluteValue  |  | 
- Returns:
 - the sum of the weights from the relations.
 
| void Normalize | ( | ESet  | pSet, | 
 |  | bool  | pAbsoluteValue |   | 
 | ) |  |  |  | 
Normalize the weights of the relations of all the elements of a set.
- Parameters: