jwo.landserf.process
Class DemToTinThread
java.lang.Object
|
+--java.lang.Thread
|
+--jwo.landserf.process.LSThread
|
+--jwo.landserf.process.DemToTinThread
- All Implemented Interfaces:
- Runnable
- public class DemToTinThread
- extends LSThread
Converts a DEM to TIN representation. Uses the 'greedy
insertion' algorithm described by Garland & Heckbert,
1995.
- Version:
- 1.8.0, 12th March, 2001.
- Author:
- Jo Wood
Constructor Summary |
DemToTinThread(GUIFrame gf,
int numVertices,
float tolRMSE,
float tolError,
boolean createErrorSurf)
Converts a DEM into TIN representation. |
Method Summary |
void |
doProcessing()
Convert the DEM into TIN 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 |
DemToTinThread
public DemToTinThread(GUIFrame gf,
int numVertices,
float tolRMSE,
float tolError,
boolean createErrorSurf)
- Converts a DEM into TIN representation. TIN detail can be
determined by any combination of numSamples, tolRMSE or
tolError, where error is difference between TIN and DEM
height at any point.
- Parameters:
gf
- GUI frame containing DEM (and TIN).numVertices
- Maximum number of vertices.tolRMSE
- Maximum Root Mean Squared Error tolerated.createErrorSurf
- Generates an error surface if true.
doProcessing
public void doProcessing()
- Convert the DEM into TIN representation.
- Specified by:
doProcessing
in class LSThread