CFx SDK Documentation 2024 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 Member Functions inherited from OdGiLightTraitsData | |
OdGiLightTraitsData () | |
Protected Attributes inherited from OdGiLightTraitsData | |
LightType | m_type |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 384 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 398 of file GiLightTraitsData.h.
|
inline |
Retrieves light attenuation parameters for this light source.
Definition at line 447 of file GiLightTraitsData.h.
|
inline |
Retrieves the cone angle that produces the light falloff.
Definition at line 480 of file GiLightTraitsData.h.
|
inline |
Retrieves the cone angle that produces the brightest part of the beam (hotspot) of this light.
Definition at line 472 of file GiLightTraitsData.h.
|
inline |
Retrieves color of the light lamp.
Definition at line 507 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
pFiler | [in] Pointer to a filer. |
Definition at line 541 of file GiLightTraitsData.h.
|
inline |
Retrieves physical intensity for this light source in candela.
Definition at line 490 of file GiLightTraitsData.h.
|
inline |
Retrieves position of the spot light source.
Definition at line 413 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
pFiler | [in] Pointer to a filer. |
Definition at line 523 of file GiLightTraitsData.h.
|
inline |
Specifies attenuation light parameters for the point light source.
atten | [in] Point light source position. |
Definition at line 454 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 559 of file GiLightTraitsData.h.
|
inline |
Specifies color for the light lamp.
color | [in] RGB color value. |
Definition at line 514 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 497 of file GiLightTraitsData.h.
|
inline |
Specifies position of the spot light source.
pos | [in] Spot light source position. |
Definition at line 420 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 437 of file GiLightTraitsData.h.
|
inline |
Retrieves target location of the light.
Definition at line 430 of file GiLightTraitsData.h.