#include <GiEnvironmentTraitsData.h>
Corresponding C++ library: Gi <group OdGi_Classes>
Definition at line 1036 of file GiEnvironmentTraitsData.h.
◆ OdGiRenderEnvironmentTraitsData()
OdGiRenderEnvironmentTraitsData::OdGiRenderEnvironmentTraitsData |
( |
| ) |
|
|
inline |
◆ enable()
bool OdGiRenderEnvironmentTraitsData::enable |
( |
| ) |
const |
|
inline |
Checks whether fog rendering is enabled.
- Returns
- true if fog rendering is enabled, false otherwise.
Definition at line 1076 of file GiEnvironmentTraitsData.h.
◆ environmentMap()
◆ farDistance()
double OdGiRenderEnvironmentTraitsData::farDistance |
( |
| ) |
const |
|
inline |
◆ farPercentage()
double OdGiRenderEnvironmentTraitsData::farPercentage |
( |
| ) |
const |
|
inline |
◆ fogColor()
const OdCmEntityColor & OdGiRenderEnvironmentTraitsData::fogColor |
( |
| ) |
const |
|
inline |
◆ isBackground()
bool OdGiRenderEnvironmentTraitsData::isBackground |
( |
| ) |
const |
|
inline |
Checks whether fog is treated background.
- Returns
- true if fog is treated as background, false otherwise.
Definition at line 1091 of file GiEnvironmentTraitsData.h.
◆ nearDistance()
double OdGiRenderEnvironmentTraitsData::nearDistance |
( |
| ) |
const |
|
inline |
◆ nearPercentage()
double OdGiRenderEnvironmentTraitsData::nearPercentage |
( |
| ) |
const |
|
inline |
◆ operator!=()
Checks whether the passed traits for render environment traits are not equal to these render traits. Traits are not equal if one of the following conditions fails: The enable flags are equal; The background flags are equal; Fog colors are equal; Near and far distances are equal; Near and far percentages are equal; Either both object have environment maps absent or have the same environment maps;
- Parameters
-
data2 | [in] Traits to compare. |
- Returns
- true if traits are not equal, false otherwise.
Definition at line 1233 of file GiEnvironmentTraitsData.h.
◆ operator==()
Checks whether the passed traits for render environment traits are equal to these render traits. Traits are considered equal if: The enable flags are equal; The background flags are equal; Fog colors are equal; Near and far distances are equal; Near and far percentages are equal; Either both object have environment maps absent or have the same environment maps;
- Parameters
-
data2 | [in] Traits to compare. |
- Returns
- true if traits are equal, false otherwise.
Definition at line 1205 of file GiEnvironmentTraitsData.h.
◆ setEnable()
void OdGiRenderEnvironmentTraitsData::setEnable |
( |
bool |
bEnable | ) |
|
|
inline |
Enables or disables the fog rendering.
- Parameters
-
bEnable | [in] Flag that specifies whether to enable fog rendering. |
Definition at line 1068 of file GiEnvironmentTraitsData.h.
◆ setEnvironmentMap()
◆ setFarDistance()
void OdGiRenderEnvironmentTraitsData::setFarDistance |
( |
double |
farDist | ) |
|
|
inline |
Specifies far distance for the fog rendering.
- Parameters
-
farDist | [in] Far distance of the fog. |
Definition at line 1128 of file GiEnvironmentTraitsData.h.
◆ setFarPercentage()
void OdGiRenderEnvironmentTraitsData::setFarPercentage |
( |
double |
farPct | ) |
|
|
inline |
◆ setFogColor()
◆ setIsBackground()
void OdGiRenderEnvironmentTraitsData::setIsBackground |
( |
bool |
bEnable | ) |
|
|
inline |
Specifies whether fog should be treated as a background.
- Parameters
-
bEnable | [in] Flag that specifies whether to treat fog as background. |
Definition at line 1083 of file GiEnvironmentTraitsData.h.
◆ setNearDistance()
void OdGiRenderEnvironmentTraitsData::setNearDistance |
( |
double |
nearDist | ) |
|
|
inline |
Specifies near distance for the fog rendering.
- Parameters
-
nearDist | [in] Near distance of the fog. |
Definition at line 1113 of file GiEnvironmentTraitsData.h.
◆ setNearPercentage()
void OdGiRenderEnvironmentTraitsData::setNearPercentage |
( |
double |
nearPct | ) |
|
|
inline |
Specifies near percentage of the fog.
- Parameters
-
nearPct | [in] Near percentage of the fog. |
Definition at line 1143 of file GiEnvironmentTraitsData.h.
The documentation for this class was generated from the following file: