raja.renderer
Class World

java.lang.Object
  |
  +--raja.renderer.World
All Implemented Interfaces:
Serializable, Writable

public class World
extends Object
implements Serializable, Writable

See Also:
Serialized Form

Constructor Summary
World(Solid solid)
           
World(Solid solid, List lights, RGB backgroundLight, RGB ambiantLight, Volume ambiantVolume)
           
 
Method Summary
 void addLightSource(LightSource light)
           
static Object build(ObjectReader reader)
           
 RGB getAmbiantLight()
           
 double getAmbiantRefractiveIndex(Point3D p)
           
 RGB getBackgroundLight()
           
 void setAmbiantLight(RGB light)
           
 void setAmbiantVolume(Volume v)
           
 void setBackgroundLight(RGB light)
           
 String toString()
           
 void write(ObjectWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

World

public World(Solid solid)

World

public World(Solid solid,
             List lights,
             RGB backgroundLight,
             RGB ambiantLight,
             Volume ambiantVolume)
Method Detail

build

public static Object build(ObjectReader reader)
                    throws IOException

addLightSource

public void addLightSource(LightSource light)

setBackgroundLight

public void setBackgroundLight(RGB light)

setAmbiantLight

public void setAmbiantLight(RGB light)

setAmbiantVolume

public void setAmbiantVolume(Volume v)

getBackgroundLight

public RGB getBackgroundLight()

getAmbiantLight

public RGB getAmbiantLight()

getAmbiantRefractiveIndex

public double getAmbiantRefractiveIndex(Point3D p)

toString

public String toString()
Overrides:
toString in class Object

write

public void write(ObjectWriter writer)
           throws IOException
Specified by:
write in interface Writable