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

Object
  extended by PlanarImage
      extended by OpImage
          extended by PointOpImage
              extended by ColormapOpImage
                  extended by GenericPiecewise<T>
All Implemented Interfaces:
RenderedImage, ImageJAI, PropertyChangeEmitter, PropertySource, WritablePropertySource

public class GenericPiecewise<T extends PiecewiseTransform1DElement>
extends 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
Author:
Simone Giannecchini - GeoSolutions

Field Summary
static String OPERATION_NAME
          The operation name.
 
Fields inherited from class OpImage
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler
 
Fields inherited from class PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Method Summary
protected  void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect)
          Computes one of the destination image tile.
static boolean register(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 ColormapOpImage
initializeColormapOperation, isColormapOperation
 
Methods inherited from class PointOpImage
computeTile, dispose, mapDestRect, mapSourceRect, permitInPlaceOperation
 
Methods inherited from class 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 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 Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final String OPERATION_NAME
The operation name.

See Also:
Constant Field Values
Method Detail

computeRect

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

Overrides:
computeRect in class 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(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 ColormapOpImage


Copyright © 1996-2009 Geotools. All Rights Reserved.