jwo.landserf.process
Class DemToTinThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.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:
2.1, 3rd September, 2004.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DemToTinThread(GISFrame gisFrame, 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 jwo.landserf.process.LSThread
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

DemToTinThread

public DemToTinThread(GISFrame gisFrame,
                      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:
gisFrame - containing DEM and TIN.
numVertices - Maximum number of vertices.
tolRMSE - Maximum Root Mean Squared Error tolerated.
tolError - Maximum error tolerated.
createErrorSurf - Generates an error surface if true.
Method Detail

doProcessing

public void doProcessing()
Convert the DEM into TIN representation.

Specified by:
doProcessing in class LSThread


Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004