|
CFx SDK Documentation 2026 SP0
|
#include <GiLightTraitsData.h>
Protected Types | |
| enum | LightFlags { kFlagHasTarget = (OdGiLightTraitsData::kLastFlag << 1) , kFlagHemisphere = (OdGiLightTraitsData::kLastFlag << 2) , kLastFlag = kFlagHemisphere } |
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 260 of file GiLightTraitsData.h.
|
protected |
| Enumerator | |
|---|---|
| kFlagHasTarget | |
| kFlagHemisphere | |
| kLastFlag | |
Definition at line 270 of file GiLightTraitsData.h.
|
inline |
Default constructor for the OdGiPointLightTraitsData class. Creates an object with physical intensity 1500, white lamp color, without target and hemispherical distribution. Also sets type of the light to kPointLight.
Definition at line 282 of file GiLightTraitsData.h.
|
inline |
Retrieves light attenuation parameters for this light source.
Definition at line 310 of file GiLightTraitsData.h.
|
inline |
Checks whether this point has an associated target grip displayed.
Definition at line 355 of file GiLightTraitsData.h.
|
inline |
Retrieves hemispherical destribution state for this point light.
Definition at line 390 of file GiLightTraitsData.h.
|
inline |
Retrieves color of the light lamp.
Definition at line 340 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 415 of file GiLightTraitsData.h.
|
inline |
Retrieves physical intensity for this light source in candela.
Definition at line 325 of file GiLightTraitsData.h.
|
inline |
Retrieves position of the point light source.
Definition at line 295 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 397 of file GiLightTraitsData.h.
|
inline |
Specifies attenuation light parameters for the point light source.
| atten | [in] Point light source position. |
Definition at line 317 of file GiLightTraitsData.h.
|
inline |
Specifies whether this point should have an associated target grip displayed.
| bTarget | [in] Flag that specifies whether to display a target grip for orienting the light. |
Definition at line 362 of file GiLightTraitsData.h.
|
inline |
Enables hemispherical distribution of point light.
| bHemisphere | [in] Hemispherical destribution state. |
Definition at line 384 of file GiLightTraitsData.h.
|
inline |
Specifies color for the light lamp.
| color | [in] RGB color value. |
Definition at line 347 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 332 of file GiLightTraitsData.h.
|
inline |
Specifies position of the point light source.
| pos | [in] Point light source position. |
Definition at line 302 of file GiLightTraitsData.h.
|
inline |
Specifies target location of the light.
| loc | [in] Location of the target. Must differ from the point light position. |
Definition at line 377 of file GiLightTraitsData.h.
|
inline |
Retrieves target location of the light.
Definition at line 370 of file GiLightTraitsData.h.