CFx SDK Documentation 2024 SP0
|
#include <GiLightTraitsData.h>
Public Types | |
enum | LightType { kInvalidLight = -1 , kPointLight = OdGiDrawable::kPointLight , kSpotLight = OdGiDrawable::kSpotLight , kDistantLight = OdGiDrawable::kDistantLight , kWebLight = OdGiDrawable::kWebLight } |
Public Member Functions | |
bool | isOn () const |
void | setOn (bool value) |
double | intensity () const |
void | setIntensity (double dIntensity) |
OdCmEntityColor | color () const |
void | setColor (const OdCmEntityColor &color) |
OdGiShadowParameters | shadowParameters () const |
void | setShadowParameters (const OdGiShadowParameters ¶ms) |
LightType | type () const |
void | save (OdGsFiler *pFiler) const |
void | load (OdGsFiler *pFiler) |
Static Public Member Functions | |
static LightType | drawableLightType (const OdGiDrawable *pDrawable) |
static void | deleteLightTraitsData (OdGiLightTraitsData *pLightTraits) |
Protected Member Functions | |
OdGiLightTraitsData () | |
Protected Attributes | |
LightType | m_type |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 37 of file GiLightTraitsData.h.
Represents light types.
Enumerator | |
---|---|
kInvalidLight | Invalid light. |
kPointLight | Point light. |
kSpotLight | Spot light. |
kDistantLight | Distant light. |
kWebLight | Web light. |
Definition at line 48 of file GiLightTraitsData.h.
|
inlineprotected |
Definition at line 73 of file GiLightTraitsData.h.
|
inline |
Retrieves the color of the emitted light.
Definition at line 117 of file GiLightTraitsData.h.
|
inlinestatic |
Deletes the specified light traits.
pLightTraits | [in] Pointer to light traits to delete. |
Definition at line 774 of file GiLightTraitsData.h.
|
inlinestatic |
Retrieves a light type.
Definition at line 175 of file GiLightTraitsData.h.
|
inline |
Retrieves intensity of a light source.
Definition at line 102 of file GiLightTraitsData.h.
|
inline |
Checks whether light is enabled.
Definition at line 87 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
pFiler | [in] Pointer to a filer. |
Definition at line 197 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
pFiler | [in] Pointer to a filer. |
Definition at line 190 of file GiLightTraitsData.h.
|
inline |
Specifies the color of the emitted light.
color | [in] Color of the emitted light. |
Definition at line 124 of file GiLightTraitsData.h.
|
inline |
Specifies intensity of a light source.
dIntensity | [in] Light source intensity. |
Definition at line 109 of file GiLightTraitsData.h.
|
inline |
Specifies whether light is enabled.
value | [in] Flag that specifies whether light is enabled. |
Definition at line 94 of file GiLightTraitsData.h.
|
inline |
Specifies shadow parameters for this light source.
params | [in] Shadow parameters. |
Definition at line 143 of file GiLightTraitsData.h.
|
inline |
Retrieves shadow parameters of this light source.
Definition at line 134 of file GiLightTraitsData.h.
|
inline |
Retrieves a light type.
Definition at line 151 of file GiLightTraitsData.h.
|
protected |
Definition at line 70 of file GiLightTraitsData.h.