net.sf.j3d.threeD.run
Class RayTracer

java.lang.Object
  extended by net.sf.j3d.threeD.run.RayTracer
All Implemented Interfaces:
EventGenerator, EventListener

public class RayTracer
extends Object
implements EventListener, EventGenerator

The RayTracer class uses standard ui components from the threeD.ui package to provide a user interface for the ray tracing engine.

Author:
Mike Murray

Field Summary
static String help
           
 
Constructor Summary
RayTracer(Scene scene)
          Constructs a new RayTracer object using the specified Scene object.
 
Method Summary
 void eventFired(Event event)
          Method called when an event has been fired.
 EventHandler getEventHandler()
          Returns the EventHandler object used by the ray tracing interface.
static void main(String[] args)
          Starts the ray tracing interface.
 void setEventHandler(EventHandler handler)
          Sets the EventHandler object used by the ray tracing interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

help

public static final String help
See Also:
Constant Field Values
Constructor Detail

RayTracer

public RayTracer(Scene scene)
Constructs a new RayTracer object using the specified Scene object.

Method Detail

main

public static void main(String[] args)
Starts the ray tracing interface.


eventFired

public void eventFired(Event event)
Method called when an event has been fired.

Specified by:
eventFired in interface EventListener

setEventHandler

public void setEventHandler(EventHandler handler)
Sets the EventHandler object used by the ray tracing interface. Setting this to null will deactivate event reporting.

Specified by:
setEventHandler in interface EventGenerator

getEventHandler

public EventHandler getEventHandler()
Returns the EventHandler object used by the ray tracing interface.

Specified by:
getEventHandler in interface EventGenerator