kfbxskeleton.h

Go to the documentation of this file.
00001 
00004 #ifndef _FBXSDK_SKELETON_H_
00005 #define _FBXSDK_SKELETON_H_
00006 
00007 /**************************************************************************************
00008 
00009  Copyright © 2001 - 2007 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 class KFbxSkeleton_internal;
00058 
00062 class KFBX_DLL KFbxSkeleton : public KFbxNodeAttribute
00063 {
00064     KFBXOBJECT_DECLARE(KFbxSkeleton);
00065 
00066 public:
00068     virtual EAttributeType GetAttributeType() const;
00069 
00071     void Reset();
00072 
00077 
00089     typedef enum   
00090     {
00091         eROOT, 
00092         eLIMB, 
00093         eLIMB_NODE, 
00094         eEFFECTOR
00095     } ESkeletonType;    
00096 
00100     void SetSkeletonType(ESkeletonType pSkeletonType);
00101 
00105     ESkeletonType GetSkeletonType() const;
00106 
00112     bool GetSkeletonTypeIsSet() const;
00113 
00117     ESkeletonType GetSkeletonTypeDefaultValue() const;
00118         
00124     bool SetLimbLength(double pLength);
00125     
00130     double GetLimbLength() const;
00131 
00137     bool GetLimbLengthIsSet() const;
00138 
00142     double GetLimbLengthDefaultValue() const;
00143     
00147     bool SetLimbNodeSize(double pSize);
00148     
00152     double GetLimbNodeSize() const;
00153 
00159     bool GetLimbNodeSizeIsSet() const;
00160 
00164     double GetLimbNodeSizeDefaultValue() const;
00165 
00171     bool SetLimbNodeColor(const KFbxColor& pColor);
00172     
00177     KFbxColor GetLimbNodeColor() const;
00178 
00184     bool GetLimbNodeColorIsSet() const;
00185 
00189     KFbxColor GetLimbNodeColorDefaultValue() const;
00190 
00192 
00194 //
00195 //  WARNING!
00196 //
00197 //  Anything beyond these lines may not be documented accurately and is 
00198 //  subject to change without notice.
00199 //
00201 
00202 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00203 
00204 public:
00205 
00206     virtual KObject*  GetFbxObject_internal();
00207     virtual KObject const*  GetFbxObject_internal() const;
00208 
00209     // Clone
00210     virtual KFbxObject* Clone(KFbxObject::ECloneType pCloneType) const;
00211 
00212 protected:
00213     static char const* GetNamePrefix() { return 0; }
00214 
00215     KFbxSkeleton(KFbxSdkManager& pManager, char const* pName);
00216     ~KFbxSkeleton();
00217 
00218     virtual void Destruct(bool pRecursive, bool pDependents);
00219 
00221     KFbxSkeleton& operator=(KFbxSkeleton const& pSkeleton);
00222 
00223     virtual KString     GetTypeName() const;
00224     virtual KStringList GetTypeFlags() const;
00225 
00226     // Property Handler
00227     KFbxSkeleton_internal* mPH;
00228 
00229     ESkeletonType mSkeletonType;
00230 
00231     bool mLimbLengthIsSet;
00232     bool mLimbNodeSizeIsSet;
00233     bool mLimbNodeColorIsSet;
00234     bool mSkeletonTypeIsSet;
00235 
00236     friend class KFbxReaderFbx;
00237     friend class KFbxWriterFbx;
00238 
00239 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00240 
00241 };
00242 
00243 typedef KFbxSkeleton* HKFbxSkeleton;
00244 
00245 #include <fbxfilesdk_nsend.h>
00246 
00247 #endif // #ifndef _FBXSDK_SKELETON_H_
00248 
00249