Public Member Functions | Protected Member Functions

FbxLight Class Reference

This reference page is linked to from the following overview topics: FBX SDK 2013, Supported Scene Elements, Connections, Nodes and the Scene Graph, FBX Nodes, FBX Node Attributes, Lights, List of Python Fbx classes.


Search for all occurrences

Detailed Description

This node attribute contains methods for accessing the properties of a light.

Definition at line 27 of file fbxlight.h.

#include <fbxlight.h>

Inheritance diagram for FbxLight:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual FbxNodeAttribute::EType GetAttributeType () const
 Return the type of node attribute.

Protected Member Functions

virtual void ConstructProperties (bool pForceSet)
 Optional property constructor override, automatically called by default constructor.
virtual FbxStringList GetTypeFlags () const

Light Properties

enum  EType {
  ePoint, eDirectional, eSpot, eArea,
  eVolume
}
 

Light types.

More...
enum  EDecayType { eNone, eLinear, eQuadratic, eCubic }
 

Decay types.

More...
enum  EAreaLightShape { eRectangle, eSphere }
 

Supported area light types.

More...
void SetShadowTexture (FbxTexture *pTexture)
 Set the shadow texture for the light.
FbxTextureGetShadowTexture () const
 Get the light state.

Properties

FbxPropertyT< ETypeLightType
 This property handles the light type.
FbxPropertyT< FbxBoolCastLight
 This property handles the cast light on object flag.
FbxPropertyT< FbxBoolDrawVolumetricLight
 This property handles the draw volumetric light flag.
FbxPropertyT< FbxBoolDrawGroundProjection
 This property handles the draw ground projection flag.
FbxPropertyT< FbxBoolDrawFrontFacingVolumetricLight
 This property handles the draw facing volumetric projection flag.
FbxPropertyT< FbxDouble3Color
 This property handles the light color.
FbxPropertyT< FbxDoubleIntensity
 This property handles the light intensity.
FbxPropertyT< FbxDoubleInnerAngle
 This property handles the light inner cone angle (in degrees).
FbxPropertyT< FbxDoubleOuterAngle
 This property handles the light outer cone angle (in degrees).
FbxPropertyT< FbxDoubleFog
 This property handles the light fog intensity.
FbxPropertyT< EDecayTypeDecayType
 This property handles the decay type.
FbxPropertyT< FbxDoubleDecayStart
 This property handles the decay start distance.
FbxPropertyT< FbxStringFileName
 This property handles the gobo file name.
FbxPropertyT< FbxBoolEnableNearAttenuation
 This property handles the enable near attenuation flag.
FbxPropertyT< FbxDoubleNearAttenuationStart
 This property handles the near attenuation start distance.
FbxPropertyT< FbxDoubleNearAttenuationEnd
 This property handles the near end attenuation.
FbxPropertyT< FbxBoolEnableFarAttenuation
 This property handles the enable far attenuation flag.
FbxPropertyT< FbxDoubleFarAttenuationStart
 This property handles the far attenuation start distance.
FbxPropertyT< FbxDoubleFarAttenuationEnd
 This property handles the attenuation end distance.
FbxPropertyT< FbxBoolCastShadows
 This property handles the cast shadow flag.
FbxPropertyT< FbxDouble3ShadowColor
 This property handles the shadow color.
FbxPropertyT< EAreaLightShapeAreaLightShape
 This property handles type when LightType is eArea.
FbxPropertyT< FbxFloatLeftBarnDoor
 This property handles the left barn door angle.
FbxPropertyT< FbxFloatRightBarnDoor
 This property handles the right barn door angle.
FbxPropertyT< FbxFloatTopBarnDoor
 This property handles the top barn door angle.
FbxPropertyT< FbxFloatBottomBarnDoor
 This property handles the bottom barn door angle.
FbxPropertyT< FbxBoolEnableBarnDoor
 This property handles active status of barn doors.

Member Enumeration Documentation

enum EType

Light types.

  • ePoint
  • eDirectional
  • eSpot
  • eArea
  • eVolume
Enumerator:
ePoint 
eDirectional 
eSpot 
eArea 
eVolume 

Reimplemented from FbxNodeAttribute.

Definition at line 43 of file fbxlight.h.

enum EDecayType

Decay types.

Used for setting the attenuation of the light.

  • eNone No decay. The light's intensity will not diminish with distance.
  • eLinear Linear decay. The light's intensity will diminish linearly with the distance from the light.
  • eQuadratic Quadratic decay. The light's intensity will diminish with the squared distance from the light. This is the most physically accurate decay rate.
  • eCubic Cubic decay. The light's intensity will diminish with the cubed distance from the light.
