/************************************************************************************** Copyright (C) 2001 - 2010 Autodesk, Inc. and/or its licensors. All Rights Reserved. The coded instructions, statements, computer programs, and/or related material (collectively the "Data") in these files contain unpublished information proprietary to Autodesk, Inc. and/or its licensors, which is protected by Canada and United States of America federal copyright law and by international treaties. The Data may not be disclosed or distributed to third parties, in whole or in part, without the prior written consent of Autodesk, Inc. ("Autodesk"). THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY. ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE. **************************************************************************************/ #ifndef _MYKFBXMESH_H_ #define _MYKFBXMESH_H_ #include <fbxfilesdk/fbxfilesdk_def.h> #include <fbxfilesdk/kfbxplugins/kfbxmesh.h> #include <fbxfilesdk/fbxfilesdk_nsbegin.h> //Show how to create a class derived from existing kfbx class class MyKFbxMesh : public KFbxMesh { KFBXOBJECT_DECLARE(MyKFbxMesh, KFbxMesh); public: typedef enum { eCOLOR =0, //inherited by kfbxmesh eMY_PROPERTY1, eMY_PROPERTY2, eMY_PROPERTY3, eMY_PROPERTY4, eMY_PROPERTY5, eMY_PROPERTY6, eMY_PROPERTY7, eMY_PROPERTY8, eMY_PROPERTY9, eMY_PROPERTY10, eMY_PROPERTY11, eMY_PROPERTY_COUNT } ePROPERTY; //Important to implement const char* GetTypeName() const; KFbxProperty GetProperty(int pId); protected: //This constructor is mandatory, it must be put in the protected section //because all objects MUST be created via the Sdk Manager MyKFbxMesh(KFbxSdkManager& pManager, char const* pName); virtual void Destruct(bool pRecursive, bool pDependents); virtual bool ConstructProperties(bool pForceSet); private: int mExtraOption; }; class MyFbxObject : public KFbxObject { KFBXOBJECT_DECLARE(MyFbxObject, KFbxObject); public: virtual const char* GetTypeName() const; protected: //This constructor is mandatory, it must be put in the protected section //because all objects MUST be created via the Sdk Manager MyFbxObject(KFbxSdkManager& pManager, char const* pName); virtual void Destruct(bool pRecursive, bool pDependents); virtual bool ConstructProperties(bool pForceSet); }; #include <fbxfilesdk/fbxfilesdk_nsend.h> #endif