FBX C++ API Reference
fbxfiletexture.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_SCENE_SHADING_TEXTURE_FILE_H_
14 #define _FBXSDK_SCENE_SHADING_TEXTURE_FILE_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
35 {
37 
38 public:
47 
52 
56  void Reset();
57 
63  bool SetFileName(const char* pName);
64 
70  bool SetRelativeFileName(const char* pName);
71 
76  const char* GetFileName () const;
77 
82  const char* GetRelativeFileName() const;
83 
87  {
89  eDefaultMaterial
90  };
91 
95  void SetMaterialUse(EMaterialUse pMaterialUse);
96 
100  EMaterialUse GetMaterialUse() const;
101 
102 
104 
105 
106 /*****************************************************************************************************************************
107 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
108 *****************************************************************************************************************************/
109 #ifndef DOXYGEN_SHOULD_SKIP_THIS
110  virtual FbxObject& Copy(const FbxObject& pObject);
111 
112  bool operator==(FbxFileTexture const& pTexture) const;
113 
114  FbxString& GetMediaName();
115  void SetMediaName(const char* pMediaName);
116 
117 protected:
118  virtual void Construct(const FbxObject* pFrom);
119  virtual void ConstructProperties(bool pForceSet);
120 
121  void Init();
122  void SyncVideoFileName(const char* pFileName);
123  void SyncVideoRelativeFileName(const char* pFileName);
124 
125  FbxString mFileName;
126  FbxString mRelativeFileName;
127  FbxString mMediaName; // not a prop
128 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
129 };
130 
131 #include <fbxsdk/fbxsdk_nsend.h>
132 
133 #endif /* _FBXSDK_SCENE_SHADING_TEXTURE_FILE_H_ */
#define FBXSDK_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new class derived from FbxObject.
Definition: fbxobject.h:61
This class describes image mapping on top of geometry.
FBX SDK environment definition.
virtual FbxObject & Copy(const FbxObject &pObject)
Copy an object content into this object.
Utility class to manipulate strings.
Definition: fbxstring.h:66
EMaterialUse
Specify if texture uses model material.
FbxPropertyT< FbxBool > UseMaterial
This property handles the material use.
This class is the base class for textures, ie classes FbxFileTexture, FbxLayeredTexture and FbxProced...
Definition: fbxtexture.h:26
The base class of most FBX objects.
Definition: fbxobject.h:157
FbxPropertyT< FbxBool > UseMipMap
This property handles the Mipmap use.
virtual void Construct(const FbxObject *pFrom)
Optional constructor override, automatically called by default constructor.
virtual void Reset()
Resets the default texture values.
#define FBXSDK_DLL
Definition: fbxarch.h:173
virtual void ConstructProperties(bool pForceSet)
Optional property constructor override, automatically called by default constructor.