org.geotools.gce.gtopo30
Class NoDataReplacerOpImage

Object
  extended by PlanarImage
      extended by OpImage
          extended by PointOpImage
              extended by NoDataReplacerOpImage
All Implemented Interfaces:
RenderedImage, ImageJAI, PropertyChangeEmitter, PropertySource, WritablePropertySource

public final class NoDataReplacerOpImage
extends PointOpImage

An image that contains transformed samples, specifically this method will transform the NoData value using a new supplied one. A new layout is used in order to convert to the required image layout. Default values for this operation can be used to set the NoData and the layout to the values needed for the GTOPO30 writer. Images are created using the NoDataReplacerOpImage.NoDataReplacerCRIF inner class, where "CRIF" stands for ContextualRenderedImageFactory. The image operation name is "org.geotools.gce.NoDataReplacer".

Since:
2.2
Author:
Simone Giannecchini
Module:
modules/plugin/gtopo30 (gt-gtopo30.jar)

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 void register(JAI jai)
          Register the "SampleTranscode" image operation to the operation registry of the specified JAI instance.
 
Methods inherited from class PointOpImage
computeTile, dispose, isColormapOperation, 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 void register(JAI jai)
Register the "SampleTranscode" image operation to the operation registry of the specified JAI instance. This method is invoked by the static initializer of GridSampleDimension.



Copyright © 1996-2010 Geotools. All Rights Reserved.