raytracer
Class Scene

java.lang.Object
  |
  +--raytracer.Scene

public class Scene
extends java.lang.Object

A scene contains the objects which should be considered by the renderer


Constructor Summary
Scene()
           
 
Method Summary
 void clearStore()
           
 java.lang.Object getObjectByName(java.lang.String name)
           
 boolean isObjectName(java.lang.String word)
           
 void prepare()
          Is called by the SceneReader after everything is read.
 void setAmbient(float r, float g, float b)
           
 void setBackground(float r, float g, float b)
           
 void setCamerapos(float x, float y, float z)
           
 void setLight(Light l)
           
 void setLookat(float x, float y, float z)
           
 void setLookup(float x, float y, float z)
           
 void setObject(Surface s)
           
 void setWindowsize(float x, float y)
           
 void store(java.lang.String name, NamedObject obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scene

public Scene()
Method Detail

prepare

public void prepare()
Is called by the SceneReader after everything is read. Can be used to prepare some calculations, create octrees...


setAmbient

public void setAmbient(float r,
                       float g,
                       float b)

setBackground

public void setBackground(float r,
                          float g,
                          float b)

setObject

public void setObject(Surface s)

setLight

public void setLight(Light l)

setCamerapos

public void setCamerapos(float x,
                         float y,
                         float z)

setLookat

public void setLookat(float x,
                      float y,
                      float z)

setLookup

public void setLookup(float x,
                      float y,
                      float z)

setWindowsize

public void setWindowsize(float x,
                          float y)

clearStore

public void clearStore()

store

public void store(java.lang.String name,
                  NamedObject obj)

isObjectName

public boolean isObjectName(java.lang.String word)

getObjectByName

public java.lang.Object getObjectByName(java.lang.String name)