This reference page is linked to from the following overview topics: FBX SDK 2012, Referencing Media, Meshes, Materials and Textures, Textures.
This class describes image mapping on top of geometry.
ExportDocument/main.cxx, ExportScene02/main.cxx, ExportScene03/main.cxx, ImportScene/DisplayMaterial.cxx, ImportScene/DisplayTexture.cxx, Layers/main.cxx, UIExamples/CubeCreator/SDK_Utility.cxx, ViewScene/Texture.cxx, and ViewScene/Texture.h.
Definition at line 61 of file kfbxfiletexture.h.
#include <kfbxfiletexture.h>
Public Member Functions |
|
virtual KFbxObject & | Copy (const KFbxObject &pObject) |
Copy an object content into this object.
|
|
bool | operator== (KFbxFileTexture const &pTexture) const |
KString & | GetMediaName () |
void | SetMediaName (char const *pMediaName) |
Protected Member Functions |
|
KFbxFileTexture (KFbxSdkManager &pManager, char const *pName) | |
virtual void | Construct (const KFbxFileTexture *pFrom) |
virtual bool | ConstructProperties (bool pForceSet) |
void | Init () |
void | SyncVideoFileName (char const *pFileName) |
void | SyncVideoRelativeFileName (char const *pFileName) |
Protected Attributes |
|
KString | mFileName |
KString | mRelativeFileName |
KString | mMediaName |
Friends |
|
class | KFbxLayerContainer |
Texture Properties |
|
enum | EMaterialUse { eMODEL_MATERIAL, eDEFAULT_MATERIAL } |
Specify if texture uses model material. More... |
|
KFbxTypedProperty< fbxBool1 > | UseMaterial |
This property handles the material use.
|
|
KFbxTypedProperty< fbxBool1 > | UseMipMap |
This property handles the Mipmap use.
|
|
void | Reset () |
Resets the default texture values. |
|
bool | SetFileName (char const *pName) |
Sets the associated texture file. |
|
bool | SetRelativeFileName (char const *pName) |
Sets the associated texture file. |
|
char const * | GetFileName () const |
Returns the absolute texture file path.
|
|
char const * | GetRelativeFileName () const |
Returns the relative texture file path.
|
|
void | SetMaterialUse (EMaterialUse pMaterialUse) |
Sets the material use. |
|
EMaterialUse | GetMaterialUse () const |
Returns the material use. |
enum EMaterialUse |
Specify if texture uses model material.
eMODEL_MATERIAL |
Texture uses model material. |
eDEFAULT_MATERIAL |
Texture does not use model material. |
Definition at line 116 of file kfbxfiletexture.h.
KFbxFileTexture | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
void Reset | ( | ) | [virtual] |
Resets the default texture values.
Reimplemented from KFbxTexture.
bool SetFileName | ( | char const * | pName | ) |
Sets the associated texture file.
pName | The absolute path of the texture file. |
True
if successful, returns false
otherwise.bool SetRelativeFileName | ( | char const * | pName | ) |
Sets the associated texture file.
pName | The relative path of the texture file. |
True
if successful, returns false
otherwise.char const* GetFileName | ( | ) | const |
Returns the absolute texture file path.
char const* GetRelativeFileName | ( | ) | const |
Returns the relative texture file path.
void SetMaterialUse | ( | EMaterialUse | pMaterialUse | ) |
Sets the material use.
pMaterialUse | Specify how texture uses model material. |
EMaterialUse GetMaterialUse | ( | ) | const |
Returns the material use.
virtual KFbxObject& Copy | ( | const KFbxObject & | pObject | ) | [virtual] |
Copy an object content into this object.
pObject | The source object to copy data from. |
Reimplemented from KFbxTexture.
bool operator== | ( | KFbxFileTexture const & | pTexture | ) | const |
KString& GetMediaName | ( | ) |
void SetMediaName | ( | char const * | pMediaName | ) |
virtual void Construct | ( | const KFbxFileTexture * | pFrom | ) | [protected, virtual] |
virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from KFbxTexture.
void Init | ( | ) | [protected] |
Reimplemented from KFbxTexture.
void SyncVideoFileName | ( | char const * | pFileName | ) | [protected] |
void SyncVideoRelativeFileName | ( | char const * | pFileName | ) | [protected] |
friend class KFbxLayerContainer
[friend] |
Reimplemented from KFbxTexture.
Definition at line 168 of file kfbxfiletexture.h.
This property handles the material use.
Default value is false.
Definition at line 76 of file kfbxfiletexture.h.
This property handles the Mipmap use.
Default value is false.
Definition at line 81 of file kfbxfiletexture.h.
Definition at line 164 of file kfbxfiletexture.h.
KString mRelativeFileName
[protected] |
Definition at line 165 of file kfbxfiletexture.h.
KString mMediaName
[protected] |
Definition at line 166 of file kfbxfiletexture.h.