|
CFx SDK Documentation 2026 SP0
|
#include <GiLightTraitsData.h>
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 Types inherited from OdGiLightTraitsData | |
| enum | LightFlags { kFlagIsOn = (1 << 0) , kFlagIsTransformed = (1 << 1) , kLastFlag = kFlagIsTransformed } |
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 435 of file GiLightTraitsData.h.
|
inline |
Default constructor for the OdGiSpotLightTraitsData class. Creates an object with physical intensity 1500, white lamp color, hotspot and falloff cone angles set to 0. Also sets type of the light to kSpotLight.
Definition at line 449 of file GiLightTraitsData.h.
|
inline |
Retrieves light attenuation parameters for this light source.
Definition at line 494 of file GiLightTraitsData.h.
|
inline |
Retrieves the cone angle that produces the light falloff.
Definition at line 525 of file GiLightTraitsData.h.
|
inline |
Retrieves the cone angle that produces the brightest part of the beam (hotspot) of this light.
Definition at line 517 of file GiLightTraitsData.h.
|
inline |
Retrieves color of the light lamp.
Definition at line 548 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 580 of file GiLightTraitsData.h.
|
inline |
Retrieves physical intensity for this light source in candela.
Definition at line 533 of file GiLightTraitsData.h.
|
inline |
Retrieves position of the spot light source.
Definition at line 464 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 562 of file GiLightTraitsData.h.
|
inline |
Specifies attenuation light parameters for the point light source.
| atten | [in] Point light source position. |
Definition at line 501 of file GiLightTraitsData.h.
|
inline |
Specifies target location of the light.
| hotspot | [in] Hotspot cone angle, in radians. Defines the brightest part of the spot light beam. |
| falloff | [in] Falloff angle, in radians. Defines the full cone of light. |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 598 of file GiLightTraitsData.h.
|
inline |
Specifies color for the light lamp.
| color | [in] RGB color value. |
Definition at line 555 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 540 of file GiLightTraitsData.h.
|
inline |
Specifies position of the spot light source.
| pos | [in] Spot light source position. |
Definition at line 471 of file GiLightTraitsData.h.
|
inline |
Specifies target location of the light.
| loc | [in] Location of the target. Must differ from the spot light position. |
Definition at line 486 of file GiLightTraitsData.h.
|
inline |
Retrieves target location of the light.
Definition at line 479 of file GiLightTraitsData.h.