FBX SDK Reference Guide: kfbxmarker.h Source File
Go to the documentation of this file.
00001 
00004 #ifndef _FBXSDK_MARKER_H_
00005 #define _FBXSDK_MARKER_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 <kfbxplugins/kfbxnodeattribute.h>
00050 #include <kfbxplugins/kfbxcolor.h>
00051 #include <kfbxmath/kfbxvector4.h>
00052 
00053 #ifndef MB_FBXSDK
00054 #include <kbaselib_nsuse.h>
00055 #endif
00056 #include <kbaselib_forward.h>
00057 
00058 #include <fbxfilesdk_nsbegin.h>
00059 
00060 class KFbxTakeNode;
00061 class KFbxSdkManager;
00062 
00066 class KFBX_DLL KFbxMarker : public KFbxNodeAttribute
00067 {
00068     KFBXOBJECT_DECLARE(KFbxMarker,KFbxNodeAttribute);
00069 
00070 public:
00072     virtual EAttributeType GetAttributeType() const;
00073 
00075     void Reset();
00076 
00083     typedef enum { 
00084         eSTANDARD, 
00085         eOPTICAL, 
00086         eFK_EFFECTOR,
00087         eIK_EFFECTOR
00088     } EType;
00089 
00093     void SetType(EType pType);
00094 
00098     EType GetType() const;
00099 
00106     typedef enum { 
00107         eCUBE, 
00108         eHARD_CROSS, 
00109         eLIGHT_CROSS, 
00110         eSPHERE
00111     } ELook;
00112     
00117     K_DEPRECATED void SetLook(ELook pLook);
00118 
00123     K_DEPRECATED ELook GetLook() const;
00124 
00129     K_DEPRECATED void SetSize(double pSize);
00130 
00135     K_DEPRECATED double GetSize() const;
00136 
00141     K_DEPRECATED void SetShowLabel(bool pShowLabel);
00142 
00147     K_DEPRECATED bool GetShowLabel() const;
00148 
00153     K_DEPRECATED void SetIKPivot(KFbxVector4& pIKPivot);
00154 
00159     K_DEPRECATED KFbxVector4 GetIKPivot() const;
00160 
00170 
00175     double GetDefaultOcclusion() const;
00176 
00181     void SetDefaultOcclusion(double pOcclusion);
00182 
00187     double GetDefaultIKReachTranslation() const;
00188 
00193     void SetDefaultIKReachTranslation(double pIKReachTranslation);
00194 
00199     double GetDefaultIKReachRotation() const;
00200 
00205     void SetDefaultIKReachRotation(double pIKReachRotation);
00206 
00208 
00213 
00218     KFbxColor& GetDefaultColor(KFbxColor& pColor) const;
00219 
00223     void SetDefaultColor(KFbxColor& pColor);
00224 
00226 
00230     static const char*          sLook;
00231     static const char*          sSize;
00232     static const char*          sShowLabel;
00233     static const char*          sIKPivot;
00234 
00238     static const ELook          sDefaultLook;
00239     static const fbxDouble1     sDefaultSize;
00240     static const fbxBool1       sDefaultShowLabel;
00241     static const fbxDouble3     sDefaultIKPivot;
00242 
00244     //
00245     // Properties
00246     //
00248     
00256     KFbxTypedProperty<ELook> Look;
00257     
00265     KFbxTypedProperty<fbxDouble1> Size;
00266     
00274     KFbxTypedProperty<fbxBool1> ShowLabel;
00275     
00283     KFbxTypedProperty<fbxDouble3> IKPivot;
00284 
00285     // Dynamic properties
00286 
00291     KFbxProperty* GetOcclusion();
00292 
00297     KFbxProperty* GetIKReachTranslation();
00302     KFbxProperty* GetIKReachRotation();
00303 
00305 //
00306 //  WARNING!
00307 //
00308 //  Anything beyond these lines may not be documented accurately and is 
00309 //  subject to change without notice.
00310 //
00312 
00313 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00314 
00315 public:
00316 
00317     // Clone
00318     virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00319 
00320 protected:
00321 
00322     KFbxMarker(KFbxSdkManager& pManager, char const* pName);
00323     virtual ~KFbxMarker();
00324 
00325     virtual void Construct(const KFbxMarker* pFrom);
00326     virtual bool ConstructProperties(bool pForceSet);
00327     virtual void Destruct(bool pRecursive, bool pDependents);
00328     void Reset( bool pResetProperties );
00329 
00331     KFbxMarker& operator=(KFbxMarker const& pMarker);
00332 
00337     virtual KString     GetTypeName() const;
00338     virtual KStringList GetTypeFlags() const;
00339 
00340     EType mType;
00341 
00342     KFbxProperty dynProp; // temporary placeholder for either
00343     // the Occlusion, IKReachTranslation or IKReachRotation 
00344     // properties. Its address is returned in the GetOcclusion(),
00345     // GetIKReachTranslation() and GetIKReachRotation() if the property
00346     // is valid
00347 
00348     friend class KFbxReaderFbx;
00349 
00350 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00351 
00352 };
00353 
00354 typedef KFbxMarker* HKFbxMarker;
00355 
00356 inline EFbxType FbxTypeOf( KFbxMarker::ELook const &pItem )         { return eENUM; }
00357 
00358 #include <fbxfilesdk_nsend.h>
00359 
00360 #endif // #ifndef _FBXSDK_MARKER_H_
00361 
00362