FBX SDK Reference Guide: kfbxskeleton.h Source File
Go to the documentation of this file.
00001 
00004 #ifndef _FBXSDK_SKELETON_H_
00005 #define _FBXSDK_SKELETON_H_
00006 
00007 /**************************************************************************************
00008 
00009  Copyright © 2001 - 2008 Autodesk, Inc. and/or its licensors.
00010  All Rights Reserved.
00011 
00012  The coded instructions, statements, computer programs, and/or related material 
00013  (collectively the "Data") in these files contain unpublished information 
00014  proprietary to Autodesk, Inc. and/or its licensors, which is protected by 
00015  Canada and United States of America federal copyright law and by international 
00016  treaties. 
00017  
00018  The Data may not be disclosed or distributed to third parties, in whole or in
00019  part, without the prior written consent of Autodesk, Inc. ("Autodesk").
00020 
00021  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
00022  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
00023  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING
00024  BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE, 
00025  NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. 
00026  WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION
00027  OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. 
00028  
00029  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
00030  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES
00031  OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER
00032  SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE
00033  OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND),
00034  HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED
00035  FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE,
00036  ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE,
00037  WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS
00038  OR DAMAGE. 
00039 
00040 **************************************************************************************/
00041 
00042 #include <kaydaradef.h>
00043 #ifndef KFBX_DLL 
00044     #define KFBX_DLL K_DLLIMPORT
00045 #endif
00046 
00047 #include <kaydara.h>
00048 
00049 #include <klib/kerror.h>
00050 
00051 #include <kfbxplugins/kfbxnodeattribute.h>
00052 #include <kfbxplugins/kfbxcolor.h>
00053 
00054 #include <fbxfilesdk_nsbegin.h>
00055 
00056 class KFbxSdkManager;
00057 
00061 class KFBX_DLL KFbxSkeleton : public KFbxNodeAttribute
00062 {
00063     KFBXOBJECT_DECLARE(KFbxSkeleton,KFbxNodeAttribute);
00064 
00065 public:
00067     virtual EAttributeType GetAttributeType() const;
00068 
00070     void Reset();
00071 
00076 
00088     typedef enum   
00089     {
00090         eROOT, 
00091         eLIMB, 
00092         eLIMB_NODE, 
00093         eEFFECTOR
00094     } ESkeletonType;    
00095 
00099     void SetSkeletonType(ESkeletonType pSkeletonType);
00100 
00104     ESkeletonType GetSkeletonType() const;
00105 
00111     bool GetSkeletonTypeIsSet() const;
00112 
00116     ESkeletonType GetSkeletonTypeDefaultValue() const;
00117         
00124     K_DEPRECATED bool SetLimbLength(double pLength);
00125     
00131     K_DEPRECATED double GetLimbLength() const;
00132 
00138     K_DEPRECATED bool GetLimbLengthIsSet() const;
00139 
00143     double GetLimbLengthDefaultValue() const;
00144     
00149     K_DEPRECATED bool SetLimbNodeSize(double pSize);
00150     
00155     K_DEPRECATED double GetLimbNodeSize() const;
00156 
00164     K_DEPRECATED bool GetLimbNodeSizeIsSet() const;
00165 
00169     double GetLimbNodeSizeDefaultValue() const;
00170 
00176     bool SetLimbNodeColor(const KFbxColor& pColor);
00177     
00182     KFbxColor GetLimbNodeColor() const;
00183 
00189     bool GetLimbNodeColorIsSet() const;
00190 
00194     KFbxColor GetLimbNodeColorDefaultValue() const;
00195 
00197 
00198 
00202     static const char*          sSize;
00203     static const char*          sLimbLength;
00204 
00209     static const fbxDouble1     sDefaultSize;
00210     static const fbxDouble1     sDefaultLimbLength;
00211 
00212 
00214     //
00215     // Properties
00216     //
00218     
00226     KFbxTypedProperty<fbxDouble1>       Size;
00227 
00235     KFbxTypedProperty<fbxDouble1>           LimbLength;
00236 
00238 //
00239 //  WARNING!
00240 //
00241 //  Anything beyond these lines may not be documented accurately and is 
00242 //  subject to change without notice.
00243 //
00245 
00246 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00247 
00248 public:
00249 
00250     // Clone
00251     virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00252 
00253 protected:
00254 
00255     KFbxSkeleton(KFbxSdkManager& pManager, char const* pName);
00256     ~KFbxSkeleton();
00257 
00258     virtual void Construct(const KFbxSkeleton* pFrom);
00259     virtual bool ConstructProperties(bool pForceSet);
00260     virtual void Destruct(bool pRecursive, bool pDependents);
00261 
00262     void Reset( bool pResetProperties );
00263 
00265     KFbxSkeleton& operator=(KFbxSkeleton const& pSkeleton);
00266 
00267     virtual KString     GetTypeName() const;
00268     virtual KStringList GetTypeFlags() const;
00269 
00270     ESkeletonType mSkeletonType;
00271 
00272     bool mLimbLengthIsSet;
00273     bool mLimbNodeSizeIsSet;
00274     bool mLimbNodeColorIsSet;
00275     bool mSkeletonTypeIsSet;
00276 
00277     friend class KFbxReaderFbx;
00278     friend class KFbxWriterFbx;
00279 
00280 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00281 
00282 };
00283 
00284 typedef KFbxSkeleton* HKFbxSkeleton;
00285 
00286 #include <fbxfilesdk_nsend.h>
00287 
00288 #endif // #ifndef _FBXSDK_SKELETON_H_
00289 
00290