kfbxmarker.h

Go to the documentation of this file.
00001 
00004 #ifndef _FBXSDK_MARKER_H_
00005 #define _FBXSDK_MARKER_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 <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 class KFbxMarker_internal;
00063 
00067 class KFBX_DLL KFbxMarker : public KFbxNodeAttribute
00068 {
00069     KFBXOBJECT_DECLARE(KFbxMarker);
00070 
00071 public:
00073     virtual EAttributeType GetAttributeType() const;
00074 
00076     void Reset();
00077 
00084     typedef enum { 
00085         eSTANDARD, 
00086         eOPTICAL, 
00087         eIK_EFFECTOR, 
00088         eFK_EFFECTOR
00089     } EType;
00090 
00094     void SetType(EType pType);
00095 
00099     EType GetType() const;
00100 
00107     typedef enum { 
00108         eCUBE, 
00109         eHARD_CROSS, 
00110         eLIGHT_CROSS, 
00111         eSPHERE
00112     } ELook;
00113     
00117     void SetLook(ELook pLook);
00118 
00122     ELook GetLook() const;
00123 
00127     void SetSize(double pSize);
00128 
00132     double GetSize() const;
00133 
00137     void SetColor(KFbxColor pColor);
00138 
00142     KFbxColor GetColor() const;
00143 
00147     void SetShowLabel(bool pShowLabel);
00148 
00152     bool GetShowLabel() const;
00153 
00157     void SetIKPivot(KFbxVector4& pIKPivot);
00158 
00162     KFbxVector4 GetIKPivot() const;
00163 
00173 
00178     double GetDefaultOcclusion() const;
00179 
00184     void SetDefaultOcclusion(double pOcclusion);
00185 
00190     double GetDefaultIKReachTranslation() const;
00191 
00196     void SetDefaultIKReachTranslation(double pIKReachTranslation);
00197 
00202     double GetDefaultIKReachRotation() const;
00203 
00208     void SetDefaultIKReachRotation(double pIKReachRotation);
00209 
00211 
00216 
00221     KFbxColor& GetDefaultColor(KFbxColor& pColor) const;
00222 
00226     void SetDefaultColor(KFbxColor& pColor);
00227 
00229 
00231 //
00232 //  WARNING!
00233 //
00234 //  Anything beyond these lines may not be documented accurately and is 
00235 //  subject to change without notice.
00236 //
00238 
00239 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00240 
00241 public:
00242 
00243     virtual KObject*  GetFbxObject_internal();
00244     virtual KObject const*  GetFbxObject_internal() const;
00245 
00246     // Clone
00247     virtual KFbxObject* Clone(KFbxObject::ECloneType pCloneType) const;
00248 
00249 protected:
00250     static char const* GetNamePrefix() { return 0; }
00251 
00252     KFbxMarker(KFbxSdkManager& pManager, char const* pName);
00253     virtual ~KFbxMarker();
00254 
00255     virtual void Destruct(bool pRecursive, bool pDependents);
00256 
00258     KFbxMarker& operator=(KFbxMarker const& pMarker);
00259 
00263     virtual void AddChannels(KFbxTakeNode *pTakeNode);
00264 
00268     virtual void RemoveChannels(KFbxTakeNode *pTakeNode);
00269 
00274     virtual KString     GetTypeName() const;
00275     virtual KStringList GetTypeFlags() const;
00276 
00277     EType mType;
00278 
00279     // Properties Handler
00280     KFbxMarker_internal* mPH;
00281 
00282     friend class KFbxReaderFbx;
00283 
00284 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00285 
00286 };
00287 
00288 typedef KFbxMarker* HKFbxMarker;
00289 
00290 #include <fbxfilesdk_nsend.h>
00291 
00292 #endif // #ifndef _FBXSDK_MARKER_H_
00293 
00294