Package gov.nasa.worldwindx.examples
Class ColladaViewer.WorkerThread
- java.lang.Object
-
- java.lang.Thread
-
- gov.nasa.worldwindx.examples.ColladaViewer.WorkerThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- ColladaViewer
public static class ColladaViewer.WorkerThread extends java.lang.Thread
-
-
Field Summary
Fields Modifier and Type Field Description protected ColladaViewer.AppFrameappFrameprotected java.lang.ObjectcolladaSourceprotected Positionposition
-
Constructor Summary
Constructors Constructor Description WorkerThread(java.lang.Object colladaSource, Position position, ColladaViewer.AppFrame appFrame)Creates a new worker thread from a specifiedcolladaSourceandappFrame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Loads this worker thread's COLLADA source into a new, then adds the newColladaRootColladaRootto this worker thread'sAppFrame.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, toString, yield
-
-
-
-
Field Detail
-
colladaSource
protected java.lang.Object colladaSource
-
position
protected Position position
-
appFrame
protected ColladaViewer.AppFrame appFrame
-
-
Constructor Detail
-
WorkerThread
public WorkerThread(java.lang.Object colladaSource, Position position, ColladaViewer.AppFrame appFrame)Creates a new worker thread from a specifiedcolladaSourceandappFrame.- Parameters:
colladaSource- the source of the COLLADA file to load. May be aFile, aURL, or anInputStream, or aStringidentifying a file path or URL.position- the geographic position of the COLLADA model.appFrame- theAppFramein which to display the COLLADA source.
-
-
Method Detail
-
run
public void run()
Loads this worker thread's COLLADA source into a new, then adds the newColladaRootColladaRootto this worker thread'sAppFrame.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-