kfbxmarker.h

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 (C) 2001 - 2009 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     
00115 
00120     double GetDefaultOcclusion() const;
00121 
00126     void SetDefaultOcclusion(double pOcclusion);
00127 
00132     double GetDefaultIKReachTranslation() const;
00133 
00138     void SetDefaultIKReachTranslation(double pIKReachTranslation);
00139 
00144     double GetDefaultIKReachRotation() const;
00145 
00150     void SetDefaultIKReachRotation(double pIKReachRotation);
00151 
00153 
00158 
00164     KFbxColor& GetDefaultColor(KFbxColor& pColor) const;
00165 
00170     void SetDefaultColor(KFbxColor& pColor);
00171 
00173 
00177     static const char*          sLook;
00178     static const char*          sSize;
00179     static const char*          sShowLabel;
00180     static const char*          sIKPivot;
00181 
00185     static const ELook          sDefaultLook;
00186     static const fbxDouble1     sDefaultSize;
00187     static const fbxBool1       sDefaultShowLabel;
00188     static const fbxDouble3     sDefaultIKPivot;
00189 
00191     //
00192     // Properties
00193     //
00195     
00203     KFbxTypedProperty<ELook> Look;
00204     
00212     KFbxTypedProperty<fbxDouble1> Size;
00213     
00221     KFbxTypedProperty<fbxBool1> ShowLabel;
00222     
00230     KFbxTypedProperty<fbxDouble3> IKPivot;
00231 
00232     // Dynamic properties
00233 
00238     KFbxProperty* GetOcclusion();
00239 
00244     KFbxProperty* GetIKReachTranslation();
00249     KFbxProperty* GetIKReachRotation();
00250 
00252 //
00253 //  WARNING!
00254 //
00255 //  Anything beyond these lines may not be documented accurately and is 
00256 //  subject to change without notice.
00257 //
00259 
00260 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00261 
00262 public:
00263 
00264     // Clone
00265     virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00266 
00267 protected:
00268 
00269     KFbxMarker(KFbxSdkManager& pManager, char const* pName);
00270 
00271     virtual void Construct(const KFbxMarker* pFrom);
00272     virtual bool ConstructProperties(bool pForceSet);
00273 
00274     void Reset( bool pResetProperties );
00275 
00277     KFbxMarker& operator=(KFbxMarker const& pMarker);
00278 
00283     virtual KString     GetTypeName() const;
00284     virtual KStringList GetTypeFlags() const;
00285 
00286     EType mType;
00287 
00288     KFbxProperty dynProp; // temporary placeholder for either
00289     // the Occlusion, IKReachTranslation or IKReachRotation 
00290     // properties. Its address is returned in the GetOcclusion(),
00291     // GetIKReachTranslation() and GetIKReachRotation() if the property
00292     // is valid
00293 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00294 };
00295 
00296 typedef KFbxMarker* HKFbxMarker;
00297 
00298 inline EFbxType FbxTypeOf( KFbxMarker::ELook const &pItem )         { return eENUM; }
00299 
00300 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00301 
00302 #endif // FBXFILESDK_KFBXPLUGINS_KFBXMARKER_H
00303