|
CFx SDK Documentation 2026 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 | setBrightness (double brightness) |
| void | setInverted (bool bInvert) |
| void | setInvertedBrightness (bool bInvert) |
| void | setTexture (OdGiMaterialTexturePtr pTexture) |
| OdGiMapper & | mapper () |
| Source | source () const |
| OdString | sourceFileName () const |
| double | blendFactor () const |
| double | brightness () const |
| bool | isInverted () const |
| bool | isInvertedBrightness () 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 2005 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 2012 of file GiMaterial.h.
|
inline |
Default constructor for the OdGiMaterialMap class. Sets the material map source to kFile, all flags as disabled, blend factor and brightness to 1.0.
Definition at line 2360 of file GiMaterial.h.
|
inline |
Retrieves the blend factor for this MaterialMap object.
Definition at line 2405 of file GiMaterial.h.
|
inline |
Retrieves the brightness of this MaterialMap object.
Definition at line 2411 of file GiMaterial.h.
|
inline |
Retrieves the source invertion of this MaterialMap object.
Definition at line 2417 of file GiMaterial.h.
|
inline |
Retrieves the order exchanging of invertion and brightness operations for this MaterialMap object.
Definition at line 2423 of file GiMaterial.h.
|
inline |
Retrieves a mapper for this material map.
Definition at line 2393 of file GiMaterial.h.
|
inline |
Retrieves a mapper for this material map.
Definition at line 2429 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 brightness are equal material map flags are equal mapper objects are equal.
| other | [in] Material mapper to be compared. |
Definition at line 2237 of file GiMaterial.h.
|
inline |
Assignment operator for the OdGiMaterialMap class. Assigns map source, file name, blend factor, brightness, flags, mapper and texture to this material map.
| texture | [in] Texture to be assigned. |
Definition at line 2251 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 brightness are equal material map flags are equal mapper objects are equal.
| other | [in] Material mapper to be compared. |
Definition at line 2206 of file GiMaterial.h.
|
inline |
Sets the blend factor for this MaterialMap object.
| blendFactor | [in] Blend factor. |
Definition at line 2369 of file GiMaterial.h.
|
inline |
Sets the brightness for this MaterialMap object.
| brightness | [in] Texture brightness. |
Definition at line 2375 of file GiMaterial.h.
|
inline |
Sets the source invertion for this MaterialMap object.
| bInvert | [in] Invert texture image. |
Definition at line 2381 of file GiMaterial.h.
|
inline |
Exchange order of invertion and brightness operations for this MaterialMap object.
| bInvert | [in] Exchange order of invertion and brightness operations. |
Definition at line 2387 of file GiMaterial.h.
|
inline |
Sets the OdGiMapper for this MaterialMap object.
| mapper | [in] OdGiMapper reference. |
Definition at line 2435 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 2399 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 2441 of file GiMaterial.h.
|
static |
A null material mapper (map source is kFile, flags disabled, blend factor and brightness is 1.0).
Definition at line 2023 of file GiMaterial.h.