org.metasyntactic.graphics.tracer
Class RayTracer

java.lang.Object
  |
  +--org.metasyntactic.graphics.tracer.RayTracer
Direct Known Subclasses:
AntiAliasingTracer

public class RayTracer
extends java.lang.Object


Constructor Summary
RayTracer(Scene scene)
          Creates a new instance of RayTracer
 
Method Summary
 int getMaxDepth()
          Getter for property maxDepth.
 Scene getScene()
          Getter for property scene.
 void setMaxDepth(int maxDepth)
          Setter for property maxDepth.
 java.util.List trace()
           
static Color traceRay(Ray ray, Scene scene, int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RayTracer

public RayTracer(Scene scene)
Creates a new instance of RayTracer

Method Detail

getMaxDepth

public int getMaxDepth()
Getter for property maxDepth.

Returns:
Value of property maxDepth.

setMaxDepth

public void setMaxDepth(int maxDepth)
Setter for property maxDepth.

Parameters:
maxDepth - New value of property maxDepth.

traceRay

public static Color traceRay(Ray ray,
                             Scene scene,
                             int depth)

trace

public java.util.List trace()

getScene

public Scene getScene()
Getter for property scene.

Returns:
Value of property scene.