|
CFx SDK Documentation 2024 SP0
|
#include <GiLightTraits.h>
Public Types | |
| enum | AttenuationType { kNone = 0 , kInverseLinear , kInverseSquare } |
Public Member Functions | |
| OdGiLightAttenuation () | |
| void | setAttenuationType (AttenuationType typ) |
| AttenuationType | attenuationType () const |
| void | setUseLimits (bool on) |
| bool | useLimits () const |
| void | setLimits (double startlim, double endlim) |
| double | startLimit () const |
| double | endLimit () const |
| void | save (OdGsFiler *pFiler) const |
| void | load (OdGsFiler *pFiler) |
| bool | operator== (const OdGiLightAttenuation &other) const |
| bool | operator!= (const OdGiLightAttenuation &other) const |
This class represents light attenuation parameters.
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 687 of file GiLightTraits.h.
Represents attenuation types for lights.
Definition at line 704 of file GiLightTraits.h.
|
inline |
Default constructor for the OdGiLightAttenuation class. Initializes the following data members:
Data member Value Description m_attenType OdGiLightAttenuation::kNone Attenuation type for the light. m_bUseAttenLimits false Flag which shows whether attenuation limits are used. m_dAttenStartLimit 1.0 Start attenuation limit. m_dAttenEndLimit 10.0 End attenuation limit.
Definition at line 819 of file GiLightTraits.h.
|
inline |
Retrieves a type of the light attenuation.
Definition at line 832 of file GiLightTraits.h.
|
inline |
Retrieves end attenuation limit.
Definition at line 858 of file GiLightTraits.h.
Loads the light attenuation parameters from the specified filer.
| pFiler | [in] Pointer to a filer to load parameters from. |
Definition at line 870 of file GiLightTraits.h.
|
inline |
Inequality operator for the OdGiLightAttenuation object. Returns true if members of this OdGiLightAttenuation object is not equal to the members other OdGiLightAttenuation object.
| scaleVec | [in] A scale vector to be compared with this scale vector. |
Definition at line 885 of file GiLightTraits.h.
|
inline |
Equality operator for the OdGiLightAttenuation object. Returns true if members of this OdGiLightAttenuation object is equal to the members other OdGiLightAttenuation object.
| other | [in] A OdGiLightAttenuation object to be compared with this OdGiLightAttenuation object. |
Definition at line 877 of file GiLightTraits.h.
Saves the light attenuation parameters to the specified filer.
| pFiler | [in] Pointer to a filer to save parameters to. |
Definition at line 863 of file GiLightTraits.h.
|
inline |
Specifies type of the light attenuation.
| typ | [in] Attenuation type. |
Definition at line 827 of file GiLightTraits.h.
|
inline |
Specifies values for both start and end attenuation limits.
| startlim | [in] Start limit that defines the distance from the light source where light begins to affect the scene. |
| endlim | [in] End limit that defines the distance beyond which objects are not affected by the light. |
Definition at line 847 of file GiLightTraits.h.
|
inline |
Specifies whether attenuation limits should be used.
| on | [in] Flag that specifies whether attenuation limits should be used. |
Definition at line 837 of file GiLightTraits.h.
|
inline |
Retrieves start attenuation limit.
Definition at line 853 of file GiLightTraits.h.
|
inline |
Checks whether attenuation limits are used.
Definition at line 842 of file GiLightTraits.h.