Class AbstractSubsetTileOpImage

java.lang.Object
javax.media.jai.PlanarImage
javax.media.jai.OpImage
javax.media.jai.SourcelessOpImage
org.esa.snap.core.image.AbstractSubsetTileOpImage
All Implemented Interfaces:
RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public abstract class AbstractSubsetTileOpImage extends javax.media.jai.SourcelessOpImage
Created by jcoravu on 11/12/2019.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ImageReadBoundsSupport
     
    protected final int
     
    protected final int
     

    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

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractSubsetTileOpImage(int dataBufferType, int tileWidth, int tileHeight, int tileOffsetFromReadBoundsX, int tileOffsetFromReadBoundsY, ImageReadBoundsSupport imageBoundsSupport, Dimension defaultJAIReadTileSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Rectangle
    computeIntersectionOnNormalBounds(Rectangle levelDestinationRectangle)
     
    protected final int
    computeSourceX(double x)
     
    protected final int
    computeSourceY(double y)
     
    protected void
     
    protected final int
     
    protected final int
     
    protected void
    setSample(WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex, int y, int x, double value)
     
    protected static void
    validateCoordinate(int coordinateToCheck, int minimumCoordinate, int size)
     
    protected final void
    writeDataOnLevelRaster(Raster normalRasterData, Rectangle normalBoundsIntersection, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex)
     
    protected final void
    writeDataOnLevelRaster(Rectangle normalTileBoundsIntersection, ProductData normalTileData, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle)
     

    Methods inherited from class javax.media.jai.SourcelessOpImage

    computesUniqueTiles, computeTile, mapDestRect, mapSourceRect

    Methods inherited from class javax.media.jai.OpImage

    addTileToCache, cancelTiles, computeRect, computeRect, 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, 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 Details

    • imageBoundsSupport

      protected final ImageReadBoundsSupport imageBoundsSupport
    • levelTileOffsetFromReadBoundsX

      protected final int levelTileOffsetFromReadBoundsX
    • levelTileOffsetFromReadBoundsY

      protected final int levelTileOffsetFromReadBoundsY
  • Constructor Details

    • AbstractSubsetTileOpImage

      protected AbstractSubsetTileOpImage(int dataBufferType, int tileWidth, int tileHeight, int tileOffsetFromReadBoundsX, int tileOffsetFromReadBoundsY, ImageReadBoundsSupport imageBoundsSupport, Dimension defaultJAIReadTileSize)
  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class javax.media.jai.PlanarImage
      Throws:
      Throwable
    • getLevel

      protected final int getLevel()
    • computeIntersectionOnNormalBounds

      protected final Rectangle computeIntersectionOnNormalBounds(Rectangle levelDestinationRectangle)
    • writeDataOnLevelRaster

      protected final void writeDataOnLevelRaster(Raster normalRasterData, Rectangle normalBoundsIntersection, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex)
    • setSample

      protected void setSample(WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex, int y, int x, double value)
    • getProductDataType

      protected final int getProductDataType()
    • writeDataOnLevelRaster

      protected final void writeDataOnLevelRaster(Rectangle normalTileBoundsIntersection, ProductData normalTileData, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle)
    • computeSourceX

      protected final int computeSourceX(double x)
    • computeSourceY

      protected final int computeSourceY(double y)
    • validateCoordinate

      protected static void validateCoordinate(int coordinateToCheck, int minimumCoordinate, int size)