|
CFx SDK Documentation 2024 SP0
|
#include <TrVisLightDef.h>
Public Types | |
| enum | LightDefFlags { kLightEnabled = (1 << 0) , kLightUseLims = (1 << 1) , kLightShadows = (1 << 2) } |
| enum | Overrider { kOverrideVisibility = (1 << 0) , kOverrideOrientation = (1 << 1) , kOverrideColor = (1 << 2) , kOverrideAttenuation = (1 << 3) , kOverrideAngles = (1 << 4) , kOverrideSpecualFactor = (1 << 5) , kOverrideShadow = (1 << 6) , kLastOverride = kOverrideShadow } |
| enum | LightType { kDistant = 0 , kPoint , kSpot } |
Public Member Functions | |
| void | setLightOn (bool bSet) |
| bool | isLightOn () const |
| void | enableAttenuationLimits (bool bSet) |
| bool | attenuationLimitsEnabled () const |
| void | enableShadows (bool bSet) |
| bool | shadowsEnabled () const |
| void | setDefault () |
| OdTrVisLightDef & | apply (OdUInt32 nMod, const OdTrVisLightDef &l) |
| OdUInt32 | diff (const OdTrVisLightDef &dl2, bool bFinFirstDiff=false) const |
| bool | operator== (const OdTrVisLightDef &dl2) const |
| bool | operator!= (const OdTrVisLightDef &dl2) const |
| void | save (OdGsFiler *pFiler) const |
| void | load (OdGsFiler *pFiler) |
Public Attributes | |
| enum OdTrVisLightDef::LightType | m_type |
| OdGePoint3d | m_position |
| OdGeVector3d | m_direction |
| OdTrVisMaterialColor | m_color |
| float | m_constantAttenuation |
| float | m_linearAttenuation |
| float | m_quadraticAttenuation |
| float | m_startAttenuationLimit |
| float | m_endAttenuationLimit |
| float | m_spotCutoff |
| float | m_spotExponent |
| float | m_specularFactor |
| OdUInt16 | m_shadowMapSize |
| OdUInt16 | m_shadowSoftness |
| OdUInt16 | m_shadowSamples |
| OdUInt16 | m_lightFlags |
<group ExRender_Windows_Classes>
Definition at line 38 of file TrVisLightDef.h.
| Enumerator | |
|---|---|
| kLightEnabled | |
| kLightUseLims | |
| kLightShadows | |
Definition at line 41 of file TrVisLightDef.h.
| Enumerator | |
|---|---|
| kDistant | |
| kPoint | |
| kSpot | |
Definition at line 61 of file TrVisLightDef.h.
| Enumerator | |
|---|---|
| kOverrideVisibility | |
| kOverrideOrientation | |
| kOverrideColor | |
| kOverrideAttenuation | |
| kOverrideAngles | |
| kOverrideSpecualFactor | |
| kOverrideShadow | |
| kLastOverride | |
Definition at line 48 of file TrVisLightDef.h.
|
inline |
Definition at line 122 of file TrVisLightDef.h.
|
inline |
Definition at line 96 of file TrVisLightDef.h.
|
inline |
Definition at line 156 of file TrVisLightDef.h.
|
inline |
Definition at line 95 of file TrVisLightDef.h.
|
inline |
Definition at line 98 of file TrVisLightDef.h.
|
inline |
Definition at line 93 of file TrVisLightDef.h.
Definition at line 234 of file TrVisLightDef.h.
|
inline |
Definition at line 207 of file TrVisLightDef.h.
|
inline |
Definition at line 205 of file TrVisLightDef.h.
Definition at line 214 of file TrVisLightDef.h.
|
inline |
Definition at line 102 of file TrVisLightDef.h.
|
inline |
Definition at line 92 of file TrVisLightDef.h.
|
inline |
Definition at line 99 of file TrVisLightDef.h.
| OdTrVisMaterialColor OdTrVisLightDef::m_color |
Definition at line 72 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_constantAttenuation |
Definition at line 74 of file TrVisLightDef.h.
| OdGeVector3d OdTrVisLightDef::m_direction |
Definition at line 70 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_endAttenuationLimit |
Definition at line 79 of file TrVisLightDef.h.
| OdUInt16 OdTrVisLightDef::m_lightFlags |
Definition at line 90 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_linearAttenuation |
Definition at line 75 of file TrVisLightDef.h.
| OdGePoint3d OdTrVisLightDef::m_position |
Definition at line 68 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_quadraticAttenuation |
Definition at line 76 of file TrVisLightDef.h.
| OdUInt16 OdTrVisLightDef::m_shadowMapSize |
Definition at line 86 of file TrVisLightDef.h.
| OdUInt16 OdTrVisLightDef::m_shadowSamples |
Definition at line 88 of file TrVisLightDef.h.
| OdUInt16 OdTrVisLightDef::m_shadowSoftness |
Definition at line 87 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_specularFactor |
Definition at line 84 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_spotCutoff |
Definition at line 81 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_spotExponent |
Definition at line 82 of file TrVisLightDef.h.
| float OdTrVisLightDef::m_startAttenuationLimit |
Definition at line 78 of file TrVisLightDef.h.
| enum OdTrVisLightDef::LightType OdTrVisLightDef::m_type |