#include<kfbxlight.h>
Definition at line55of filekfbxlight.h.
Light Properties | |
| enum | ELightType | 
| Light types.More... | |
| enum | EDecayType | 
| Decay types.More... | |
| K_DEPRECATED void | SetLightType(ELightTypepLightType) | 
| Set the light type. | |
| K_DEPRECATEDELightType | GetLightType() const | 
| Get the light type. | |
| K_DEPRECATED void | SetCastLight(bool pCastLight) | 
| Activate or disable the light. | |
| K_DEPRECATED bool | GetCastLight() const | 
| Get the light state. | |
| K_DEPRECATED void | SetCastShadows(bool pCastShadows) | 
| Set the shadow state for the light. | |
| K_DEPRECATED bool | GetCastShadows() const | 
| Get the shadow state for the light. | |
| K_DEPRECATED void | SetShadowColor(KFbxColor&pColor) | 
| Set the shadow color for the light. | |
| K_DEPRECATEDKFbxColor | 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 * | sLightType | 
| static const char * | sCastLight | 
| static const char * | sDrawVolumetricLight | 
| static const char * | sDrawGroundProjection | 
| static const char * | sDrawFrontFacingVolumetricLight | 
| static const char * | sColor | 
| Property Names. | |
| static const char * | sIntensity | 
| static const char * | sHotSpot | 
| static const char * | sConeAngle | 
| static const char * | sFog | 
| static const char * | sDecayType | 
| static const char * | sDecayStart | 
| static const char * | sFileName | 
| 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 | 
Light Property Default Values | |
| static constELightType | sDefaultLightType | 
| static const fbxBool1 | sDefaultCastLight | 
| static const fbxBool1 | sDefaultDrawVolumetricLight | 
| static const fbxBool1 | sDefaultDrawGroundProjection | 
| static const fbxBool1 | sDefaultDrawFrontFacingVolumetricLight | 
| static const fbxDouble3 | sDefaultColor | 
| Property Default Values. | |
| static const fbxDouble1 | sDefaultIntensity | 
| static const fbxDouble1 | sDefaultHotSpot | 
| static const fbxDouble1 | sDefaultConeAngle | 
| static const fbxDouble1 | sDefaultFog | 
| static constEDecayType | sDefaultDecayType | 
| static const fbxDouble1 | sDefaultDecayStart | 
| static constfbxString | sDefaultFileName | 
| static const fbxBool1 | sDefaultEnableNearAttenuation | 
| static const fbxDouble1 | sDefaultNearAttenuationStart | 
| static const fbxDouble1 | sDefaultNearAttenuationEnd | 
| static const fbxBool1 | sDefaultEnableFarAttenuation | 
| static const fbxDouble1 | sDefaultFarAttenuationStart | 
| static const fbxDouble1 | sDefaultFarAttenuationEnd | 
| static const fbxBool1 | sDefaultCastShadows | 
| static const fbxDouble3 | sDefaultShadowColor | 
Properties | |
| KFbxTypedProperty<ELightType> | LightType | 
| This property handles the light type. | |
| KFbxTypedProperty<fbxBool1> | CastLight | 
| This property handles the cast light on object flag. | |
| KFbxTypedProperty<fbxBool1> | DrawVolumetricLight | 
| This property handles the draw volumetric ligtht flag. | |
| KFbxTypedProperty<fbxBool1> | DrawGroundProjection | 
| This property handles the draw ground projection flag. | |
| KFbxTypedProperty<fbxBool1> | DrawFrontFacingVolumetricLight | 
| This property handles the draw facing volumetric projection flag. | |
| KFbxTypedProperty<fbxDouble3> | Color | 
| This property handles the light color. | |
| KFbxTypedProperty<fbxDouble1> | Intensity | 
| This property handles the light intensity. | |
| KFbxTypedProperty<fbxDouble1> | HotSpot | 
| This property handles the light inner cone angle (in degrees). | |
| KFbxTypedProperty<fbxDouble1> | ConeAngle | 
| This property handles the light outer cone angle (in degrees). | |
| KFbxTypedProperty<fbxDouble1> | Fog | 
| This property handles the light fog intensity. | |
| KFbxTypedProperty<EDecayType> | DecayType | 
| This property handles the decay type. | |
| KFbxTypedProperty<fbxDouble1> | DecayStart | 
| This property handles the decay start distance. | |
| KFbxTypedProperty<fbxString> | FileName | 
| This property handles the gobo file name. | |
| KFbxTypedProperty<fbxBool1> | EnableNearAttenuation | 
| This property handles the enable near attenuation flag. | |
| KFbxTypedProperty<fbxDouble1> | NearAttenuationStart | 
| This property handles the near attenuation start distance. | |
| KFbxTypedProperty<fbxDouble1> | NearAttenuationEnd | 
| This property handles the near end attenuation. | |
| KFbxTypedProperty<fbxBool1> | EnableFarAttenuation | 
| This property handles the enable far attenuation flag. | |
| KFbxTypedProperty<fbxDouble1> | FarAttenuationStart | 
| This property handles the far attenuation start distance. | |
| KFbxTypedProperty<fbxDouble1> | FarAttenuationEnd | 
| This property handles the attenuation end distance. | |
| KFbxTypedProperty<fbxBool1> | CastShadows | 
| This property handles the cast shadow flag. | |
| KFbxTypedProperty<fbxDouble3> | ShadowColor | 
| This property handles the shadow color. | |
Gobo properties | |
| K_DEPRECATED bool | SetFileName(char const *pFileName) | 
| Set the associated gobo file. | |
| K_DEPRECATED char const * | GetFileName() const | 
| Get the associated gobo file path. | |
| K_DEPRECATED void | SetDecayType(EDecayTypepDecayType) | 
| Sets the decay type. | |
| K_DEPRECATEDEDecayType | GetDecayType() const | 
| Gets the decay type. | |
| K_DEPRECATED void | SetDecayStart(double pDist) | 
| Sets the distance at which the light's intensity will decay. | |
| K_DEPRECATED double | GetDecayStart() const | 
| Gets the distance at which the light instensity will decay. | |
| K_DEPRECATED void | SetGroundProjection(bool pEnable) | 
| Enable gobo ground projection. | |
| K_DEPRECATED bool | GetGroundProjection() const | 
| Get gobo ground projection flag. | |
| K_DEPRECATED void | SetVolumetricProjection(bool pEnable) | 
| Enable gobo volumetric light projection. | |
| K_DEPRECATED bool | GetVolumetricProjection() const | 
| Get gobo volumetric light projection flag. | |
| K_DEPRECATED void | SetFrontVolumetricProjection(bool pEnable) | 
| Enable gobo front volumetric projection. | |
| K_DEPRECATED 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.  | |
| K_DEPRECATED void | SetDefaultColor(KFbxColor&pColor) | 
| Set default color. | |
| K_DEPRECATEDKFbxColor& | GetDefaultColor(KFbxColor&pColor) const | 
| Get default color. | |
| K_DEPRECATED void | SetDefaultIntensity(double pIntensity) | 
| Set default intensity. | |
| K_DEPRECATED double | GetDefaultIntensity() const | 
| Get default intensity. | |
| K_DEPRECATED void | SetDefaultConeAngle(double pConeAngle) | 
| Set default cone angle in degrees. | |
| K_DEPRECATED double | GetDefaultConeAngle() const | 
| Get default cone angle in degrees. | |
| K_DEPRECATED void | SetDefaultFog(double pFog) | 
| Set default fog. | |
| K_DEPRECATED double | GetDefaultFog() const | 
| Get default fog. | |
Public Member Functions | |
| virtualEAttributeType | GetAttributeType() const | 
| Return the type of node attribute which is EAttributeType::eLIGHT. | |
| enumELightType | 
| enumEDecayType | 
Decay types.
Used for setting the attenuation of the light.
Definition at line88of filekfbxlight.h.
| virtualEAttributeTypeGetAttributeType | ( | ) | const[virtual] | 
Return the type of node attribute which is EAttributeType::eLIGHT.
Reimplemented fromKFbxNodeAttribute.
| K_DEPRECATED void SetLightType | ( | ELightType | pLightType | ) | 
Set the light type.
| pLightType | The light type. | 
| K_DEPRECATEDELightTypeGetLightType | ( | ) | const | 
Get the light type.
| K_DEPRECATED void SetCastLight | ( | bool | pCastLight | ) | 
Activate or disable the light.
| pCastLight | Set totrueto enable the light. | 
| K_DEPRECATED bool GetCastLight | ( | ) | const | 
Get the light state.
trueif the light is currently active.| K_DEPRECATED void SetCastShadows | ( | bool | pCastShadows | ) | 
Set the shadow state for the light.
| pCastShadows | Set totrueto have the light cast shadows. Activate or de-activate the shadow casting. | |
| pCastShadows | Iftruethe casting is active. | 
| K_DEPRECATED bool GetCastShadows | ( | ) | const | 
Get the shadow state for the light.
trueif the light is currently casting shadows. Get shadow casting state.trueif shadow casting is active.
| K_DEPRECATED void SetShadowColor | ( | KFbxColor& | pColor | ) | 
Set the shadow color for the light.
| pColor | The shadow color for the light expressed as kFbxColor. Set Shadow Color. | |
| pColor | Shadow color. | 
| K_DEPRECATEDKFbxColorGetShadowColor | ( | ) | const | 
Get the shadow color for the light.
Shadow Color.
| 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.
NULLif the shadow texture has not been set.| K_DEPRECATED bool SetFileName | ( | char const * | pFileName | ) | 
Set the associated gobo file.
| pFileName | The path of the gobo file. | 
falseif the pointer is null.This function is deprecated. Use property FileName.Set() instead.
| K_DEPRECATED char const* GetFileName | ( | ) | const | 
Get the associated gobo file path.
| K_DEPRECATED void SetDecayType | ( | EDecayType | pDecayType | ) | 
Sets the decay type.
| pDecayType | The decay type | 
| K_DEPRECATEDEDecayTypeGetDecayType | ( | ) | const | 
Gets the decay type.
| K_DEPRECATED void SetDecayStart | ( | double | pDist | ) | 
Sets the distance at which the light's intensity will decay.
| pDist | The distance | 
| K_DEPRECATED double GetDecayStart | ( | ) | const | 
Gets the distance at which the light instensity will decay.
| K_DEPRECATED void SetGroundProjection | ( | bool | pEnable | ) | 
Enable gobo ground projection.
| pEnable | Set totrueto have the gobo project on the ground/floor. | 
| K_DEPRECATED bool GetGroundProjection | ( | ) | const | 
Get gobo ground projection flag.
trueif gobo ground projection is enabled.| K_DEPRECATED void SetVolumetricProjection | ( | bool | pEnable | ) | 
Enable gobo volumetric light projection.
| pEnable | Set totrueto enable volumetric lighting projection. | 
| K_DEPRECATED bool GetVolumetricProjection | ( | ) | const | 
Get gobo volumetric light projection flag.
trueif gobo volumetric light projection is enabled.| K_DEPRECATED void SetFrontVolumetricProjection | ( | bool | pEnable | ) | 
Enable gobo front volumetric projection.
| pEnable | Set totrueto enable front volumetric lighting projection. | 
This function is deprecated. Use property DrawFrontFacingVolumetricLight.Set(pEnable) instead.
| K_DEPRECATED bool GetFrontVolumetricProjection | ( | ) | const | 
Get gobo front volumetric light projection flag.
trueif gobo front volumetric light projection is enabled.This function is deprecated. Use property DrawFrontFacingVolumetricLight.Get() instead.
| K_DEPRECATED void SetDefaultColor | ( | KFbxColor& | pColor | ) | 
Set default color.
| pColor | The color of the light. | 
This function is deprecated. Use property Color.Set(pColor) instead.
Get default color.
| pColor | The color of the light. | 
This function is deprecated. Use property Color.Get() instead.
| K_DEPRECATED void SetDefaultIntensity | ( | double | pIntensity | ) | 
Set default intensity.
| pIntensity | The intensity value of the light. | 
This function is deprecated. Use property Intensity.Set(pIntensity) instead.
| K_DEPRECATED double GetDefaultIntensity | ( | ) | const | 
Get default intensity.
This function is deprecated. Use property Intensity.Get() instead.
| K_DEPRECATED void SetDefaultConeAngle | ( | double | pConeAngle | ) | 
Set default cone angle in degrees.
The cone angle is the outer cone. The inner cone is set using the HotSpot property.
| pConeAngle | The cone angle value of the light. | 
This function is deprecated. Use property ConeAngle.Set(pConeAngle) instead.
| K_DEPRECATED double GetDefaultConeAngle | ( | ) | const | 
Get default cone angle in degrees.
This function is deprecated. Use property ConeAngle.Get() instead.
| K_DEPRECATED void SetDefaultFog | ( | double | pFog | ) | 
Set default fog.
| pFog | The fog value of the light. | 
This function is deprecated. Use property Fog.Set(pFog) instead.
| K_DEPRECATED double GetDefaultFog | ( | ) | const | 
Get default fog.
This function is deprecated. Use property Fog.Get() instead.
const char*sColor[static] | 
const fbxDouble3sDefaultColor[static] | 
Property Default Values.
Reimplemented fromKFbxNodeAttribute.
Definition at line428of filekfbxlight.h.
| KFbxTypedProperty<ELightType>LightType | 
This property handles the light type.
To access this property do: LightType.Get(). To set this property do: LightType.Set(ELightType).
Default value is ePOINT
Definition at line464of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>CastLight | 
This property handles the cast light on object flag.
To access this property do: CastLight.Get(). To set this property do: CastLight.Set(fbxBool1).
Default value is true
Definition at line473of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>DrawVolumetricLight | 
This property handles the draw volumetric ligtht flag.
To access this property do: DrawVolumetricLight.Get(). To set this property do: DrawVolumetricLight.Set(fbxBool1).
Default value is true
Definition at line482of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>DrawGroundProjection | 
This property handles the draw ground projection flag.
To access this property do: DrawGroundProjection.Get(). To set this property do: DrawGroundProjection.Set(fbxBool1).
Default value is true
Definition at line491of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>DrawFrontFacingVolumetricLight | 
This property handles the draw facing volumetric projection flag.
To access this property do: DrawFrontFacingVolumetricLight.Get(). To set this property do: DrawFrontFacingVolumetricLight.Set(fbxBool1).
Default value is false
Definition at line500of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble3>Color | 
This property handles the light color.
To access this property do: Color.Get(). To set this property do: Color.Set(fbxDouble3).
Default value is (1.0, 1.0, 1.0)
Reimplemented fromKFbxNodeAttribute.
Definition at line509of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>Intensity | 
This property handles the light intensity.
To access this property do: Intensity.Get(). To set this property do: Intensity.Set(fbxDouble1).
Default value is 100.0
Definition at line518of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>HotSpot | 
This property handles the light inner cone angle (in degrees).
Also know as the HotSpot!
To access this property do: HotSpot.Get(). To set this property do: HotSpot.Set(fbxDouble1).
Default value is 45.0
Definition at line527of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>ConeAngle | 
This property handles the light outer cone angle (in degrees).
Also known as the Falloff
To access this property do: ConeAngle.Get(). To set this property do: ConeAngle.Set(fbxDouble1).
Default value is 45.0
Definition at line536of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>Fog | 
This property handles the light fog intensity.
To access this property do: Fog.Get(). To set this property do: Fog.Set(fbxDouble1).
Default value is 50.0
Definition at line545of filekfbxlight.h.
| KFbxTypedProperty<EDecayType>DecayType | 
This property handles the decay type.
To access this property do: DecayType.Get(). To set this property do: DecayType.Set(EDecayType).
Default value is eNONE
Definition at line554of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>DecayStart | 
This property handles the decay start distance.
To access this property do: DecayStart.Get(). To set this property do: DecayStart.Set(fbxDouble1).
Default value is 0.0
Definition at line563of filekfbxlight.h.
This property handles the gobo file name.
To access this property do: FileName.Get(). To set this property do: FileName.Set(fbxString).
Default value is ""
Definition at line572of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>EnableNearAttenuation | 
This property handles the enable near attenuation flag.
To access this property do: EnableNearAttenuation.Get(). To set this property do: EnableNearAttenuation.Set(fbxBool1).
Default value is false
Definition at line581of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>NearAttenuationStart | 
This property handles the near attenuation start distance.
To access this property do: NearAttenuationStart.Get(). To set this property do: NearAttenuationStart.Set(fbxDouble1).
Default value is 0.0
Definition at line590of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>NearAttenuationEnd | 
This property handles the near end attenuation.
To access this property do: NearAttenuationEnd.Get(). To set this property do: NearAttenuationEnd.Set(fbxDouble1).
Default value is 0.0
Definition at line599of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>EnableFarAttenuation | 
This property handles the enable far attenuation flag.
To access this property do: EnableFarAttenuation.Get(). To set this property do: EnableFarAttenuation.Set(fbxBool1).
Default value is false
Definition at line608of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>FarAttenuationStart | 
This property handles the far attenuation start distance.
To access this property do: FarAttenuationStart.Get(). To set this property do: FarAttenuationStart.Set(fbxDouble1).
Default value is 0.0
Definition at line617of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble1>FarAttenuationEnd | 
This property handles the attenuation end distance.
To access this property do: FarAttenuationEnd.Get(). To set this property do: FarAttenuationEnd.Set(fbxDouble1).
Default value is 0.0
Definition at line626of filekfbxlight.h.
| KFbxTypedProperty<fbxBool1>CastShadows | 
This property handles the cast shadow flag.
To access this property do: CastShadows.Get(). To set this property do: CastShadows.Set(fbxBool1).
Default value is false
Definition at line635of filekfbxlight.h.
| KFbxTypedProperty<fbxDouble3>ShadowColor | 
This property handles the shadow color.
To access this property do: ShadowColor.Get(). To set this property do: ShadowColor.Set(fbxDouble3).
Default value is (0.0, 0.0, 0.0)
Definition at line644of filekfbxlight.h.