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
00120 K_DEPRECATED bool SetLimbLength(double pLength);
00121
00127 K_DEPRECATED double GetLimbLength() const;
00128
00134 K_DEPRECATED bool GetLimbLengthIsSet() const;
00135
00139 double GetLimbLengthDefaultValue() const;
00140
00145 K_DEPRECATED bool SetLimbNodeSize(double pSize);
00146
00151 K_DEPRECATED double GetLimbNodeSize() const;
00152
00160 K_DEPRECATED bool GetLimbNodeSizeIsSet() const;
00161
00165 double GetLimbNodeSizeDefaultValue() const;
00166
00172 bool SetLimbNodeColor(const KFbxColor& pColor);
00173
00178 KFbxColor GetLimbNodeColor() const;
00179
00185 bool GetLimbNodeColorIsSet() const;
00186
00190 KFbxColor GetLimbNodeColorDefaultValue() const;
00191
00193
00194
00198 static const char* sSize;
00199 static const char* sLimbLength;
00200
00205 static const fbxDouble1 sDefaultSize;
00206 static const fbxDouble1 sDefaultLimbLength;
00207
00208
00210
00211
00212
00214
00222 KFbxTypedProperty<fbxDouble1> Size;
00223
00231 KFbxTypedProperty<fbxDouble1> LimbLength;
00232
00234
00235
00236
00237
00238
00239
00241
00242 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00243
00244 public:
00245
00246
00247 virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00248
00249 protected:
00250
00251 KFbxSkeleton(KFbxSdkManager& pManager, char const* pName);
00252 ~KFbxSkeleton();
00253
00254 virtual void Construct(const KFbxSkeleton* pFrom);
00255 virtual bool ConstructProperties(bool pForceSet);
00256 virtual void Destruct(bool pRecursive, bool pDependents);
00257
00258 void Reset( bool pResetProperties );
00259
00261 KFbxSkeleton& operator=(KFbxSkeleton const& pSkeleton);
00262
00263 virtual KString GetTypeName() const;
00264 virtual KStringList GetTypeFlags() const;
00265
00266 ESkeletonType mSkeletonType;
00267
00268 bool mLimbLengthIsSet;
00269 bool mLimbNodeSizeIsSet;
00270 bool mLimbNodeColorIsSet;
00271 bool mSkeletonTypeIsSet;
00272
00273 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00274 };
00275
00276 typedef KFbxSkeleton* HKFbxSkeleton;
00277
00278 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00279
00280 #endif // FBXFILESDK_KFBXPLUGINS_KFBXSKELETON_H
00281