SpotLight Class Reference

A light that irradiates in a cone-shape way. More...

#include <eclight.h>

Inheritance diagram for SpotLight:

Light EclipseObject

List of all members.

Public Member Functions

 SpotLight (const char *a_sID, YRColorRGB a_color, float a_fConeAngle, YRPoint3D a_from, YRPoint3D a_to, float a_fPower, float a_fFalloff)
 Complete constructor.

Protected Member Functions

virtual PYOBJECT GetPyStringRep ()
 Provide a string representation of this child.
virtual void DeleteObject ()
 Child message hook for reference-count based destruction.


Detailed Description

A light that irradiates in a cone-shape way.

Author:
Dan Torres 1/20/2009

Definition at line 268 of file eclight.h.


Constructor & Destructor Documentation

SpotLight::SpotLight ( const char *  a_sID,
YRColorRGB  a_color,
float  a_fConeAngle,
YRPoint3D  a_from,
YRPoint3D  a_to,
float  a_fPower,
float  a_fFalloff 
)

Complete constructor.

Parameters:
a_sID Unique ID
a_color Color for this light
a_fConeAngle Cone angle in degrees, from 0 to 180
a_from Position for this light
a_to Target point (NOT a directional vector) for this light
a_fPower Intensity multiplier
a_fFalloff width of falloff effect, from 0 to 1


Member Function Documentation

virtual void SpotLight::DeleteObject (  )  [protected, virtual]

Child message hook for reference-count based destruction.

The child class is responsible for deleting any instance to which this this function is called.

Reimplemented from EclipseObject.


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

Generated on Tue Jan 20 17:58:01 2009 for EclipseRay by  doxygen 1.5.7.1