AreaLight Class Reference

Defines a light that spawns a given area. More...

#include <eclight.h>

Inheritance diagram for AreaLight:

Light EclipseObject

List of all members.

Public Member Functions

 AreaLight (const char *a_sID, const YRColorRGB &a_color, const YRPoint3D &a_corner, const YRPoint3D &a_point1, const YRPoint3D &a_point2, float a_fPower, int a_nSamples)
 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

Defines a light that spawns a given area.

Author:
Dan Torres 1/2/2009 Base area light. Irradiates over the designated quad, as specified by the base and two reference points

Definition at line 184 of file eclight.h.


Constructor & Destructor Documentation

AreaLight::AreaLight ( const char *  a_sID,
const YRColorRGB a_color,
const YRPoint3D a_corner,
const YRPoint3D a_point1,
const YRPoint3D a_point2,
float  a_fPower,
int  a_nSamples 
)

Complete constructor.

Parameters:
a_sID Unique light ID
a_color Color emitted by the light
a_corner One corner of the rectangular light shape
a_point1 One edge
a_point2 The other edge
a_fPower Light intensity
a_nSamples Number of samples to be taken for lighting


Member Function Documentation

virtual void AreaLight::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:57:54 2009 for EclipseRay by  doxygen 1.5.7.1