- fbx: extend DOM to include the declarations for FBX' rotation order and inheritance enums.

pull/14/head
Alexander Gessler 2012-08-11 01:57:32 +02:00
parent 1a5bf26e91
commit 391a69e68b
1 changed files with 28 additions and 2 deletions

View File

@ -339,6 +339,32 @@ public:
Model(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Model();
public:
enum RotOrder
{
RotOrder_EulerXYZ = 0,
RotOrder_EulerXZY,
RotOrder_EulerYZX,
RotOrder_EulerYXZ,
RotOrder_EulerZXY,
RotOrder_EulerZYX,
RotOrder_SphericXYZ,
RotOrder_MAX // end-of-enum sentinel
};
enum TransformInheritance
{
TransformInheritance_RrSs = 0,
TransformInheritance_RSrs,
TransformInheritance_Rrs,
TransformInheritance_MAX // end-of-enum sentinel
};
public:
fbx_simple_property(QuaternionInterpolate, int, 0);
@ -359,7 +385,7 @@ public:
fbx_simple_property(TranslationMinZ, bool, false);
fbx_simple_property(TranslationMaxZ, bool, false);
fbx_simple_property(RotationOrder, int, 0);
fbx_simple_enum_property(RotationOrder, RotOrder, 0);
fbx_simple_property(RotationSpaceForLimitOnly, bool, false);
fbx_simple_property(RotationStiffnessX, float, 0.0f);
fbx_simple_property(RotationStiffnessY, float, 0.0f);
@ -379,7 +405,7 @@ public:
fbx_simple_property(RotationMaxY, bool, false);
fbx_simple_property(RotationMinZ, bool, false);
fbx_simple_property(RotationMaxZ, bool, false);
fbx_simple_property(InheritType, int, 0);
fbx_simple_enum_property(InheritType, TransformInheritance, 0);
fbx_simple_property(ScalingActive, bool, false);
fbx_simple_property(ScalingMin, aiVector3D, aiVector3D());