#include <kfbxlight.h>
Inherits KFbxNodeAttribute.
Inheritance diagram for KFbxLight:
Definition at line 60 of file kfbxlight.h.
Light Properties | |
enum | ELightType |
Light types. More... | |
enum | EDecayType |
Decay types. More... | |
void | SetLightType (ELightType pLightType) |
Set the light type. | |
ELightType | GetLightType () const |
Get the light type. | |
void | SetCastLight (bool pCastLight) |
Activate or disable the light. | |
bool | GetCastLight () const |
Get the light state. | |
void | SetCastShadows (bool pCastShadows) |
Set the shadow state for the light. | |
bool | GetCastShadows () const |
Get the shadow state for the light. | |
void | SetShadowColor (KFbxColor &pColor) |
Set the shadow color for the light. | |
KFbxColor | GetShadowColor () const |
Get the shadow color for the light. | |
void | SetShadowTexture (KFbxTexture *pTexture) |
Set the shadow texture for the light. | |
KFbxTexture * | GetShadowTexture () const |
Get the light state. | |
Light Property Names | |
static const char * | sDecayType |
static const char * | sDecayStart |
static const char * | sEnableNearAttenuation |
static const char * | sNearAttenuationStart |
static const char * | sNearAttenuationEnd |
static const char * | sEnableFarAttenuation |
static const char * | sFarAttenuationStart |
static const char * | sFarAttenuationEnd |
static const char * | sCastShadows |
static const char * | sShadowColor |
Gobo properties | |
bool | SetFileName (char *pFileName) |
Set the associated gobo file. | |
char const * | GetFileName () const |
Get the associated gobo file path. | |
void | SetDecayType (EDecayType pDecayType) |
Sets the decay type. | |
EDecayType | GetDecayType () const |
Gets the decay type. | |
void | SetDecayStart (double pDist) |
Sets the distance at which the light's intensity will decay. | |
double | GetDecayStart () const |
Gets the distance at which the light instensity will decay. | |
void | SetGroundProjection (bool pEnable) |
Enable gobo ground projection. | |
bool | GetGroundProjection () const |
Get gobo ground projection flag. | |
void | SetVolumetricProjection (bool pEnable) |
Enable gobo volumetric light projection. | |
bool | GetVolumetricProjection () const |
Get gobo volumetric light projection flag. | |
void | SetFrontVolumetricProjection (bool pEnable) |
Enable gobo front volumetric projection. | |
bool | GetFrontVolumetricProjection () const |
Get gobo front volumetric light projection flag. | |
Default Animation Values | |
This set of functions provide direct access to default animation values specific to a light.
The default animation values are found in the default take node of the associated node. These functions only work if the light has been associated with a node. | |
void | SetDefaultColor (KFbxColor &pColor) |
Set default color. | |
KFbxColor & | GetDefaultColor (KFbxColor &pColor) const |
Get default color. | |
void | SetDefaultIntensity (double pIntensity) |
Set default intensity. | |
double | GetDefaultIntensity () const |
Get default intensity. | |
void | SetDefaultConeAngle (double pConeAngle) |
Set default cone angle in degrees. | |
double | GetDefaultConeAngle () const |
Get default cone angle in degrees. | |
void | SetDefaultFog (double pFog) |
Set default fog. | |
double | GetDefaultFog () const |
Get default fog. | |
Public Member Functions | |
virtual EAttributeType | GetAttributeType () const |
Return the type of node attribute which is EAttributeType::eLIGHT. |
enum ELightType |
enum EDecayType |
Decay types.
Used for setting the attenuation of the light.
Definition at line 110 of file kfbxlight.h.
virtual EAttributeType GetAttributeType | ( | ) | const [virtual] |
Return the type of node attribute which is EAttributeType::eLIGHT.
Reimplemented from KFbxNodeAttribute.
void SetLightType | ( | ELightType | pLightType | ) |
Set the light type.
pLightType | The light type. |
ELightType GetLightType | ( | ) | const |
Get the light type.
void SetCastLight | ( | bool | pCastLight | ) |
Activate or disable the light.
pCastLight | Set to true to enable the light. |
bool GetCastLight | ( | ) | const |
Get the light state.
true
if the light is currently active. void SetCastShadows | ( | bool | pCastShadows | ) |
Set the shadow state for the light.
pCastShadows | Set to true to have the light cast shadows. |
bool GetCastShadows | ( | ) | const |
Get the shadow state for the light.
true
if the light is currently casting shadows. void SetShadowColor | ( | KFbxColor & | pColor | ) |
Set the shadow color for the light.
pColor | The shadow color for the light expressed as kFbxColor. |
KFbxColor GetShadowColor | ( | ) | const |
Get the shadow color for the light.
void SetShadowTexture | ( | KFbxTexture * | pTexture | ) |
Set the shadow texture for the light.
pTexture | The texture cast by the light shadow. |
KFbxTexture* GetShadowTexture | ( | ) | const |
Get the light state.
NULL
if the shadow texture has not been set. bool SetFileName | ( | char * | pFileName | ) |
Set the associated gobo file.
pFileName | The path of the gobo file. |
false
if the pointer is null. char const* GetFileName | ( | ) | const |
Get the associated gobo file path.
void SetDecayType | ( | EDecayType | pDecayType | ) |
Sets the decay type.
pDecayType | The decay type |
EDecayType GetDecayType | ( | ) | const |
Gets the decay type.
void SetDecayStart | ( | double | pDist | ) |
Sets the distance at which the light's intensity will decay.
The | distance |
double GetDecayStart | ( | ) | const |
Gets the distance at which the light instensity will decay.
void SetGroundProjection | ( | bool | pEnable | ) |
Enable gobo ground projection.
pEnable | Set to true to have the gobo project on the ground/floor. |
bool GetGroundProjection | ( | ) | const |
Get gobo ground projection flag.
true
if gobo ground projection is enabled. void SetVolumetricProjection | ( | bool | pEnable | ) |
Enable gobo volumetric light projection.
pEnable | Set to true to enable volumetric lighting projection. |
bool GetVolumetricProjection | ( | ) | const |
Get gobo volumetric light projection flag.
true
if gobo volumetric light projection is enabled. void SetFrontVolumetricProjection | ( | bool | pEnable | ) |
Enable gobo front volumetric projection.
pEnable | Set to true to enable front volumetric lighting projection. |
bool GetFrontVolumetricProjection | ( | ) | const |
Get gobo front volumetric light projection flag.
true
if gobo front volumetric light projection is enabled. void SetDefaultColor | ( | KFbxColor & | pColor | ) |
Set default color.
pColor | The color of the light. |
Get default color.
pColor | The color of the light. |
void SetDefaultIntensity | ( | double | pIntensity | ) |
Set default intensity.
pIntensity | The intensity value of the light. |
double GetDefaultIntensity | ( | ) | const |
Get default intensity.
void SetDefaultConeAngle | ( | double | pConeAngle | ) |
Set default cone angle in degrees.
pConeAngle | The cone angle value of the light. |
double GetDefaultConeAngle | ( | ) | const |
Get default cone angle in degrees.
void SetDefaultFog | ( | double | pFog | ) |
Set default fog.
pFog | The fog value of the light. |
double GetDefaultFog | ( | ) | const |
Get default fog.