FbxLimits Class Reference
#include <fbxtransforms.h>
FbxLimits defines a limit range for one transform component, either translation, rotation or scaling.
One transform component limit contains two part: a min value and a max value limit, which means that each value of the corresponding transform component cannot go beyond the range set by the min and max values. Although the members are identified as X, Y and Z (the W component is ignored) at this level, they are unitless values and will only have meaning within the context they are queried.
For each limit, there is one flag to indicate if the limit is active or not. Before accessing the limit info, the caller need to query the flag first to make sure that the retrieved values will be meaningful.
Definition at line 34 of file fbxtransforms.h.
Retrieve the active state of this limit.
- Returns
- True if the limit is active.
void SetActive |
( |
const bool |
pActive | ) |
|
Set the active state of this limit.
- Parameters
-
pActive | If true, this limit will become globally active. |
bool GetMinXActive |
( |
| ) |
const |
Get the active state of the minimum X component.
- Returns
- True if the X component minimum limit is active.
bool GetMinYActive |
( |
| ) |
const |
Get the active state of the minimum Y component.
- Returns
- True if the Y component minimum limit is active.
bool GetMinZActive |
( |
| ) |
const |
Get the active state of the minimum Z component.
- Returns
- True if the Z component minimum limit is active.
void GetMinActive |
( |
bool & |
pXActive, |
|
|
bool & |
pYActive, |
|
|
bool & |
pZActive |
|
) |
| const |
Get the active states of the three components of the minimum limit.
- Parameters
-
pXActive | True if the X component minimum limit is active. |
pYActive | True if the Y component minimum limit is active. |
pZActive | True if the Z component minimum limit is active. |
Get the minimum limits.
- Returns
- The current X, Y and Z values for the minimum limits.
void SetMinXActive |
( |
bool |
pActive | ) |
|
Set the active state of the minimum X component.
- Parameters
-
pActive | If true, the X component minimum limit will be active. |
void SetMinYActive |
( |
bool |
pActive | ) |
|
Set the active state of the minimum Y component.
- Parameters
-
pActive | If true, the Y component minimum limit will be active. |
void SetMinZActive |
( |
bool |
pActive | ) |
|
Set the active state of the minimum Z component.
- Parameters
-
pActive | If true, the Z component minimum limit will be active. |
void SetMinActive |
( |
bool |
pXActive, |
|
|
bool |
pYActive, |
|
|
bool |
pZActive |
|
) |
| |
Set the active states of the three components of the minimum limits.
- Parameters
-
pXActive | If true, the X component minimum limit will be active. |
pYActive | If true, the Y component minimum limit will be active. |
pZActive | If true, the Z component minimum limit will be active. |
Set the minimum limits.
- Parameters
-
pMin | The X, Y and Z values for the minimum limits. |
bool GetMaxXActive |
( |
| ) |
const |
Get the active state of the maximum X component.
- Returns
- True if the X component maximum limit is active.
bool GetMaxYActive |
( |
| ) |
const |
Get the active state of the maximum Y component.
- Returns
- True if the Y component maximum limit is active.
bool GetMaxZActive |
( |
| ) |
const |
Get the active state of the maximum Z component.
- Returns
- True if the Z component maximum limit is active.
void GetMaxActive |
( |
bool & |
pXActive, |
|
|
bool & |
pYActive, |
|
|
bool & |
pZActive |
|
) |
| const |
Get the active states of the three components of the maximum limit.
- Parameters
-
pXActive | True if the X component maximum limit is active. |
pYActive | True if the Y component maximum limit is active. |
pZActive | True if the Z component maximum limit is active. |
Get the maximum limits.
- Returns
- The current X, Y and Z values for the maximum limits.
void SetMaxXActive |
( |
bool |
pActive | ) |
|
Set the active state of the maximum X component.
- Parameters
-
pActive | If true, the X component maximum limit will be active. |
void SetMaxYActive |
( |
bool |
pActive | ) |
|
Set the active state of the maximum Y component.
- Parameters
-
pActive | If true, the Y component maximum limit will be active. |
void SetMaxZActive |
( |
bool |
pActive | ) |
|
Set the active state of the maximum Z component.
- Parameters
-
pActive | If true, the Z component maximum limit will be active. |
void SetMaxActive |
( |
bool |
pXActive, |
|
|
bool |
pYActive, |
|
|
bool |
pZActive |
|
) |
| |
Set the active states of the three components of the maximum limits.
- Parameters
-
pXActive | If true, the X component maximum limit will be active. |
pYActive | If true, the Y component maximum limit will be active. |
pZActive | If true, the Z component maximum limit will be active. |
Set the maximum limits.
- Parameters
-
pMax | The X, Y and Z values for the maximum limits. |
bool GetAnyMinMaxActive |
( |
| ) |
const |
Find if any of the minimum or maximum active state are set.
- Returns
- If any component of the minimum or maximum active state are set, true is returned.
Apply the active limits to the components of the vector provided.
- Returns
- The new vector clamped by active limits.
The documentation for this class was generated from the following file: