fbxfiletexture.h

Go to the documentation of this file.
00001 /****************************************************************************************
00002  
00003    Copyright (C) 2012 Autodesk, Inc.
00004    All rights reserved.
00005  
00006    Use of this software is subject to the terms of the Autodesk license agreement
00007    provided at the time of installation or download, or which otherwise accompanies
00008    this software in either electronic or hard copy form.
00009  
00010 ****************************************************************************************/
00011 
00013 #ifndef _FBXSDK_SCENE_SHADING_TEXTURE_FILE_H_
00014 #define _FBXSDK_SCENE_SHADING_TEXTURE_FILE_H_
00015 
00016 #include <fbxsdk/fbxsdk_def.h>
00017 
00018 #include <fbxsdk/scene/shading/fbxtexture.h>
00019 
00020 #include <fbxsdk/fbxsdk_nsbegin.h>
00021 
00034 class FBXSDK_DLL FbxFileTexture : public FbxTexture
00035 {
00036     FBXSDK_OBJECT_DECLARE(FbxFileTexture,FbxTexture);
00037 
00038     public:
00043 
00044         // Material management
00045 
00049         FbxPropertyT<FbxBool>               UseMaterial;
00050 
00054         FbxPropertyT<FbxBool>               UseMipMap;
00055 
00059     void Reset();
00060 
00066     bool SetFileName(char const* pName);
00067 
00073     bool SetRelativeFileName(char const* pName);
00074 
00079     char const* GetFileName () const;
00080 
00085     char const* GetRelativeFileName() const;
00086 
00089     enum EMaterialUse
00090     {
00091         eModelMaterial,     
00092         eDefaultMaterial    
00093     };
00094 
00098     void SetMaterialUse(EMaterialUse pMaterialUse);
00099 
00103     EMaterialUse GetMaterialUse() const;
00104 
00105 
00107 
00108 
00110 //
00111 //  WARNING!
00112 //
00113 //  Anything beyond these lines may not be documented accurately and is 
00114 //  subject to change without notice.
00115 //
00117 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00118     virtual FbxObject& Copy(const FbxObject& pObject);
00119 
00120     bool operator==(FbxFileTexture const& pTexture) const;
00121 
00122     FbxString& GetMediaName();
00123     void SetMediaName(char const* pMediaName);
00124 
00125 protected:
00126     FbxFileTexture(FbxManager& pManager, char const* pName);  
00127 
00128     virtual void Construct(const FbxFileTexture* pFrom);
00129     virtual bool ConstructProperties(bool pForceSet);
00130 
00131     void Init();
00132     void SyncVideoFileName(char const* pFileName);
00133     void SyncVideoRelativeFileName(char const* pFileName);
00134 
00135     FbxString mFileName;
00136     FbxString mRelativeFileName;
00137     FbxString mMediaName; // not a prop
00138 
00139     friend class FbxLayerContainer;
00140 
00141 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00142 
00143 };
00144 
00145 #include <fbxsdk/fbxsdk_nsend.h>
00146 
00147 #endif /* _FBXSDK_SCENE_SHADING_TEXTURE_FILE_H_ */