Package org.esa.snap.core.image
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 ImageReadBoundsSupport
imageBoundsSupport
protected int
levelTileOffsetFromReadBoundsX
protected int
levelTileOffsetFromReadBoundsY
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSubsetTileOpImage(int dataBufferType, int tileWidth, int tileHeight, int tileOffsetFromReadBoundsX, int tileOffsetFromReadBoundsY, ImageReadBoundsSupport imageBoundsSupport, Dimension defaultJAIReadTileSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Rectangle
computeIntersectionOnNormalBounds(Rectangle levelDestinationRectangle)
protected int
computeSourceX(double x)
protected int
computeSourceY(double y)
protected void
finalize()
protected int
getLevel()
protected int
getProductDataType()
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 void
writeDataOnLevelRaster(Raster normalRasterData, Rectangle normalBoundsIntersection, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex)
protected 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
-
-
-
-
Field Detail
-
imageBoundsSupport
protected final ImageReadBoundsSupport imageBoundsSupport
-
levelTileOffsetFromReadBoundsX
protected final int levelTileOffsetFromReadBoundsX
-
levelTileOffsetFromReadBoundsY
protected final int levelTileOffsetFromReadBoundsY
-
-
Constructor Detail
-
AbstractSubsetTileOpImage
protected AbstractSubsetTileOpImage(int dataBufferType, int tileWidth, int tileHeight, int tileOffsetFromReadBoundsX, int tileOffsetFromReadBoundsY, ImageReadBoundsSupport imageBoundsSupport, Dimension defaultJAIReadTileSize)
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
- Overrides:
finalize
in classjavax.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)
-
-