FBX SDK Reference Guide: kfbxmarker.h Source File
Go to the documentation of this file.
00001 
00004 #ifndef FBXFILESDK_KFBXPLUGINS_KFBXMARKER_H
00005 #define FBXFILESDK_KFBXPLUGINS_KFBXMARKER_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 <fbxfilesdk/components/kbaselib/kaydaradef_h.h>
00043 #include <fbxfilesdk/components/kbaselib/kaydara.h>
00044 
00045 #include <fbxfilesdk/kfbxplugins/kfbxnodeattribute.h>
00046 #include <fbxfilesdk/kfbxplugins/kfbxcolor.h>
00047 #include <fbxfilesdk/kfbxmath/kfbxvector4.h>
00048 
00049 #include <fbxfilesdk/components/kbaselib/kbaselib_forward.h>
00050 
00051 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00052 
00053 class KFbxTakeNode;
00054 class KFbxSdkManager;
00055 
00059 class KFBX_DLL KFbxMarker : public KFbxNodeAttribute
00060 {
00061     KFBXOBJECT_DECLARE(KFbxMarker,KFbxNodeAttribute);
00062 
00063 public:
00065     virtual EAttributeType GetAttributeType() const;
00066 
00068     void Reset();
00069 
00076     typedef enum { 
00077         eSTANDARD, 
00078         eOPTICAL, 
00079         eFK_EFFECTOR,
00080         eIK_EFFECTOR
00081     } EType;
00082 
00086     void SetType(EType pType);
00087 
00091     EType GetType() const;
00092 
00099     typedef enum { 
00100         eCUBE, 
00101         eHARD_CROSS, 
00102         eLIGHT_CROSS, 
00103         eSPHERE
00104     } ELook;
00105     
00110     K_DEPRECATED void SetLook(ELook pLook);
00111 
00116     K_DEPRECATED ELook GetLook() const;
00117 
00122     K_DEPRECATED void SetSize(double pSize);
00123 
00128     K_DEPRECATED double GetSize() const;
00129 
00134     K_DEPRECATED void SetShowLabel(bool pShowLabel);
00135 
00140     K_DEPRECATED bool GetShowLabel() const;
00141 
00146     K_DEPRECATED void SetIKPivot(KFbxVector4& pIKPivot);
00147 
00152     K_DEPRECATED KFbxVector4 GetIKPivot() const;
00153 
00163 
00168     double GetDefaultOcclusion() const;
00169 
00174     void SetDefaultOcclusion(double pOcclusion);
00175 
00180     double GetDefaultIKReachTranslation() const;
00181 
00186     void SetDefaultIKReachTranslation(double pIKReachTranslation);
00187 
00192     double GetDefaultIKReachRotation() const;
00193 
00198     void SetDefaultIKReachRotation(double pIKReachRotation);
00199 
00201 
00206 
00212     KFbxColor& GetDefaultColor(KFbxColor& pColor) const;
00213 
00218     void SetDefaultColor(KFbxColor& pColor);
00219 
00221 
00225     static const char*          sLook;
00226     static const char*          sSize;
00227     static const char*          sShowLabel;
00228     static const char*          sIKPivot;
00229 
00233     static const ELook          sDefaultLook;
00234     static const fbxDouble1     sDefaultSize;
00235     static const fbxBool1       sDefaultShowLabel;
00236     static const fbxDouble3     sDefaultIKPivot;
00237 
00239     //
00240     // Properties
00241     //
00243     
00251     KFbxTypedProperty<ELook> Look;
00252     
00260     KFbxTypedProperty<fbxDouble1> Size;
00261     
00269     KFbxTypedProperty<fbxBool1> ShowLabel;
00270     
00278     KFbxTypedProperty<fbxDouble3> IKPivot;
00279 
00280     // Dynamic properties
00281 
00286     KFbxProperty* GetOcclusion();
00287 
00292     KFbxProperty* GetIKReachTranslation();
00297     KFbxProperty* GetIKReachRotation();
00298 
00300 //
00301 //  WARNING!
00302 //
00303 //  Anything beyond these lines may not be documented accurately and is 
00304 //  subject to change without notice.
00305 //
00307 
00308 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00309 
00310 public:
00311 
00312     // Clone
00313     virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00314 
00315 protected:
00316 
00317     KFbxMarker(KFbxSdkManager& pManager, char const* pName);
00318     virtual ~KFbxMarker();
00319 
00320     virtual void Construct(const KFbxMarker* pFrom);
00321     virtual bool ConstructProperties(bool pForceSet);
00322     virtual void Destruct(bool pRecursive, bool pDependents);
00323     void Reset( bool pResetProperties );
00324 
00326     KFbxMarker& operator=(KFbxMarker const& pMarker);
00327 
00332     virtual KString     GetTypeName() const;
00333     virtual KStringList GetTypeFlags() const;
00334 
00335     EType mType;
00336 
00337     KFbxProperty dynProp; // temporary placeholder for either
00338     // the Occlusion, IKReachTranslation or IKReachRotation 
00339     // properties. Its address is returned in the GetOcclusion(),
00340     // GetIKReachTranslation() and GetIKReachRotation() if the property
00341     // is valid
00342 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00343 };
00344 
00345 typedef KFbxMarker* HKFbxMarker;
00346 
00347 inline EFbxType FbxTypeOf( KFbxMarker::ELook const &pItem )         { return eENUM; }
00348 
00349 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00350 
00351 #endif // FBXFILESDK_KFBXPLUGINS_KFBXMARKER_H
00352