Class RayTracer
java.lang.Object
|
+--RayTracer
- public class RayTracer
- extends java.lang.Object
Constructor Summary |
RayTracer(com.sun.j3d.utils.picking.PickCanvas pc,
ResultCanvas c,
boolean verb)
Creates new RayTracer |
Method Summary |
void |
compute()
Computes the ray-tracing of the scene and outputs it to the canvas |
void |
finalize(double div)
|
javax.vecmath.Vector3d |
getLightDirection()
Get the direction of the actual light |
double |
getLightIntensity()
Get the intensity of the actual light |
int |
getMaxDepth()
Get the maximum depth of the recursion |
void |
setLightDirection(javax.vecmath.Vector3d dir)
Set the direction of the actual light |
void |
setLightIntensity(double in)
Set the intensity of the actual light |
void |
setMaxDepth(int depth)
Set the maximum depth of the recursion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verbose
public boolean verbose
resultIntensity
public double[][] resultIntensity
RayTracer
public RayTracer(com.sun.j3d.utils.picking.PickCanvas pc,
ResultCanvas c,
boolean verb)
- Creates new RayTracer
compute
public void compute()
- Computes the ray-tracing of the scene and outputs it to the canvas
finalize
public void finalize(double div)
setMaxDepth
public void setMaxDepth(int depth)
- Set the maximum depth of the recursion
getMaxDepth
public int getMaxDepth()
- Get the maximum depth of the recursion
setLightIntensity
public void setLightIntensity(double in)
- Set the intensity of the actual light
getLightIntensity
public double getLightIntensity()
- Get the intensity of the actual light
setLightDirection
public void setLightDirection(javax.vecmath.Vector3d dir)
- Set the direction of the actual light
getLightDirection
public javax.vecmath.Vector3d getLightDirection()
- Get the direction of the actual light