#include<kfbxconstraintscale.h>
List of all members.
Detailed Description
This constraint class contains methods for accessing the properties of a scale constraint.
A scale constraint lets you constrain the scale of an object based on the scale of one or more sources.
Definition at line63of filekfbxconstraintscale.h.
Member Function Documentation
void SetLock | ( | bool | pLock | ) | |
Set the constraint lock.
- Parameters:
| pLock | State of the lock flag. |
Retrieve the constraint lock state.
- Returns:
- Current lock flag.
void SetActive | ( | bool | pActive | ) | |
Set the constraint active.
- Parameters:
| pActive | State of the active flag. |
Retrieve the constraint active state.
- Returns:
- Current active flag.
void SetAffectX | ( | bool | pAffect | ) | |
Set the constraint X-axe effectiveness.
- Parameters:
| pAffect | State of the effectivness on the X axe. |
Retrieve the constraint X-axe effectiveness.
- Returns:
- Current state flag.
void SetAffectY | ( | bool | pAffect | ) | |
Set the constraint Y-axe effectiveness.
- Parameters:
| pAffect | State of the effectivness on the X axe. |
Retrieve the constraint Y-axe effectiveness.
- Returns:
- Current state flag.
void SetAffectZ | ( | bool | pAffect | ) | |
Set the constraint Z-axe effectiveness.
- Parameters:
| pAffect | State of the effectivness on the X axe. |
Retrieve the constraint Z-axe effectiveness.
- Returns:
- Current state flag.
Set the Scale offset.
- Parameters:
| pScale | New offset vector. |
Reimplemented fromKFbxConstraint.
Retrieve the constraint scale offset.
- Returns:
- Current scale offset.
void SetWeight | ( | double | pWeight | ) | |
Set the weight of the constraint.
- Parameters:
| pWeight | New weight value. |
Get the weight of a source.
- Parameters:
| pObject | Index of the source. |
void AddConstraintSource | ( | KFbxObject* | pObject, |
| | double | pWeight=100 | |
| ) | | | |
Add a source to the constraint.
- Parameters:
| pObject | New source object. |
| pWeight | Weight of the source object. |
int GetConstraintSourceCount | ( | | ) | |
Retrieve the constraint source count.
- Returns:
- Current constraint source count.
Retrieve a constraint source object.
- Parameters:
| pIndex | Index of the source |
- Returns:
- Current source at the specified index.
Set the constrainted object.
- Parameters:
| pObject | The constrained object. |
Retrieve the constrainted object.
- Returns:
- Current constrained object.