CFx SDK Documentation 2024 SP0
|
#include <GiMaterial.h>
Public Types | |
enum | Source { kScene = 0 , kFile = 1 , kProcedural = 2 } |
Public Member Functions | |
OdGiMaterialMap () | |
void | setSource (Source source) |
void | setSourceFileName (const OdString &filename) |
void | setBlendFactor (double blendFactor) |
void | setTexture (OdGiMaterialTexturePtr pTexture) |
OdGiMapper & | mapper () |
Source | source () const |
OdString | sourceFileName () const |
double | blendFactor () const |
const OdGiMapper & | mapper () const |
void | setMapper (const OdGiMapper &mapper) |
const OdGiMaterialTexturePtr | texture (void) const |
bool | operator== (const OdGiMaterialMap &other) const |
bool | operator!= (const OdGiMaterialMap &other) const |
OdGiMaterialMap & | operator= (const OdGiMaterialMap &mmap) |
Static Public Attributes | |
static ODGI_EXPORT_STATIC const OdGiMaterialMap | kNull |
This class implements material maps.
Definition at line 1822 of file GiMaterial.h.
Describes the image source of this MaterialMap object.
Enumerator | |
---|---|
kScene | Map is created from the current scene. |
kFile | Map is from a file. |
kProcedural | Map is procedural. |
Definition at line 1829 of file GiMaterial.h.
|
inline |
Default constructor for the OdGiMaterialMap class. Sets the material map source to kFile and blend factor to 1.0.
Definition at line 2087 of file GiMaterial.h.
|
inline |
Retrieves the blend factor for this MaterialMap object.
Definition at line 2112 of file GiMaterial.h.
|
inline |
Retrieves a mapper for this material map.
Definition at line 2100 of file GiMaterial.h.
|
inline |
Retrieves a mapper for this material map.
Definition at line 2118 of file GiMaterial.h.
|
inline |
Inequality operator for the OdGiMaterialMap class. Material maps are not equal if at least one of the following conditions fails: the texture source file values are equal (both can be NULL) source file names are equal blend factors are equal mapper objects are equal.
other | [in] Material mapper to be compared. |
Definition at line 1996 of file GiMaterial.h.
|
inline |
Assignment operator for the OdGiMaterialMap class. Assigns map source, file name, blend factor, mapper and texture to this material map.
texture | [in] Texture to be assigned. |
Definition at line 2010 of file GiMaterial.h.
|
inline |
Equality operator for the OdGiMaterialMap class. Material maps are equal if: the texture source file values are equal (both can be NULL) source file names are equal blend factors are equal mapper objects are equal.
other | [in] Material mapper to be compared. |
Definition at line 1969 of file GiMaterial.h.
|
inline |
Sets the blend factor for this MaterialMap object.
blendFactor | [in] Blend factor. |
Definition at line 2094 of file GiMaterial.h.
|
inline |
Sets the OdGiMapper for this MaterialMap object.
mapper | [in] OdGiMapper reference. |
Definition at line 2124 of file GiMaterial.h.
Sets the image source for this MaterialMap object.
source | [in] Image source. |
Value Description kScene 0 Image is created from the current scene. kFile 1 Image is from a file. kProcedural 2 Image is procedurally generated.
Sets the source filename for this MaterialMap object.
filename | [in] Source filename. |
void OdGiMaterialMap::setTexture | ( | OdGiMaterialTexturePtr | pTexture | ) |
Sets the material texture for this MaterialMap object.
pTexture | [in] Material texture. |
|
inline |
Retrieves the image source for this MaterialMap object.
Value Description kScene 0 Image is created from the current scene. kFile 1 Image is from a file. kProcedural 2 Image is procedurally generated.
Definition at line 2106 of file GiMaterial.h.
OdString OdGiMaterialMap::sourceFileName | ( | ) | const |
Retrieves the source filename for this MaterialMap object.
|
inline |
Retrieves the material texture for this MaterialMap object.
Definition at line 2130 of file GiMaterial.h.
|
static |
Definition at line 1839 of file GiMaterial.h.