#include
<kfbxaxissystem.h>
Definition at line 61 of file kfbxaxissystem.h.
Constructor and Destructor |
|
KFbxAxisSystem (eUpVector pUpVector, eFrontVector pFrontVector, eCoorSystem pCoorSystem) | |
Constructor! |
|
KFbxAxisSystem (const KFbxAxisSystem &pAxisSystem) | |
Copy constructor! |
|
KFbxAxisSystem (const ePreDefinedAxisSystem pAxisSystem) | |
Constructor! |
|
virtual | ~KFbxAxisSystem () |
Destructor. |
|
Boolean operation. |
|
bool | operator== (const KFbxAxisSystem &pAxisSystem) const |
Equivalence operator. |
|
bool | operator!= (const KFbxAxisSystem &pAxisSystem) const |
Non-equivalence operator. |
|
Public Types |
|
enum | eUpVector |
Specifies which canonical axis represents up
in the system. More... |
|
enum | eFrontVector |
Vector with origin at the screen pointing
toward the camera. More... |
|
enum | eCoorSystem |
|
|
enum | ePreDefinedAxisSystem |
|
|
Public Member Functions |
|
KFbxAxisSystem & | operator= (const KFbxAxisSystem &pAxisSystem) |
Assignment operation. |
|
void | ConvertScene (KFbxScene *pScene) const |
Convert a scene to this axis system.
|
|
void | ConvertScene (KFbxScene *pScene, KFbxNode *pFbxRoot) const |
Convert a scene to this axis system by using
the specified node as an Fbx_Root. |
|
eUpVector | GetUpVector (int &pSign) const |
Returns the eUpVector this axis system and
get the sign of the axis. |
|
eCoorSystem | GetCoorSystem () const |
Returns the eCoorSystem this axis system.
|
|
void | ConvertChildren (KFbxNode *pRoot, const KFbxAxisSystem &pSrcSystem) const |
Converts the children of the given node to
this axis system. |
|
Static Public Attributes |
|
static const KFbxAxisSystem | MayaZUp |
Predefined axis system: MayaZUp. |
|
static const KFbxAxisSystem | MayaYUp |
Predefined axis system: MayaYUp. |
|
static const KFbxAxisSystem | Max |
Predefined axis system: Max. |
|
static const KFbxAxisSystem | Motionbuilder |
Predefined axis system: Motionbuilder.
|
|
static const KFbxAxisSystem | OpenGL |
Predefined axis system: OpenGL. |
|
static const KFbxAxisSystem | DirectX |
Predefined axis system: DirectX. |
|
static const KFbxAxisSystem | Lightwave |
Predefined axis system: Lightwave. |
enum eUpVector |
Specifies which canonical axis represents up in the system.
Typically Y or Z.
Definition at line 70 of file kfbxaxissystem.h.
enum eFrontVector |
Vector with origin at the screen pointing toward the camera.
This is a subset of enum eUpVector because axis cannot be repeated.
Definition at line 81 of file kfbxaxissystem.h.
enum eCoorSystem |
Definition at line 90 of file kfbxaxissystem.h.
Definition at line 104 of file kfbxaxissystem.h.
KFbxAxisSystem | ( | eUpVector | pUpVector, | |
eFrontVector | pFrontVector, | |||
eCoorSystem | pCoorSystem | |||
) |
Constructor!
pUpVector | Specify the up vector. | |
pFrontVector | Specify the front vector. | |
pCoorSystem | Specify RightHanded coordinate system or LeftHanded coordinate system. |
KFbxAxisSystem | ( | const KFbxAxisSystem & | pAxisSystem | ) |
Copy constructor!
pAxisSystem | Another KFbxAxisSystem object copied to this one. |
KFbxAxisSystem | ( | const ePreDefinedAxisSystem | pAxisSystem | ) |
Constructor!
pAxisSystem | Specify which predefined axis system to copy. |
virtual ~KFbxAxisSystem | ( | ) | [virtual] |
Destructor.
bool operator== | ( | const KFbxAxisSystem & | pAxisSystem | ) | const |
Equivalence operator.
pAxisSystem | The axis system to compare against this one. |
true
if these two axis systems are equal,
false
otherwise.bool operator!= | ( | const KFbxAxisSystem & | pAxisSystem | ) | const |
Non-equivalence operator.
pAxisSystem | The axis system to compare against this one. |
true
if these two axis systems are unequal,
false
otherwise.KFbxAxisSystem& operator= | ( | const KFbxAxisSystem & | pAxisSystem | ) |
Assignment operation.
pAxisSystem | Axis system assigned to this one. |
void ConvertScene | ( | KFbxScene * | pScene | ) | const |
Convert a scene to this axis system.
Sets the axis system of the scene to this system unit.
pScene | The scene to convert |
Convert a scene to this axis system by using the specified node as an Fbx_Root.
This is provided for backwards compatibility only and ConvertScene(KFbxScene* pScene) should be used instead when possible.
pScene | The scene to convert | |
pFbxRoot | The Fbx_Root node that will be transformed. |
eUpVector GetUpVector | ( | int & | pSign | ) | const |
Returns the eUpVector this axis system and get the sign of the axis.
pSign | The sign of the axis, 1 if up, -1 is down. |
eCoorSystem GetCoorSystem | ( | ) | const |
Returns the eCoorSystem this axis system.
void ConvertChildren | ( | KFbxNode * | pRoot, | |
const KFbxAxisSystem & | pSrcSystem | |||
) | const |
Converts the children of the given node to this axis system.
Unlike the ConvertScene() method, this method does not set the axis system of the scene that the pRoot node belongs, nor does it adjust KFbxPoses as they are not stored under the scene, and not under a particular node.
pRoot | The node whose children are converted. | |
pSrcSystem | The source axis system. |
const KFbxAxisSystem MayaZUp
[static] |
Predefined axis system: MayaZUp.
Definition at line 164 of file kfbxaxissystem.h.
const KFbxAxisSystem MayaYUp
[static] |
Predefined axis system: MayaYUp.
Definition at line 167 of file kfbxaxissystem.h.
const KFbxAxisSystem Max
[static] |
Predefined axis system: Max.
Definition at line 170 of file kfbxaxissystem.h.
const KFbxAxisSystem Motionbuilder
[static] |
Predefined axis system: Motionbuilder.
Definition at line 173 of file kfbxaxissystem.h.
const KFbxAxisSystem OpenGL
[static] |
Predefined axis system: OpenGL.
Definition at line 176 of file kfbxaxissystem.h.
const KFbxAxisSystem DirectX
[static] |
Predefined axis system: DirectX.
Definition at line 179 of file kfbxaxissystem.h.
const KFbxAxisSystem Lightwave
[static] |
Predefined axis system: Lightwave.
Definition at line 182 of file kfbxaxissystem.h.