|
CFx SDK Documentation 2026 SP0
|
#include <GiLightTraitsData.h>
Protected Types | |
| enum | LightFlags { kFlagIsSunlight = (OdGiLightTraitsData::kLastFlag << 1) , kLastFlag = kFlagIsSunlight } |
Protected Types inherited from OdGiLightTraitsData | |
| enum | LightFlags { kFlagIsOn = (1 << 0) , kFlagIsTransformed = (1 << 1) , kLastFlag = kFlagIsTransformed } |
Additional Inherited Members | |
Public Types inherited from OdGiLightTraitsData | |
| enum | LightType { kInvalidLight = -1 , kPointLight = OdGiDrawable::kPointLight , kSpotLight = OdGiDrawable::kSpotLight , kDistantLight = OdGiDrawable::kDistantLight , kWebLight = OdGiDrawable::kWebLight } |
Static Public Member Functions inherited from OdGiLightTraitsData | |
| static LightType | drawableLightType (const OdGiDrawable *pDrawable) |
| static void | deleteLightTraitsData (OdGiLightTraitsData *pLightTraits) |
Protected Member Functions inherited from OdGiLightTraitsData | |
| OdGiLightTraitsData () | |
Protected Attributes inherited from OdGiLightTraitsData | |
| OdUInt32 | m_uFlags |
| LightType | m_type |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 615 of file GiLightTraitsData.h.
|
protected |
| Enumerator | |
|---|---|
| kFlagIsSunlight | |
| kLastFlag | |
Definition at line 624 of file GiLightTraitsData.h.
|
inline |
Default constructor for the OdGiDistantLightTraitsData class. Creates an object with physical intensity 1500, white lamp color, and flag that specifies whether this light is rendered as a sunlight. Also sets type of the light to kDistantLight.
Definition at line 635 of file GiLightTraitsData.h.
|
inline |
Retrieves direction of the distant light.
Definition at line 648 of file GiLightTraitsData.h.
|
inline |
Checks whether this light is rendered as sunlight.
Definition at line 663 of file GiLightTraitsData.h.
|
inline |
Retrieves color of the light lamp.
Definition at line 693 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 732 of file GiLightTraitsData.h.
|
inline |
Retrieves physical intensity for this light source in candela.
Definition at line 678 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 717 of file GiLightTraitsData.h.
|
inline |
Specifies direction of the distant light.
| dir | [in] Light direction. |
Definition at line 655 of file GiLightTraitsData.h.
|
inline |
Specifies color for the light lamp.
| color | [in] RGB color value. |
Definition at line 700 of file GiLightTraitsData.h.
|
inline |
Specifies physical intensity for this light source in candela.
| fIntensity | [in] Physical intensity of the light in candela. |
Definition at line 685 of file GiLightTraitsData.h.
|
inline |
Specifies sky parameters for this light. Currently not implemented.
Definition at line 710 of file GiLightTraitsData.h.
|
inline |
Specifies whether this light is rendered as sunlight.
| isSunlight | [in] Flag that specifies whether to render this light as sunlight. |
Definition at line 670 of file GiLightTraitsData.h.
|
inline |
Retrieves sky parameters of this light. Currently not implemented.
Definition at line 705 of file GiLightTraitsData.h.