javax.media.j3d
Class StructureUpdateThread

java.lang.Object
  extended by java.lang.Thread
      extended by javax.media.j3d.J3dThread
          extended by javax.media.j3d.StructureUpdateThread
All Implemented Interfaces:
java.lang.Runnable

 class StructureUpdateThread
extends J3dThread

The StructureUpdateThread is thread that passes messages to its structure


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  int[] instanceNum
           
private static int[] numInstances
          Some variables used to name threads correctly
(package private)  J3dStructure structure
          The structure that this thread works for
 
Fields inherited from class javax.media.j3d.J3dThread
active, args, BEHAVIOR_SCHEDULER, classification, INPUT_DEVICE_SCHEDULER, lastWaitTimestamp, NOTIFY, NOTIFY_AND_WAIT, referenceTime, RENDER_THREAD, RUN, SOUND_SCHEDULER, STOP, type, UPDATE_BEHAVIOR, UPDATE_GEOMETRY, UPDATE_RENDER, UPDATE_RENDERING_ATTRIBUTES, UPDATE_RENDERING_ENVIRONMENT, UPDATE_SOUND, UPDATE_THREAD, UPDATE_TRANSFORM, userStop, WAIT, WORK_THREAD
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StructureUpdateThread(java.lang.ThreadGroup t, J3dStructure s, int threadType)
          Just saves the structure
 
Method Summary
(package private)  void doWork(long referenceTime)
          This method is defined by all slave threads to implement one iteration of work.
(package private)  int getInstanceNum(int idx)
           
private  int newInstanceNum(int idx)
           
 
Methods inherited from class javax.media.j3d.J3dThread
cleanup, cleanupView, finish, getInstanceNum, getThreadData, initialize, run, runMonitor, shutdown
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

structure

J3dStructure structure
The structure that this thread works for


numInstances

private static int[] numInstances
Some variables used to name threads correctly


instanceNum

private int[] instanceNum
Constructor Detail

StructureUpdateThread

StructureUpdateThread(java.lang.ThreadGroup t,
                      J3dStructure s,
                      int threadType)
Just saves the structure

Method Detail

newInstanceNum

private int newInstanceNum(int idx)

getInstanceNum

int getInstanceNum(int idx)

doWork

void doWork(long referenceTime)
Description copied from class: J3dThread
This method is defined by all slave threads to implement one iteration of work.

Specified by:
doWork in class J3dThread


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.