|
CFx SDK Documentation 2026 SP0
|
#include <GiLightTraitsData.h>
Public Types | |
| enum | LightType { kInvalidLight = -1 , kPointLight = OdGiDrawable::kPointLight , kSpotLight = OdGiDrawable::kSpotLight , kDistantLight = OdGiDrawable::kDistantLight , kWebLight = OdGiDrawable::kWebLight } |
Public Member Functions | |
| 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) |
| void | setLightTransform (const OdGeMatrix3d &xForm) |
| void | addLightTransform (const OdGeMatrix3d &xForm) |
| void | resetLightTransform () |
| bool | isLightTransformed () const |
| const OdGeMatrix3d & | lightTransformationMatrix () const |
Static Public Member Functions | |
| static LightType | drawableLightType (const OdGiDrawable *pDrawable) |
| static void | deleteLightTraitsData (OdGiLightTraitsData *pLightTraits) |
Protected Types | |
| enum | LightFlags { kFlagIsOn = (1 << 0) , kFlagIsTransformed = (1 << 1) , kLastFlag = kFlagIsTransformed } |
Protected Member Functions | |
| OdGiLightTraitsData () | |
Protected Attributes | |
| OdUInt32 | m_uFlags |
| LightType | m_type |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 39 of file GiLightTraitsData.h.
|
protected |
| Enumerator | |
|---|---|
| kFlagIsOn | |
| kFlagIsTransformed | |
| kLastFlag | |
Definition at line 71 of file GiLightTraitsData.h.
Represents light types.
| Enumerator | |
|---|---|
| kInvalidLight | Invalid light. |
| kPointLight | Point light. |
| kSpotLight | Spot light. |
| kDistantLight | Distant light. |
| kWebLight | Web light. |
Definition at line 49 of file GiLightTraitsData.h.
|
inlineprotected |
Definition at line 81 of file GiLightTraitsData.h.
|
inline |
Multiplies transformation matrix with exist transformation matrix.
| xForm | [in] Transformation matrix. |
Definition at line 194 of file GiLightTraitsData.h.
|
inline |
Retrieves the color of the emitted light.
Definition at line 124 of file GiLightTraitsData.h.
|
inlinestatic |
Deletes the specified light traits.
| pLightTraits | [in] Pointer to light traits to delete. |
Definition at line 930 of file GiLightTraitsData.h.
|
inlinestatic |
Retrieves a light type.
Definition at line 217 of file GiLightTraitsData.h.
|
inline |
Retrieves intensity of a light source.
Definition at line 109 of file GiLightTraitsData.h.
|
inline |
Retrieves transformation matrix state.
Definition at line 207 of file GiLightTraitsData.h.
|
inline |
Checks whether light is enabled.
Definition at line 94 of file GiLightTraitsData.h.
|
inline |
Retrieves current transformation matrix.
Definition at line 214 of file GiLightTraitsData.h.
Loads the light traits from a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 242 of file GiLightTraitsData.h.
|
inline |
Resets exist transformation matrix.
Definition at line 200 of file GiLightTraitsData.h.
Saves the light traits to a specified filer.
| pFiler | [in] Pointer to a filer. |
Definition at line 232 of file GiLightTraitsData.h.
|
inline |
Specifies the color of the emitted light.
| color | [in] Color of the emitted light. |
Definition at line 131 of file GiLightTraitsData.h.
|
inline |
Specifies intensity of a light source.
| dIntensity | [in] Light source intensity. |
Definition at line 116 of file GiLightTraitsData.h.
|
inline |
Sets light transformation matrix.
| xForm | [in] Transformation matrix. |
Definition at line 186 of file GiLightTraitsData.h.
|
inline |
Specifies whether light is enabled.
| value | [in] Flag that specifies whether light is enabled. |
Definition at line 101 of file GiLightTraitsData.h.
|
inline |
Specifies shadow parameters for this light source.
| params | [in] Shadow parameters. |
Definition at line 150 of file GiLightTraitsData.h.
|
inline |
Retrieves shadow parameters of this light source.
Definition at line 141 of file GiLightTraitsData.h.
|
inline |
Retrieves a light type.
Definition at line 158 of file GiLightTraitsData.h.
|
protected |
Definition at line 78 of file GiLightTraitsData.h.
|
protected |
Definition at line 77 of file GiLightTraitsData.h.