jwo.landserf.process
Class SurfaceFeatureThread

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

public class SurfaceFeatureThread
extends LSThread
implements FootprintListener

Calculates surface features based on the relative drop method.

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

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SurfaceFeatureThread(GISFrame gisFrame, float minDrop)
          Classifies the DEM into surface features according to the given relative drop/climb.
 
Method Summary
 void doProcessing()
          Processes DEM and classifies surface features.
 void footprintReceived(Footprint fp)
          Responds to a mouse-selected location by calulating the local surface network from that position.
 RasterMap getSurfaceFetures()
          Retrieves the newly created raster map representing surface features.
 VectorMap getSurfaceNetwork()
          Retrieves a newly created surface feature network.
 
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

SurfaceFeatureThread

public SurfaceFeatureThread(GISFrame gisFrame,
                            float minDrop)
Classifies the DEM into surface features according to the given relative drop/climb.

Parameters:
gisFrame - GISFrame holding DEM to process.
minDrop - Minimum drop/climb surrounding feature.
Method Detail

doProcessing

public void doProcessing()
Processes DEM and classifies surface features. Generatea a raster and vector map of surface features (pits, peaks, passes, ridges and channels). The newly created raster and vector maps are added to the GISFrame provided to the constructor as a secondary raster and primary vector respectively. These can be retrieved directly via this class's method getSurfaceFeatures() and getFeatureNetwork() methods, or by calling gisFrame.getRaster2(); abd gisFrame.getVectorMap1().

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

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

footprintReceived

public void footprintReceived(Footprint fp)
Responds to a mouse-selected location by calulating the local surface network from that position.

Specified by:
footprintReceived in interface FootprintListener
Parameters:
fp - Footprint broadcast.

getSurfaceFetures

public RasterMap getSurfaceFetures()
Retrieves the newly created raster map representing surface features.

Returns:
Surface feature raster, or null if problem or process yet to take place.

getSurfaceNetwork

public VectorMap getSurfaceNetwork()
Retrieves a newly created surface feature network.

Returns:
Vector map containing surface feature network, or null if problem or process yet to take place.


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