Enumerator:
eNone 

No flags.

eLinear 
eQuadratic 
eCubic 

Definition at line 59 of file fbxlight.h.

Supported area light types.

  • eRectangle Rectangle (or often called a plane) area light type.
  • eSphere Area light that illuminate all directions.
Enumerator:
eRectangle 
eSphere 

Definition at line 71 of file fbxlight.h.


Member Function Documentation

void SetShadowTexture ( FbxTexture pTexture)

Set the shadow texture for the light.

Parameters:
pTextureThe texture cast by the light shadow.
FbxTexture* GetShadowTexture ( ) const

Get the light state.

Returns:
Pointer to the texture cast by the light shadow, or NULL if the shadow texture has not been set.
virtual FbxNodeAttribute::EType GetAttributeType ( ) const [virtual]

Return the type of node attribute.

This class is pure virtual.

Reimplemented from FbxNodeAttribute.

virtual void ConstructProperties ( bool  pForceSet) [protected, virtual]

Optional property constructor override, automatically called by default constructor.

Parameters:
pForceSetIf the property value must be set regardless of default value.
Remarks:
If your object have properties, they must be initialized in this function.

Reimplemented from FbxNodeAttribute.

virtual FbxStringList GetTypeFlags ( ) const [protected, virtual]

Member Data Documentation

This property handles the light type.

Default value is ePoint

Definition at line 96 of file fbxlight.h.

This property handles the cast light on object flag.

Default value is true

Definition at line 102 of file fbxlight.h.

This property handles the draw volumetric light flag.

Default value is true

Definition at line 108 of file fbxlight.h.

This property handles the draw ground projection flag.

Default value is true

Definition at line 114 of file fbxlight.h.

This property handles the draw facing volumetric projection flag.

Default value is false

Definition at line 120 of file fbxlight.h.

This property handles the light color.

Default value is (1.0, 1.0, 1.0)

Reimplemented from FbxNodeAttribute.

Definition at line 126 of file fbxlight.h.

This property handles the light intensity.

Default value is 100.0

Definition at line 132 of file fbxlight.h.

This property handles the light inner cone angle (in degrees).

Also know as the HotSpot

Default value is 45.0

Definition at line 138 of file fbxlight.h.

This property handles the light outer cone angle (in degrees).

Also known as the Falloff

Default value is 45.0

Definition at line 144 of file fbxlight.h.

This property handles the light fog intensity.

Default value is 50.0

Definition at line 150 of file fbxlight.h.

This property handles the decay type.

Default value is eNone

Definition at line 156 of file fbxlight.h.

This property handles the decay start distance.

Default value is 0.0

Definition at line 162 of file fbxlight.h.

This property handles the gobo file name.

Default value is ""

Definition at line 168 of file fbxlight.h.

This property handles the enable near attenuation flag.

Default value is false

Definition at line 174 of file fbxlight.h.

This property handles the near attenuation start distance.

Default value is 0.0

Definition at line 180 of file fbxlight.h.

This property handles the near end attenuation.

Default value is 0.0

Definition at line 186 of file fbxlight.h.

This property handles the enable far attenuation flag.

Default value is false

Definition at line 192 of file fbxlight.h.

This property handles the far attenuation start distance.

Default value is 0.0

Definition at line 198 of file fbxlight.h.

This property handles the attenuation end distance.

Default value is 0.0

Definition at line 204 of file fbxlight.h.

This property handles the cast shadow flag.

Default value is false

Definition at line 210 of file fbxlight.h.

This property handles the shadow color.

Default value is (0.0, 0.0, 0.0)

Definition at line 216 of file fbxlight.h.

This property handles type when LightType is eArea.

Default value is eRectangle

Definition at line 222 of file fbxlight.h.

This property handles the left barn door angle.

Default value is 20.0

Definition at line 228 of file fbxlight.h.

This property handles the right barn door angle.

Default value is 20.0

Definition at line 234 of file fbxlight.h.

This property handles the top barn door angle.

Default value is 20.0

Definition at line 240 of file fbxlight.h.

This property handles the bottom barn door angle.

Default value is 20.0

Definition at line 246 of file fbxlight.h.

This property handles active status of barn doors.

Default value is false

Definition at line 252 of file fbxlight.h.


The documentation for this class was generated from the following file:

FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight
FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight FbxLight