00001
00004 #ifndef FBXFILESDK_KFBXPLUGINS_KFBXSKELETON_H
00005 #define FBXFILESDK_KFBXPLUGINS_KFBXSKELETON_H
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include <fbxfilesdk/components/kbaselib/kaydaradef_h.h>
00043 #include <fbxfilesdk/components/kbaselib/kaydara.h>
00044
00045 #include <fbxfilesdk/components/kbaselib/klib/kerror.h>
00046
00047 #include <fbxfilesdk/kfbxplugins/kfbxnodeattribute.h>
00048 #include <fbxfilesdk/kfbxplugins/kfbxcolor.h>
00049
00050 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00051
00052 class KFbxSdkManager;
00053
00057 class KFBX_DLL KFbxSkeleton : public KFbxNodeAttribute
00058 {
00059 KFBXOBJECT_DECLARE(KFbxSkeleton,KFbxNodeAttribute);
00060
00061 public:
00063 virtual EAttributeType GetAttributeType() const;
00064
00066 void Reset();
00067
00072
00084 typedef enum
00085 {
00086 eROOT,
00087 eLIMB,
00088 eLIMB_NODE,
00089 eEFFECTOR
00090 } ESkeletonType;
00091
00095 void SetSkeletonType(ESkeletonType pSkeletonType);
00096
00100 ESkeletonType GetSkeletonType() const;
00101
00107 bool GetSkeletonTypeIsSet() const;
00108
00112 ESkeletonType GetSkeletonTypeDefaultValue() const;
00113
00117 double GetLimbLengthDefaultValue() const;
00118
00122 double GetLimbNodeSizeDefaultValue() const;
00123
00129 bool SetLimbNodeColor(const KFbxColor& pColor);
00130
00135 KFbxColor GetLimbNodeColor() const;
00136
00142 bool GetLimbNodeColorIsSet() const;
00143
00147 KFbxColor GetLimbNodeColorDefaultValue() const;
00148
00150
00151
00155 static const char* sSize;
00156 static const char* sLimbLength;
00157
00162 static const fbxDouble1 sDefaultSize;
00163 static const fbxDouble1 sDefaultLimbLength;
00164
00165
00167
00168
00169
00171
00179 KFbxTypedProperty<fbxDouble1> Size;
00180
00188 KFbxTypedProperty<fbxDouble1> LimbLength;
00189
00191
00192
00193
00194
00195
00196
00198
00199 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00200
00201 public:
00202
00203
00204 virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00205
00206 protected:
00207
00208 KFbxSkeleton(KFbxSdkManager& pManager, char const* pName);
00209
00210 virtual void Construct(const KFbxSkeleton* pFrom);
00211 virtual bool ConstructProperties(bool pForceSet);
00212
00213 void Reset( bool pResetProperties );
00214
00216 KFbxSkeleton& operator=(KFbxSkeleton const& pSkeleton);
00217
00218 virtual KString GetTypeName() const;
00219 virtual KStringList GetTypeFlags() const;
00220
00221 ESkeletonType mSkeletonType;
00222
00223 bool mLimbLengthIsSet;
00224 bool mLimbNodeSizeIsSet;
00225 bool mLimbNodeColorIsSet;
00226 bool mSkeletonTypeIsSet;
00227
00228 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00229 };
00230
00231 typedef KFbxSkeleton* HKFbxSkeleton;
00232
00233 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00234
00235 #endif // FBXFILESDK_KFBXPLUGINS_KFBXSKELETON_H
00236