|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.lighting.AmbientLight
An AmbientLight object represents a light that is applied to all objects in the scene. The color and intensity of the light may by specified, but by default it is white light.
| Constructor Summary | |
AmbientLight()
Constructs an AmbientLight object with the default intensity and color. |
|
AmbientLight(double intensity)
Constructs an AmbientLight object with the specified intensity and default color. |
|
AmbientLight(double intensity,
RGB color)
Constructs an AmbientLight object with the specified intensity and color. |
|
| Method Summary | |
RGB |
getColor()
Returns the color of this AmbientLight object as an RGB object. |
RGB |
getColorAt(Vector point)
Returns the color of this AmbientLight object as an RGB object. |
double |
getIntensity()
Returns the intensity of this AmbientLight object as a double value. |
void |
setColor(RGB color)
Sets the color of this AmbientLight object to the color represented by the specified RGB object. |
void |
setIntensity(double intensity)
Sets the intensity of this AmbientLight object. |
java.lang.String |
toString()
Returns "Ambient Light". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AmbientLight()
public AmbientLight(double intensity)
public AmbientLight(double intensity,
RGB color)
| Method Detail |
public void setIntensity(double intensity)
setIntensity in interface Lightpublic void setColor(RGB color)
setColor in interface Lightpublic double getIntensity()
getIntensity in interface Lightpublic RGB getColor()
getColor in interface Lightpublic RGB getColorAt(Vector point)
getColorAt in interface Lightpublic java.lang.String toString()
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||