it.geosolutions.jaiext.buffer
Class BufferOpImage

java.lang.Object
  extended by javax.media.jai.PlanarImage
      extended by javax.media.jai.OpImage
          extended by javax.media.jai.AreaOpImage
              extended by it.geosolutions.jaiext.buffer.BufferOpImage
All Implemented Interfaces:
RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public class BufferOpImage
extends javax.media.jai.AreaOpImage


Field Summary
static boolean ARRAY_CALC
           
static boolean TILE_CACHED
           
static int TILE_EXTENDER
           
static int USHORT_MAX_VALUE
           
 
Fields inherited from class javax.media.jai.AreaOpImage
bottomPadding, extender, leftPadding, rightPadding, topPadding
 
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
 
Constructor Summary
BufferOpImage(RenderedImage source, javax.media.jai.ImageLayout layout, Map configuration, javax.media.jai.BorderExtender extender, int leftPadding, int rightPadding, int topPadding, int bottomPadding, List<javax.media.jai.ROI> rois, Range noData, double destinationNoDataDouble, Double valueToCount, double pixelArea)
           
 
Method Summary
protected  void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
          Calculates the buffer on the defined raster
 
Methods inherited from class javax.media.jai.AreaOpImage
computeTile, getBorderExtender, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, mapDestRect, mapSourceRect
 
Methods inherited from class javax.media.jai.OpImage
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, dispose, 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

TILE_EXTENDER

public static final int TILE_EXTENDER
See Also:
Constant Field Values

USHORT_MAX_VALUE

public static final int USHORT_MAX_VALUE
See Also:
Constant Field Values

TILE_CACHED

public static final boolean TILE_CACHED
See Also:
Constant Field Values

ARRAY_CALC

public static final boolean ARRAY_CALC
See Also:
Constant Field Values
Constructor Detail

BufferOpImage

public BufferOpImage(RenderedImage source,
                     javax.media.jai.ImageLayout layout,
                     Map configuration,
                     javax.media.jai.BorderExtender extender,
                     int leftPadding,
                     int rightPadding,
                     int topPadding,
                     int bottomPadding,
                     List<javax.media.jai.ROI> rois,
                     Range noData,
                     double destinationNoDataDouble,
                     Double valueToCount,
                     double pixelArea)
Method Detail

computeRect

protected void computeRect(Raster[] sources,
                           WritableRaster dest,
                           Rectangle destRect)
Calculates the buffer on the defined raster

Overrides:
computeRect in class javax.media.jai.OpImage
Parameters:
sources - an array of source Rasters, guaranteed to provide all necessary source data for computing the output.
dest - a WritableRaster tile containing the area to be computed.
destRect - the rectangle within dest to be processed.


Copyright © 2006–2015 GeoSolutions. All rights reserved.