org.geotools.referencing.piecewise
Class GenericPiecewise<T extends PiecewiseTransform1DElement>

java.lang.Object
  extended by javax.media.jai.PlanarImage
      extended by javax.media.jai.OpImage
          extended by javax.media.jai.PointOpImage
              extended by javax.media.jai.ColormapOpImage
                  extended by org.geotools.referencing.piecewise.GenericPiecewise<T>
All Implemented Interfaces:
java.awt.image.RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public class GenericPiecewise<T extends PiecewiseTransform1DElement>
extends javax.media.jai.ColormapOpImage

Images are created using the GenericPiecewise.CRIF inner class, where "CRIF" stands for ContextualRenderedImageFactory . The image operation name is "org.geotools.GenericPiecewise".

Since:
2.4
Version:
$Id: GenericPiecewise.java 34126 2009-10-12 06:35:18Z mbedward $
Author:
Simone Giannecchini - GeoSolutions

Field Summary
static java.lang.String OPERATION_NAME
          The operation name.
 
Fields inherited from class javax.media.jai.OpImage
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler
 
Fields inherited from class javax.media.jai.PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Method Summary
protected  void computeRect(javax.media.jai.PlanarImage[] sources, java.awt.image.WritableRaster dest, java.awt.Rectangle destRect)
          Computes one of the destination image tile.
static boolean register(javax.media.jai.JAI jai)
          Register the RasterClassifier operation to the operation registry of the specified JAI instance.
protected  void transformColormap(byte[][] colormap)
          Transform the colormap according to the rescaling parameters.
 
Methods inherited from class javax.media.jai.ColormapOpImage
initializeColormapOperation, isColormapOperation
 
Methods inherited from class javax.media.jai.PointOpImage
computeTile, dispose, mapDestRect, mapSourceRect, permitInPlaceOperation
 
Methods inherited from class javax.media.jai.OpImage
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize
 
Methods inherited from class javax.media.jai.PlanarImage
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final java.lang.String OPERATION_NAME
The operation name.

See Also:
Constant Field Values
Method Detail

computeRect

protected void computeRect(javax.media.jai.PlanarImage[] sources,
                           java.awt.image.WritableRaster dest,
                           java.awt.Rectangle destRect)
Computes one of the destination image tile.

Overrides:
computeRect in class javax.media.jai.OpImage
Parameters:
sources - An array of length 1 with source image.
dest - The destination tile.
destRect - the rectangle within the destination to be written.

register

public static boolean register(javax.media.jai.JAI jai)
Register the RasterClassifier operation to the operation registry of the specified JAI instance. This method is invoked by the static initializer of GridSampleDimension.

Parameters:
jai - JAI instance in which we want to register the RasterClassifier operation.
Returns:
true if everything goes fine, false otherwise.

transformColormap

protected void transformColormap(byte[][] colormap)
Transform the colormap according to the rescaling parameters.

Specified by:
transformColormap in class javax.media.jai.ColormapOpImage


Copyright © 1996-2010 Geotools. All Rights Reserved.