This reference page is linked to from the following overview topics: List of Python FBX classes.
This constraint class contains methods for accessing the properties of a rotation constraint.
A rotation constraint lets you constrain the rotation of an object based on the rotation of one or more sources.
Definition at line 34 of file kfbxconstraintrotation.h.
#include <kfbxconstraintrotation.h>
Public Member Functions |
|
void | SetLock (bool pLock) |
Set the constraint lock. |
|
bool | GetLock () const |
Retrieve the constraint lock state. |
|
void | SetAffectX (bool pAffect) |
Set the constraint X-axis effectiveness.
|
|
bool | GetAffectX () const |
Retrieve the constraint X-axis
effectiveness. |
|
void | SetAffectY (bool pAffect) |
Set the constraint Y-axis effectiveness.
|
|
bool | GetAffectY () const |
Retrieve the constraint Y-axis
effectiveness. |
|
void | SetAffectZ (bool pAffect) |
Set the constraint Z-axis effectiveness.
|
|
bool | GetAffectZ () const |
Retrieve the constraint Z-axis
effectiveness. |
|
void | SetWeight (double pWeight) |
Set the weight of the constraint. |
|
virtual void | SetOffset (KFbxVector4 pRotation) |
Set the rotation offset. |
|
KFbxVector4 | GetOffset () const |
Retrieve the constraint rotation offset.
|
|
void | AddConstraintSource (KFbxObject *pObject, double pWeight=100) |
Add a source to the constraint. |
|
int | GetConstraintSourceCount () const |
Retrieve the constraint source count.
|
|
KFbxObject * | GetConstraintSource (int pIndex) const |
Retrieve a constraint source object.
|
|
void | SetConstrainedObject (KFbxObject *pObject) |
Set the constrained object. |
|
KFbxObject * | GetConstrainedObject () const |
Retrieve the constrained object. |
|
Public Attributes |
|
KFbxTypedProperty< fbxReference > | SourceWeights |
Protected Member Functions |
|
KFbxConstraintRotation (KFbxSdkManager &pManager, char const *pName) | |
virtual bool | ConstructProperties (bool pForceSet) |
virtual EConstraintType | GetConstraintType () const |
Access the type of the constraint. |
|
Properties |
|
KFbxTypedProperty< fbxBool1 > | AffectX |
This property handles whether to affect x
axis. |
|
KFbxTypedProperty< fbxBool1 > | AffectY |
This property handles whether to affect y
axis. |
|
KFbxTypedProperty< fbxBool1 > | AffectZ |
This property handles whether to affect z
axis. |
|
KFbxTypedProperty< fbxDouble3 > | Rotation |
This property handles rotation offset.
|
|
KFbxTypedProperty< fbxReference > | ConstraintSources |
This property handles constraint source
objects. |
|
KFbxTypedProperty< fbxReference > | ConstrainedObject |
This property handles constraint target
objects. |
KFbxConstraintRotation | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
void SetLock | ( | bool | pLock | ) |
bool GetLock | ( | ) | const |
void SetAffectX | ( | bool | pAffect | ) |
Set the constraint X-axis effectiveness.
pAffect | State of the effectiveness on the X axis. |
bool GetAffectX | ( | ) | const |
Retrieve the constraint X-axis effectiveness.
void SetAffectY | ( | bool | pAffect | ) |
Set the constraint Y-axis effectiveness.
pAffect | State of the effectiveness on the X axis. |
bool GetAffectY | ( | ) | const |
Retrieve the constraint Y-axis effectiveness.
void SetAffectZ | ( | bool | pAffect | ) |
Set the constraint Z-axis effectiveness.
pAffect | State of the effectiveness on the X axis. |
bool GetAffectZ | ( | ) | const |
Retrieve the constraint Z-axis effectiveness.
void SetWeight | ( | double | pWeight | ) |
virtual void SetOffset | ( | KFbxVector4 | pRotation | ) | [virtual] |
Set the rotation offset.
pRotation | New offset vector. |
Reimplemented from KFbxConstraint.
KFbxVector4 GetOffset | ( | ) | const |
Retrieve the constraint rotation offset.
void AddConstraintSource | ( | KFbxObject * | pObject, |
double | pWeight =
100 |
||
) |
Add a source to the constraint.
pObject | New source object. |
pWeight | Weight of the source object. |
int GetConstraintSourceCount | ( | ) | const [virtual] |
Retrieve the constraint source count.
Reimplemented from KFbxConstraint.
KFbxObject* GetConstraintSource | ( | int | pIndex | ) | const [virtual] |
Retrieve a constraint source object.
pIndex | Index of the source object |
Reimplemented from KFbxConstraint.
void SetConstrainedObject | ( | KFbxObject * | pObject | ) |
KFbxObject* GetConstrainedObject | ( | ) | const [virtual] |
Retrieve the constrained object.
Reimplemented from KFbxConstraint.
virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from KFbxConstraint.
virtual EConstraintType GetConstraintType | ( | ) | const [protected, virtual] |
Access the type of the constraint.
Reimplemented from KFbxConstraint.
This property handles whether to affect x axis.
Default value is true.
Definition at line 46 of file kfbxconstraintrotation.h.
This property handles whether to affect y axis.
Default value is true.
Definition at line 50 of file kfbxconstraintrotation.h.
This property handles whether to affect z axis.
Default value is true.
Definition at line 55 of file kfbxconstraintrotation.h.
This property handles rotation offset.
Default value is (0, 0, 0).
Definition at line 60 of file kfbxconstraintrotation.h.
This property handles constraint source objects.
Definition at line 64 of file kfbxconstraintrotation.h.
This property handles constraint target objects.
Definition at line 68 of file kfbxconstraintrotation.h.
Definition at line 155 of file kfbxconstraintrotation.h.