jwo.landserf.process
Class TinToDemThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.landserf.process.TinToDemThread
All Implemented Interfaces:
JWInterruptionListener, Runnable

public class TinToDemThread
extends LSThread

Converts a TIN to DEM representation. Can either use planar or quadratic interpolation.

Version:
2.2, 26th February, 2004.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TinToDemThread(GISFrame gisFrame, boolean doQuadratic)
          Converts a TIN into DEM representation.
 
Method Summary
 void doProcessing()
          Convert the TIN into DEM representation.
 RasterMap getDEM()
          Retrieves the newly created DEM.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Constructor Detail

TinToDemThread

public TinToDemThread(GISFrame gisFrame,
                      boolean doQuadratic)
Converts a TIN into DEM representation. Can either use simple planar interpolation (gives triangular facets), or a smoother quadratic interpolation (can give overshoots and undershoots).

Parameters:
gisFrame - GUI containing TIN and DEM.
doQuadratic - Uses quadratic interpolation if true, otherwise planar.
Method Detail

doProcessing

public void doProcessing()
Convert the TIN into DEM representation. The resulting DEM can be retrieved via getDEM() or by calling gisFrame.getRaster1().

Note that this method will be called automatically if this is run as a threaded process (e.g. myTinToDemThread.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

getDEM

public RasterMap getDEM()
Retrieves the newly created DEM.

Returns:
New DEM, or null if process yet to take place.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005