This class contains functions for accessing global light settings.
Definition at line 60 of file kfbxgloballightsettings.h.
#include <kfbxgloballightsettings.h>
Classes |
|
struct | KFbxShadowPlane |
Struct used to define the shadow plane.
More... |
|
Public Member Functions |
|
void | RestoreDefaultSettings () |
Restores default settings. |
|
const KFbxGlobalLightSettings & | operator= (const KFbxGlobalLightSettings &pGlobalLightSettings) |
Assignment operator. |
|
Friends |
|
class | KFbxScene |
Ambient Color |
|
void | SetAmbientColor (KFbxColor pAmbientColor) |
Sets the ambient color. |
|
KFbxColor | GetAmbientColor () const |
Returns the ambient color. |
|
Fog Option |
|
enum | EFogMode { eLINEAR, eEXPONENTIAL, eSQUAREROOT_EXPONENTIAL } |
Fog types. More... |
|
void | SetFogEnable (bool pEnable) |
Activates or disables the fog. |
|
bool | GetFogEnable () const |
Returns the fog option's current state.
|
|
void | SetFogColor (KFbxColor pColor) |
Sets the fog color. |
|
KFbxColor | 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.
|
|
KFbxShadowPlane * | GetShadowPlane (int pIndex) |
Returns a shadow plane at the specified
index. |
|
void | AddShadowPlane (KFbxShadowPlane pShadowPlane) |
Adds a shadow plane. |
|
void | RemoveAllShadowPlanes () |
Removes all shadow planes. |
|
Error Management |
|
enum | EError { eINDEX_OUT_OF_RANGE, eERROR_COUNT } |
Error identification. More... |
|
KError & | GetError () |
Retrieves the error object. |
|
EError | GetLastErrorID () const |
Returns the last error code. |
|
const char * | GetLastErrorString () const |
Returns the last error string. |
enum EFogMode |
Fog types.
Definition at line 115 of file kfbxgloballightsettings.h.
enum EError |
Error identification.
Definition at line 253 of file kfbxgloballightsettings.h.
void SetAmbientColor | ( | KFbxColor | pAmbientColor | ) |
Sets the ambient color.
pAmbientColor | The ambient color to set. |
KFbxColor 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 | ( | KFbxColor | pColor | ) |
Sets the fog color.
pColor | The fog color to be set. |
KFbxColor 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 |
KFbxShadowPlane* GetShadowPlane | ( | int | pIndex | ) |
Returns a shadow plane at the specified index.
pIndex | Shadow plane index. |
NULL
if the index is
out of range.void AddShadowPlane | ( | KFbxShadowPlane | pShadowPlane | ) |
Adds a shadow plane.
pShadowPlane | The shadow plane to be added. |
void RemoveAllShadowPlanes | ( | ) |
Removes all shadow planes.
KError& GetError | ( | ) |
EError GetLastErrorID | ( | ) | const |
const char* GetLastErrorString | ( | ) | const |
Returns the last error string.
void RestoreDefaultSettings | ( | ) |
Restores default settings.
const KFbxGlobalLightSettings& operator= | ( | const KFbxGlobalLightSettings & | pGlobalLightSettings | ) |
Assignment operator.
pGlobalLightSettings | KFbxGlobalLightSettings object assigned to this one. |
friend class KFbxScene [friend] |
Definition at line 298 of file kfbxgloballightsettings.h.