Class TraceThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--TraceThread
All Implemented Interfaces:
java.lang.Runnable

public class TraceThread
extends java.lang.Thread


Field Summary
 com.sun.j3d.utils.picking.PickCanvas pickCanvas
           
 RayTracer rayTracer
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TraceThread(SZU szu, PreviewCanvas pc, ResultCanvas rc, javax.media.j3d.Locale locale, boolean verb)
          Creates new TraceThread
 
Method Summary
 void closeTXT(java.io.BufferedReader br)
          Closes the input TXT file
 java.awt.Color HLS2RGB(float h, float l, float s)
           
 java.io.BufferedReader openTXT()
          Opens the input TXT file
 int readTXT(java.io.BufferedReader f)
          Reads the input TXT file and returns the number of positons of light
 void run()
           
 void setInputFile(java.net.URL cb, java.lang.String file)
           
 void setLight(javax.media.j3d.DirectionalLight l)
           
 void stepTXT(java.io.BufferedReader f, RayTracer rayTracer)
          Performs one computational step from the input TXT file
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pickCanvas

public com.sun.j3d.utils.picking.PickCanvas pickCanvas

rayTracer

public RayTracer rayTracer
Constructor Detail

TraceThread

public TraceThread(SZU szu,
                   PreviewCanvas pc,
                   ResultCanvas rc,
                   javax.media.j3d.Locale locale,
                   boolean verb)
Creates new TraceThread
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

openTXT

public java.io.BufferedReader openTXT()
Opens the input TXT file

readTXT

public int readTXT(java.io.BufferedReader f)
Reads the input TXT file and returns the number of positons of light

stepTXT

public void stepTXT(java.io.BufferedReader f,
                    RayTracer rayTracer)
Performs one computational step from the input TXT file

closeTXT

public void closeTXT(java.io.BufferedReader br)
Closes the input TXT file

setInputFile

public void setInputFile(java.net.URL cb,
                         java.lang.String file)

setLight

public void setLight(javax.media.j3d.DirectionalLight l)

HLS2RGB

public java.awt.Color HLS2RGB(float h,
                              float l,
                              float s)