jwo.landserf.process
Class TinPointsThread

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

public class TinPointsThread
extends LSThread

Converts between a point collection and TIN.

Version:
2.1, 3rd September, 2004.
Author:
Jo Wood

Field Summary
static int POINTS_TO_TIN
          Indicates a transformation from points to TIN.
static int TIN_TO_POINTS
          Indicates a transformation from TIN to points.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TinPointsThread(GISFrame gisFrame, int direction)
          Converts between TIN and point collection.
 
Method Summary
 void doProcessing()
          Convert the TIN into DEM 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
 

Field Detail

POINTS_TO_TIN

public static final int POINTS_TO_TIN
Indicates a transformation from points to TIN.

See Also:
Constant Field Values

TIN_TO_POINTS

public static final int TIN_TO_POINTS
Indicates a transformation from TIN to points.

See Also:
Constant Field Values
Constructor Detail

TinPointsThread

public TinPointsThread(GISFrame gisFrame,
                       int direction)
Converts between TIN and point collection. If direction is TIN_TO_POINTS, it will extract the vertices as a collection of points. Otherwise it will attempt to perform a Delaunay triangulation to create a TIN.

Parameters:
gisFrame - GUI containing TIN or points.
direction - Direction of transformation (either POINTS_TO_TIN or TIN_TO_POINTS).
Method Detail

doProcessing

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

Specified by:
doProcessing in class LSThread


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