CSLDirectionalLight Class Reference

Describes a point light. More...

#include <DirectionalLight.h>

Inheritance diagram for CSLDirectionalLight:

CSLLight CSLPrimitive CSLConstrainableType CSLTemplate CSIBCNode List of all members.

Public Member Functions

  CSLDirectionalLight (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate)
virtual  ~CSLDirectionalLight ()
CSIBCVector3D  GetDirection ()
SI_Void  SetDirection (CSIBCVector3D &in_rValue)
virtual SI_Error  Synchronize ()
virtual ETemplateType  Type ()
virtual CSLAnimatableType ParameterFromName (SI_Char *in_szName)
virtual CSLAnimatableType ParameterFromType (EFCurveType in_Type, SI_Char *in_szParameterName)

Detailed Description

Describes a point light.


Constructor & Destructor Documentation

CSLDirectionalLight ( CSLScene in_pScene,
CSLModel in_pModel,
CdotXSITemplate in_pTemplate  
)

Constructor

Parameters:
[in]  in_pScene  scene to add this point light to
[in]  in_pModel  model to add this light to
[in]  in_pTemplate  IO layer template to connect to
Returns:
an instance of CSLPointLight

virtual ~CSLDirectionalLight (  )  [virtual]

Destructor


Member Function Documentation

CSIBCVector3D GetDirection (  ) 

Return the direction of the light.

Returns:
Light direction.

SI_Void SetDirection ( CSIBCVector3D in_rValue  ) 

Changes the direction of the light.

Parameters:
[in]  in_rValue  New light direction.

virtual SI_Error Synchronize (  )  [virtual]

Synchronizes this directional light instance with its IO layer representation

Return values:
SI_Error::SI_SUCCESS 

Reimplemented from CSLLight.

virtual ETemplateType Type (  )  [virtual]

Returns the template type of the directional light

Returns:
CSLTemplate::SI_DIRECTIONAL_LIGHT the template type

Implements CSLTemplate.

virtual CSLAnimatableType* ParameterFromName ( SI_Char *  in_szName  )  [virtual]

Returns a handle on one of this light's parameters by using its name

Parameters:
[in]  in_szName  the name of the parameter to get the handle from
Returns:
the handle to the parameter

Reimplemented from CSLLight.

virtual CSLAnimatableType* ParameterFromType ( EFCurveType  in_Type,
SI_Char *  in_szParameterName  
) [virtual]

Returns a handle on one of this light's parameters by using its name and type

Parameters:
[in]  in_Type  the type of the parameter to get the handle from
[in]  in_szParameterName  the name of the parameter to get the handle from
Returns:
the handle to the parameter

Reimplemented from CSLLight.


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