This reference page is linked to from the following overview topics: Supported Scene Elements, FBX Nodes, Transformation Data, List of Python FBX classes.
Base class for weighted animation constraints.
Constraints are primarily used to impose limits on properties of objects (e.g. position, orientation, scale) and to automate animation processes. A constrained object is an object with properties constrained by one or more weighted constraint sources.
Definition at line 60 of file kfbxconstraint.h.
#include <kfbxconstraint.h>
Public Types |
|
enum | EConstraintType
{ eUNIDENTIFIED, ePOSITION, eROTATION, eSCALE, ePARENT, eSINGLECHAIN_IK, eAIM, eCHARACTER_CONSTRAINT, eCUSTOM, eCONSTRAINT_COUNT } |
Constraint attribute types. More... |
|
Public Member Functions |
|
virtual EConstraintType | GetConstraintType () const |
Access the type of the constraint. |
|
virtual KFbxObject * | GetConstrainedObject () const |
Retrieve the constrained object. |
|
virtual int | GetConstraintSourceCount () const |
Retrieve the count of constraint source.
|
|
virtual KFbxObject * | GetConstraintSource (int pIndex) const |
Retrieve a constraint source with the
specified index. |
|
virtual void | SetOffset (KFbxVector4 pOffset) |
Set value of the offset. |
|
double | GetSourceWeight (const KFbxObject *pObject) const |
Get the weight associated with a constraint
source. |
|
Protected Member Functions |
|
KFbxConstraint (KFbxSdkManager &pManager, char const *pName) | |
virtual bool | ConstructProperties (bool pForceSet) |
Friends |
|
class | KFbxScene |
Properties |
|
KFbxTypedProperty< fbxDouble1 > | Weight |
This property represents the degree of
influence of a constraint from 0.0 (no influence) to 100.0 (full
influence). |
|
KFbxTypedProperty< fbxBool1 > | Active |
This property controls whether the
constraint is applied or not. |
|
KFbxTypedProperty< fbxBool1 > | Lock |
This property handles the lock state of the
constraint. |
|
Error Management |
|
enum | EError { eERROR, eERROR_COUNT } |
Error identifiers. More... |
|
KError & | GetError () |
Retrieve error object. |
|
EError | GetLastErrorID () const |
Get last error code. |
|
const char * | GetLastErrorString () const |
Get last error string. |
enum EConstraintType |
Constraint attribute types.
eUNIDENTIFIED | |
ePOSITION | |
eROTATION | |
eSCALE | |
ePARENT | |
eSINGLECHAIN_IK | |
eAIM | |
eCHARACTER_CONSTRAINT | |
eCUSTOM | |
eCONSTRAINT_COUNT |
Definition at line 103 of file kfbxconstraint.h.
enum EError |
Error identifiers.
Reimplemented in KFbxCharacter.
Definition at line 163 of file kfbxconstraint.h.
{ eERROR, eERROR_COUNT } EError;
KFbxConstraint | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
virtual EConstraintType GetConstraintType | ( | ) | const [inline, virtual] |
Access the type of the constraint.
Reimplemented in KFbxCharacter, KFbxConstraintAim, KFbxConstraintCustom, KFbxConstraintParent, KFbxConstraintPosition, KFbxConstraintRotation, KFbxConstraintScale, and KFbxConstraintSingleChainIK.
Definition at line 120 of file kfbxconstraint.h.
{ return eUNIDENTIFIED; }
virtual KFbxObject* GetConstrainedObject | ( | ) | const [inline, virtual] |
Retrieve the constrained object.
Reimplemented in KFbxConstraintAim, KFbxConstraintParent, KFbxConstraintPosition, KFbxConstraintRotation, and KFbxConstraintScale.
Definition at line 125 of file kfbxconstraint.h.
{ return NULL; }
virtual int GetConstraintSourceCount | ( | ) | const [inline, virtual] |
Retrieve the count of constraint source.
Reimplemented in KFbxConstraintAim, KFbxConstraintParent, KFbxConstraintPosition, KFbxConstraintRotation, and KFbxConstraintScale.
Definition at line 130 of file kfbxconstraint.h.
{ return 0; }
virtual KFbxObject* GetConstraintSource | ( | int | pIndex | ) | const [inline, virtual] |
Retrieve a constraint source with the specified index.
pIndex | The specified index. |
Reimplemented in KFbxConstraintAim, KFbxConstraintParent, KFbxConstraintPosition, KFbxConstraintRotation, and KFbxConstraintScale.
Definition at line 136 of file kfbxconstraint.h.
{ return NULL; }
virtual void SetOffset | ( | KFbxVector4 | pOffset | ) | [virtual] |
Set value of the offset.
pOffset | Offset vector value. |
Reimplemented in KFbxConstraintAim, KFbxConstraintPosition, KFbxConstraintRotation, and KFbxConstraintScale.
double GetSourceWeight | ( | const KFbxObject * | pObject | ) | const |
Get the weight associated with a constraint source.
pObject | The given constraint source. |
KError& GetError | ( | ) |
EError GetLastErrorID | ( | ) | const |
const char* GetLastErrorString | ( | ) | const |
virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from KFbxObject.
Reimplemented in KFbxConstraintAim, KFbxConstraintParent, KFbxConstraintPosition, KFbxConstraintRotation, KFbxConstraintScale, and KFbxConstraintSingleChainIK.
friend class KFbxScene [friend] |
Reimplemented from KFbxObject.
Reimplemented in KFbxCharacter.
Definition at line 201 of file kfbxconstraint.h.
This property represents the degree of influence of a constraint from 0.0 (no influence) to 100.0 (full influence).
Default value is 100.0.
Definition at line 73 of file kfbxconstraint.h.
This property controls whether the constraint is applied or not.
If the value is false
the constraint will have no
effect. The default value is true
.
Default value is true.
Definition at line 80 of file kfbxconstraint.h.
This property handles the lock state of the constraint.
When enabled, the constrained object cannot be moved away from its constrained location when the constraint is active.
Default value is false.
Definition at line 88 of file kfbxconstraint.h.