apps.lightrays.raytracer.scene
Class Lighting

java.lang.Object
  extended by apps.lightrays.raytracer.scene.Lighting

public class Lighting
extends java.lang.Object

The Class Lighting.


Constructor Summary
Lighting()
          Instantiates a new lighting.
 
Method Summary
 void addLight(Light light)
          Adds the light.
 void addLightsToScene(Scene s)
          Adds the lights to scene.
static Light getDefaultLight(Point lightpoint)
          Gets the default light.
 Light getFirstLight()
          Gets the first light.
 java.util.Iterator<Light> getIterator()
          Gets the iterator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lighting

public Lighting()
Instantiates a new lighting.

Method Detail

getDefaultLight

public static Light getDefaultLight(Point lightpoint)
Gets the default light.

Parameters:
lightpoint - the lightpoint
Returns:
the default light

addLight

public void addLight(Light light)
Adds the light.

Parameters:
light - the light

addLightsToScene

public void addLightsToScene(Scene s)
Adds the lights to scene.

Parameters:
s - the s

getFirstLight

public Light getFirstLight()
Gets the first light.

Returns:
the first light

getIterator

public java.util.Iterator<Light> getIterator()
Gets the iterator.

Returns:
the iterator