CFx SDK Documentation 2024 SP0
|
#include <GiLightTraitsData.h>
Public Member Functions | |
OdGiDistantLightTraitsData () | |
OdGeVector3d | direction () const |
void | setDirection (const OdGeVector3d &dir) |
bool | isSunlight () const |
void | setSunlight (bool val) |
double | physicalIntensity () const |
void | setPhysicalIntensity (double intensity) |
OdGiColorRGB | lampColor () const |
void | setLampColor (const OdGiColorRGB &color) |
void | skyParameters (OdGiSkyParameters &) const |
void | setSkyParameters (const OdGiSkyParameters &) |
void | save (OdGsFiler *pFiler) const |
void | load (OdGsFiler *pFiler) |
Public Member Functions inherited from OdGiLightTraitsData | |
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) |
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 576 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 590 of file GiLightTraitsData.h.
|
inline |
Retrieves direction of the distant light.
Definition at line 606 of file GiLightTraitsData.h.
|
inline |
Checks whether this light is rendered as sunlight.
Definition at line 623 of file GiLightTraitsData.h.
|
inline |
Retrieves color of the light lamp.
Definition at line 657 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
pFiler | [in] Pointer to a filer. |
Definition at line 700 of file GiLightTraitsData.h.
|
inline |
Retrieves physical intensity for this light source in candela.
Definition at line 640 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
pFiler | [in] Pointer to a filer. |
Definition at line 685 of file GiLightTraitsData.h.
|
inline |
Specifies direction of the distant light.
dir | [in] Light direction. |
Definition at line 613 of file GiLightTraitsData.h.
|
inline |
Specifies color for the light lamp.
color | [in] RGB color value. |
Definition at line 664 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 647 of file GiLightTraitsData.h.
|
inline |
Specifies sky parameters for this light. Currently not implemented.
Definition at line 676 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 630 of file GiLightTraitsData.h.
|
inline |
Retrieves sky parameters of this light. Currently not implemented.
Definition at line 671 of file GiLightTraitsData.h.