jwo.landserf.process
Class TinToDemThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.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
Constructor Summary |
TinToDemThread(GISFrame gisFrame,
boolean doQuadratic)
Converts a TIN into DEM representation. |
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 |
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.
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