#include
<kfbxnodelimits.h>
Each transform component limit can be activated or deactivated. All three KFbxLimits objects (mTranslationLimits, mRotationLimits, and mScalingLimits) reference the KMBTransform object (mMBTransform). As a result, a change made with one of the KFbxLimits objects (or the corresponding methods) will affect the respective fields on the other two.
The following example does not show good practice, but does demonstrates how the members of this class are affecting each other :
// assuming 'this' is a valid KFbxNodeLimits object. // Set the translation limits active this->SetTranslationLimitActive(false); // overwrite the translation limits (from active to inactive). // rotation limits correctly set to inactive and scaling limits set to active too! this->mRotationLimits.SetLimitMinActive(false, false, true); // The following now returns true even though we never explicitly set // the flags from the mScalingLimit object. this->GetScalingLimitActive()
Definition at line 216 of file kfbxnodelimits.h.
Node Translation Limits |
|
KFbxLimits | mTranslationLimits |
The translation limits. |
|
void | SetTranslationLimitActive (bool pActive) |
Change the translation limit active flag.
|
|
bool | GetTranslationLimitActive () const |
Get the translation limit active flag.
|
|
Node Rotation Limits |
|
KFbxLimits | mRotationLimits |
The rotation limits. |
|
void | SetRotationLimitActive (bool pActive) |
Change the rotation limit active flag.
|
|
bool | GetRotationLimitActive () const |
Get the rotation limit active flag. |
|
Node Scale Limits |
|
KFbxLimits | mScalingLimits |
The scaling limits. |
|
void | SetScalingLimitActive (bool pActive) |
Change the scaling limit active flag.
|
|
bool | GetScalingLimitActive () const |
Get the scaling limit active flag. |
|
Public Member Functions |
|
KFbxNodeLimits (KFbxNode *pLimitedNode, KMBTransform *pMBTransform) | |
Constructor. |
|
KFbxNode * | GetLimitedNode () |
Get the limited node. |
KFbxNodeLimits | ( | KFbxNode * | pLimitedNode, | |
KMBTransform * | pMBTransform | |||
) |
Constructor.
pLimitedNode | Pointer to the node to which these limits apply. | |
pMBTransform | Refer to comments in KFbxLimits. The object contains the actual data for all limits of transform components. |
KFbxNode* GetLimitedNode | ( | ) |
Get the limited node.
void SetTranslationLimitActive | ( | bool | pActive | ) |
Change the translation limit active flag.
pActive | State of the translation limits active flag. |
false
, the values in the
mTranslationLimits are ignored.bool GetTranslationLimitActive | ( | ) | const |
Get the translation limit active flag.
false
, the values in the
mTranslationLimits are ignored.void SetRotationLimitActive | ( | bool | pActive | ) |
Change the rotation limit active flag.
pActive | State of the rotation limits active flag. |
false
, the values in the
mRotationLimits are ignored.bool GetRotationLimitActive | ( | ) | const |
Get the rotation limit active flag.
false
, the values in the
mRotationLimits are ignored.void SetScalingLimitActive | ( | bool | pActive | ) |
Change the scaling limit active flag.
pActive | State of the scaling limits active flag. |
false
, the values in the
mScalingLimits are ignored.bool GetScalingLimitActive | ( | ) | const |
Get the scaling limit active flag.
false
, the values in the
mScalingLimits are ignored.The translation limits.
Definition at line 251 of file kfbxnodelimits.h.
The rotation limits.
Definition at line 273 of file kfbxnodelimits.h.
The scaling limits.
Definition at line 295 of file kfbxnodelimits.h.