org.geotools.gce.gtopo30
Class NoDataReplacerOpImage

java.lang.Object
  extended by javax.media.jai.PlanarImage
      extended by javax.media.jai.OpImage
          extended by javax.media.jai.PointOpImage
              extended by org.geotools.gce.gtopo30.NoDataReplacerOpImage
All Implemented Interfaces:
java.awt.image.RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public final class NoDataReplacerOpImage
extends javax.media.jai.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
Version:
$Id: NoDataReplacerOpImage.java 30718 2008-06-13 17:41:11Z acuster $
Author:
Simone Giannecchini

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 void register(javax.media.jai.JAI jai)
          Register the "SampleTranscode" image operation to the operation registry of the specified JAI instance.
 
Methods inherited from class javax.media.jai.PointOpImage
computeTile, dispose, isColormapOperation, 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 void register(javax.media.jai.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.