PointLight Class Reference

Basic omnidirectional light. More...

#include <eclight.h>

Inheritance diagram for PointLight:

Light EclipseObject

List of all members.

Public Member Functions

 PointLight (const char *a_sID, const YRPoint3D &a_position, const YRColorRGB &a_color, float a_fBrightness, const YRColorRGB &a_shadowColor, int a_nShadowSamples)
 Complete constructor.
 PointLight (const char *a_sID, const YRPoint3D &a_position, const YRColorRGB &a_color, float a_fBrightness)
 Simplified constructor.

Protected Member Functions

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


Detailed Description

Basic omnidirectional light.

Defines a basic omnidirectional light.

This class provides a wrapper around the actual light as defined by the raytracer, and implements the python object interface.

Author:
Dan Torres 2008/12/10

Definition at line 128 of file eclight.h.


Constructor & Destructor Documentation

PointLight::PointLight ( const char *  a_sID,
const YRPoint3D a_position,
const YRColorRGB a_color,
float  a_fBrightness,
const YRColorRGB a_shadowColor,
int  a_nShadowSamples 
)

Complete constructor.

Parameters:
a_sID Unique light ID
a_position Spatial localization of this light
a_color Color emitted by the light
a_fBrightness Base strength or intensity for this light
a_shadowColor Color of the shadow produced by this light
a_nShadowSamples Number of shadow samples caused by this light

PointLight::PointLight ( const char *  a_sID,
const YRPoint3D a_position,
const YRColorRGB a_color,
float  a_fBrightness 
)

Simplified constructor.

Parameters:
a_sID Unique light ID
a_position Spatial localization of this light
a_color Color emitted by the light
a_fBrightness Base strength or intensity for this light


Member Function Documentation

virtual void PointLight::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:59 2009 for EclipseRay by  doxygen 1.5.7.1