kfbxpropertydef.h

Go to the documentation of this file.
00001 
00004 #ifndef FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_H
00005 #define FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_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/fbxfilesdk_nsbegin.h>
00044 
00045     typedef int                 kFbxPropertyId;
00046     const   kFbxPropertyId      kFbxProperyIdNull = -1;
00047     const   kFbxPropertyId      kFbxProperyIdRoot = 0;
00048 
00049     enum    KFbxInheritType     { eFbxOverride=0,eFbxInherit=1,eFbxDeleted=2 } ;
00050 
00051     enum kFbxConnectionType
00052     { 
00053         eFbxConnectionNone              = 0,
00054 
00055         // System or user
00056         eFbxConnectionSystem            = 1 << 0,
00057         eFbxConnectionUser              = 1 << 1,
00058         eFbxConnectionSystemOrUser      = eFbxConnectionUser | eFbxConnectionSystem,
00059 
00060         // Type of Link
00061         eFbxConnectionReference         = 1 << 2,
00062         eFbxConnectionContains          = 1 << 3,
00063         eFbxConnectionData              = 1 << 4,
00064         eFbxConnectionLinkType          = eFbxConnectionReference | eFbxConnectionContains | eFbxConnectionData,
00065 
00066         eFbxConnectionDefault           = eFbxConnectionUser | eFbxConnectionReference,
00067 
00068 
00069         eFbxConnectionUnidirectional    = 1 << 7
00070     };
00071 
00072     class FbxPropertyFlags
00073     {
00074     public:
00075             enum eFbxPropertyFlags
00076             {
00077                 eNO_FLAG        = 0,
00078                 eANIMATABLE     = 1, 
00079                 eUSER           = 1<<1,
00080                 eTEMPORARY      = 1<<2,  // System property
00081                 ePUBLISHED      = 1<<3, 
00082                 ePSTATIC        = 1<<4, 
00083 
00084                 eNOT_SAVABLE    = 1<<5,
00085                 eHIDDEN         = 1<<6,
00086 
00087                 eUI_DISABLED    = 1<<7,  // for dynamic UI
00088                 eUI_GROUP       = 1<<8,  // for dynamic UI
00089                 eUI_BOOLGROUP   = 1<<9,  // for dynamic UI
00090                 eUI_EXPANDED    = 1<<10, // for dynamic UI
00091                 eUI_NOCAPTION   = 1<<11, // for dynamic UI
00092                 eUI_PANEL     = 1<<12  // for dynamic UI
00093 
00094             };
00095 
00096             // VC6 Does not like static variables that are initialized in the header
00097             // and there is no kfbxpropertydef.cxx file.
00098             inline static int GetFlagCount() { return 14; }
00099 
00100             inline static eFbxPropertyFlags AllFlags()
00101             {
00102                 eFbxPropertyFlags lAllFlags = eNO_FLAG;
00103 
00104                 for( int i = 0; i < GetFlagCount()-1; ++i )
00105                     lAllFlags = (eFbxPropertyFlags) ( (lAllFlags << 1) | 1 );
00106                 
00107                 return lAllFlags;
00108             }
00109     };
00110 
00111     /**************************************************************************
00112     * Filter management
00113     **************************************************************************/
00114     class   KFbxConnectionPoint;
00115     typedef int kFbxFilterId;
00116 
00120     class KFBX_DLL KFbxConnectionPointFilter
00121     {
00122         // CONSTRUCTOR/DESTRUCTOR
00127     public: 
00129         KFbxConnectionPointFilter() { }
00131         virtual ~KFbxConnectionPointFilter();
00133     public:
00138 
00140         virtual KFbxConnectionPointFilter*      Ref();
00142         virtual void                            Unref();
00143 
00145         virtual kFbxFilterId                    GetUniqueId() const { return 0; }
00146 
00151         virtual bool                            IsValid             (KFbxConnectionPoint*   pConnect) const;
00157         virtual bool                            IsValidConnection   (KFbxConnectionPoint*   pConnect,kFbxConnectionType pType) const;
00162         virtual bool                            IsEqual             (KFbxConnectionPointFilter* pConnectFilter) const;
00163 
00165     };
00166 
00167 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00168 
00169 #endif // FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_H
00170