|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.lighting.AmbientLight
net.sf.j3d.threeD.raytracer.lighting.DirectionalAmbientLight
public class DirectionalAmbientLight
A DirectionAmbientLight object represents an ambient light source that always comes from a particular direction. The direction is a vector that represents the direction from which the light enters the scene. By default the light comes from the top, parallel to the yz plane.
| Field Summary |
|---|
| Fields inherited from interface net.sf.j3d.threeD.raytracer.lighting.Light |
|---|
castShadows |
| Constructor Summary | |
|---|---|
DirectionalAmbientLight()
Constructs a DirectionalAmbientLight object with the default direction, intensity, and color. |
|
DirectionalAmbientLight(double intensity,
RGB color,
Vector direction)
Constructs a DirectionalAmbientLight object with the direction, intensity, and color represented by the specified values. |
|
DirectionalAmbientLight(Vector direction)
Constructs a DirectionalAmbientLight object with default intensity and color and the direction represented by the specified Vector object. |
|
| Method Summary | |
|---|---|
Vector |
getDirection()
Returns the direction of this DirectionalAmbientLight object as a Vector object. |
void |
setDirection(Vector direction)
Sets the direction of this DirectionalAmbientLight object to the direction represented by the specified Vector object. |
String |
toString()
Returns "Directional Ambient Light". |
| Methods inherited from class net.sf.j3d.threeD.raytracer.lighting.AmbientLight |
|---|
getColor, getColorAt, getIntensity, setColor, setIntensity |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectionalAmbientLight()
public DirectionalAmbientLight(Vector direction)
public DirectionalAmbientLight(double intensity,
RGB color,
Vector direction)
| Method Detail |
|---|
public void setDirection(Vector direction)
public Vector getDirection()
public String toString()
toString in class AmbientLight
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||