jwo.landserf.process
Class TransRastThread

java.lang.Object
  extended by java.lang.Thread
      extended by jwo.landserf.process.LSThread
          extended by jwo.landserf.process.TransRastThread
All Implemented Interfaces:
Runnable, JWInterruptionListener

public class TransRastThread
extends LSThread

Creates a new raster based on a transformation (scaling, translation, flooding, rounding and to/from null conversion) of an existing one.

Version:
2.3, 17th July, 2006.
Author:
Jo Wood

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TransRastThread(GISFrame gisFrame, TransRastBox trb)
          Transforms raster values using parameters given in trb.
 
Method Summary
 void doProcessing()
          Transform raster.
 RasterMap getTransformedRaster()
          Retrieves the newly created transformed raster.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setFinalMessage, setMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

TransRastThread

public TransRastThread(GISFrame gisFrame,
                       TransRastBox trb)
Transforms raster values using parameters given in trb.

Parameters:
gisFrame - GISFrame holding raster to transform.
trb - GUI box containing raster transformation parameters.
Method Detail

doProcessing

public void doProcessing()
Transform raster. The order of transformations is (i) substitution; (ii) translation; (iii) scaling; (iv) rounding; (v) flooding. The raster map containing the transformed values can be retrieved via getTransformedRaster() or by calling gisFrame.getRaster1().

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

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

getTransformedRaster

public RasterMap getTransformedRaster()
Retrieves the newly created transformed raster.

Returns:
New transformed raster, or null if process yet to take place.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009