#include <eclight.h>
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. |
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.
Definition at line 128 of file eclight.h.
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.
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.
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 |
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.