FBX SDK Reference Guide: kfbxpropertydef.h Source File
00001 #ifndef FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_H
00002 #define FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_H
00003 
00004 /**************************************************************************************
00005 
00006  Copyright © 2001 - 2008 Autodesk, Inc. and/or its licensors.
00007  All Rights Reserved.
00008 
00009  The coded instructions, statements, computer programs, and/or related material 
00010  (collectively the "Data") in these files contain unpublished information 
00011  proprietary to Autodesk, Inc. and/or its licensors, which is protected by 
00012  Canada and United States of America federal copyright law and by international 
00013  treaties. 
00014  
00015  The Data may not be disclosed or distributed to third parties, in whole or in
00016  part, without the prior written consent of Autodesk, Inc. ("Autodesk").
00017 
00018  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
00019  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
00020  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING
00021  BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE, 
00022  NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. 
00023  WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION
00024  OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. 
00025  
00026  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
00027  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES
00028  OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER
00029  SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE
00030  OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND),
00031  HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED
00032  FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE,
00033  ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE,
00034  WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS
00035  OR DAMAGE. 
00036 
00037 **************************************************************************************/
00038 
00039 #include <fbxfilesdk/components/kbaselib/kaydaradef_h.h>
00040 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00041 
00042     typedef int                 kFbxPropertyId;
00043     const   kFbxPropertyId      kFbxProperyIdNull = -1;
00044     const   kFbxPropertyId      kFbxProperyIdRoot = 0;
00045 
00046     enum    KFbxInheritType     { eFbxOverride=0,eFbxInherit=1,eFbxDeleted=2 } ;
00047 
00048     enum kFbxConnectionType
00049     { 
00050         eFbxConnectionNone              = 0,
00051 
00052         // System or user
00053         eFbxConnectionSystem            = 1 << 0,
00054         eFbxConnectionUser              = 1 << 1,
00055         eFbxConnectionSystemOrUser      = eFbxConnectionUser | eFbxConnectionSystem,
00056 
00057         // Type of Link
00058         eFbxConnectionReference         = 1 << 2,
00059         eFbxConnectionContains          = 1 << 3,
00060         eFbxConnectionData              = 1 << 4,
00061         eFbxConnectionLinkType          = eFbxConnectionReference | eFbxConnectionContains | eFbxConnectionData,
00062 
00063         eFbxConnectionDefault           = eFbxConnectionUser | eFbxConnectionReference,
00064 
00065 
00066         eFbxConnectionUnidirectional    = 1 << 7
00067     };
00068 
00069     class FbxPropertyFlags
00070     {
00071     public:
00072             enum eFbxPropertyFlags
00073             {
00074                 eNO_FLAG        = 0,
00075                 eANIMATABLE     = 1, 
00076                 eUSER           = 1<<1,
00077                 eTEMPORARY      = 1<<2,  // System property
00078                 ePUBLISHED      = 1<<3, 
00079                 ePSTATIC        = 1<<4, 
00080 
00081                 eNOT_SAVABLE    = 1<<5,
00082                 eHIDDEN         = 1<<6,
00083 
00084                 eUI_DISABLED    = 1<<7,  // for dynamic UI
00085                 eUI_GROUP       = 1<<8,  // for dynamic UI
00086                 eUI_BOOLGROUP   = 1<<9,  // for dynamic UI
00087                 eUI_EXPANDED    = 1<<10, // for dynamic UI
00088                 eUI_NOCAPTION   = 1<<11, // for dynamic UI
00089                 eUI_PANEL     = 1<<12  // for dynamic UI
00090 
00091             };
00092 
00093             // VC6 Does not like static variables that are initialized in the header
00094             // and there is no kfbxpropertydef.cxx file.
00095             inline static int GetFlagCount() { return 14; }
00096 
00097             inline static eFbxPropertyFlags AllFlags()
00098             {
00099                 eFbxPropertyFlags lAllFlags = eNO_FLAG;
00100 
00101                 for( int i = 0; i < GetFlagCount()-1; ++i )
00102                     lAllFlags = (eFbxPropertyFlags) ( (lAllFlags << 1) | 1 );
00103                 
00104                 return lAllFlags;
00105             }
00106     };
00107 
00108     /**************************************************************************
00109     * Filter management
00110     **************************************************************************/
00111     class   KFbxConnectionPoint;
00112     typedef int kFbxFilterId;
00113 
00117     class KFBX_DLL KFbxConnectionPointFilter
00118     {
00119         // CONSTRUCTOR/DESTRUCTOR
00124     public: 
00126         KFbxConnectionPointFilter() { }
00128         virtual ~KFbxConnectionPointFilter();
00130     public:
00135 
00137         virtual KFbxConnectionPointFilter*      Ref();
00139         virtual void                            Unref();
00140 
00142         virtual kFbxFilterId                    GetUniqueId() const { return 0; }
00143 
00148         virtual bool                            IsValid             (KFbxConnectionPoint*   pConnect) const;
00154         virtual bool                            IsValidConnection   (KFbxConnectionPoint*   pConnect,kFbxConnectionType pType) const;
00159         virtual bool                            IsEqual             (KFbxConnectionPointFilter* pConnectFilter) const;
00160 
00162     };
00163 
00164 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00165 
00166 #endif // FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_H
00167