#include <fbxgloballightsettings.h>
This class contains functions for accessing global light settings.
Definition at line 30 of file fbxgloballightsettings.h.
Classes |
|
| struct | ShadowPlane |
| Struct used to define the shadow plane.
More... |
|
Public Member Functions |
|
| FBXSDK_FRIEND_NEW () | |
| void | RestoreDefaultSettings () |
| Restores default settings. |
|
| const FbxGlobalLightSettings & | operator= (const FbxGlobalLightSettings &pGlobalLightSettings) |
| Assignment operator. |
|
Ambient Color |
|
| void | SetAmbientColor (FbxColor pAmbientColor) |
| Sets the ambient color. |
|
| FbxColor | GetAmbientColor () const |
| Returns the ambient color. |
|
Fog Option |
|
| enum | EFogMode { eLinear, eExponential, eExponentialSquareRoot } |
| Fog types.
More... |
|
| void | SetFogEnable (bool pEnable) |
| Activates or disables the fog. |
|
| bool | GetFogEnable () const |
| Returns the fog option's current state.
|
|
| void | SetFogColor (FbxColor pColor) |
| Sets the fog color. |
|
| FbxColor | GetFogColor () const |
| Returns the fog color. |
|
| void | SetFogMode (EFogMode pMode) |
| Sets the fog mode. |
|
| EFogMode | GetFogMode () const |
| Returns the fog mode. |
|
| void | SetFogDensity (double pDensity) |
| Sets the fog density. |
|
| double | GetFogDensity () const |
| Returns the fog density. |
|
| void | SetFogStart (double pStart) |
| Sets the distance from the view where the
fog begins. |
|
| double | GetFogStart () const |
| Returns the distance from the view where the
fog begins. |
|
| void | SetFogEnd (double pEnd) |
| Sets the distance from the view where the
fog ends. |
|
| double | GetFogEnd () const |
| Returns the distance from the view where the
fog ends. |
|
Shadow Planes |
|
|
The functions in this section are supported only by FiLMBOX version 2.7 and earlier. FiLMBOX 3.0 supports shadow planes within a specific shader, which is not supported by the FBX SDK. |
|
| void | SetShadowEnable (bool pShadowEnable) |
| Activates or disables the display of shadow
planes. |
|
| bool | GetShadowEnable () const |
| Returns the current state of the shadow
enable flag. |
|
| void | SetShadowIntensity (double pShadowIntensity) |
| Sets the shadow intensity that is applied to
all shadow planes. |
|
| double | GetShadowIntensity () const |
| Returns the shadow intensity applied to all
shadow planes. |
|
| int | GetShadowPlaneCount () const |
| Returns the number of shadow planes.
|
|
| ShadowPlane * | GetShadowPlane (int pIndex, FbxStatus *pStatus=NULL) |
| Returns a shadow plane at the specified
index. |
|
| void | AddShadowPlane (ShadowPlane pShadowPlane) |
| Adds a shadow plane. |
|
| void | RemoveAllShadowPlanes () |
| Removes all shadow planes. |
|
| enum EFogMode |
Fog types.
| eLinear | |
| eExponential |
Linear fog mode. |
| eExponentialSquareRoot |
Exponential fog mode. Exponential square root fog mode. |
Definition at line 82 of file fbxgloballightsettings.h.
| FBXSDK_FRIEND_NEW | ( | ) |
| void SetAmbientColor | ( | FbxColor | pAmbientColor | ) |
Sets the ambient color.
| pAmbientColor | The ambient color to set. |
| FbxColor GetAmbientColor | ( | ) | const |
| void SetFogEnable | ( | bool | pEnable | ) |
Activates or disables the fog.
| pEnable | Set to true to activate the fog option or set to
false to disable the fog option. |
| bool GetFogEnable | ( | ) | const |
Returns the fog option's current state.
True if fog is activated, returns
false if fog is disabled.| void SetFogColor | ( | FbxColor | pColor | ) |
Sets the fog color.
| pColor | The fog color to be set. |
| FbxColor GetFogColor | ( | ) | const |
Returns the fog color.
| void SetFogMode | ( | EFogMode | pMode | ) |
| EFogMode GetFogMode | ( | ) | const |
| void SetFogDensity | ( | double | pDensity | ) |
Sets the fog density.
| pDensity | The fog density to be set. It can be any double value, however it can happen that other sections of FBX SDK may clamp values to reasonable values. |
| double GetFogDensity | ( | ) | const |
Returns the fog density.
| void SetFogStart | ( | double | pStart | ) |
Sets the distance from the view where the fog begins.
| pStart | Distance where the fog begins. |
| double GetFogStart | ( | ) | const |
Returns the distance from the view where the fog begins.
| void SetFogEnd | ( | double | pEnd | ) |
Sets the distance from the view where the fog ends.
| pEnd | Distance where the fog ends. |
| double GetFogEnd | ( | ) | const |
Returns the distance from the view where the fog ends.
| void SetShadowEnable | ( | bool | pShadowEnable | ) |
Activates or disables the display of shadow planes.
| pShadowEnable | Set to true to display shadow planes in the
scene. |
| bool GetShadowEnable | ( | ) | const |
Returns the current state of the shadow enable flag.
True if shadow planes are set to be displayed in
the scene.| void SetShadowIntensity | ( | double | pShadowIntensity | ) |
Sets the shadow intensity that is applied to all shadow planes.
| pShadowIntensity | Intensity applied to all the shadow planes. |
| double GetShadowIntensity | ( | ) | const |
Returns the shadow intensity applied to all shadow planes.
| int GetShadowPlaneCount | ( | ) | const |
| ShadowPlane* GetShadowPlane | ( | int | pIndex, |
| FbxStatus * | pStatus =
NULL |
||
| ) |
Returns a shadow plane at the specified index.
| pIndex | Shadow plane index. |
| pStatus | The FbxStatus object to hold error codes. |
NULL if the index is
out of range.| void AddShadowPlane | ( | ShadowPlane | pShadowPlane | ) |
Adds a shadow plane.
| pShadowPlane | The shadow plane to be added. |
| void RemoveAllShadowPlanes | ( | ) |
Removes all shadow planes.
| void RestoreDefaultSettings | ( | ) |
Restores default settings.
| const FbxGlobalLightSettings& operator= | ( | const FbxGlobalLightSettings & | pGlobalLightSettings | ) |
Assignment operator.
| pGlobalLightSettings | FbxGlobalLightSettings object assigned to this one. |