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 #include <fbxfilesdk/fbxfilesdk_def.h>
00042 
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                 eUI_LEFTLABEL   = 1<<13, // for dynamic UI
00094                 eUI_HIDDEN      = 1<<14  // for dynamic UI
00095 
00096 
00097             };
00098 
00099             // VC6 Does not like static variables that are initialized in the header
00100             // and there is no kfbxpropertydef.cxx file.
00101             inline static int GetFlagCount() { return 15; }
00102 
00103             inline static eFbxPropertyFlags AllFlags()
00104             {
00105                 eFbxPropertyFlags lAllFlags = eNO_FLAG;
00106 
00107                 for( int i = 0; i < GetFlagCount()-1; ++i )
00108                     lAllFlags = (eFbxPropertyFlags) ( (lAllFlags << 1) | 1 );
00109                 
00110                 return lAllFlags;
00111             }
00112     };
00113 
00114     /**************************************************************************
00115     * Filter management
00116     **************************************************************************/
00117     class   KFbxConnectionPoint;
00118     typedef int kFbxFilterId;
00119 
00123     class KFBX_DLL KFbxConnectionPointFilter
00124     {
00125         // CONSTRUCTOR/DESTRUCTOR
00130     public: 
00132         KFbxConnectionPointFilter() { }
00134         virtual ~KFbxConnectionPointFilter();
00136     public:
00141 
00143         virtual KFbxConnectionPointFilter*      Ref();
00145         virtual void                            Unref();
00146 
00148         virtual kFbxFilterId                    GetUniqueId() const { return 0; }
00149 
00154         virtual bool                            IsValid             (KFbxConnectionPoint*   pConnect) const;
00160         virtual bool                            IsValidConnection   (KFbxConnectionPoint*   pConnect,kFbxConnectionType pType) const;
00165         virtual bool                            IsEqual             (KFbxConnectionPointFilter* pConnectFilter) const;
00166 
00168     };
00169 
00170 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00171 
00172 #endif // FBXFILESDK_FBXCORE_KFBXPROPERTYDEF_H
00173