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
FieldsModifier and TypeFieldDescriptionprotected final ImageReadBoundsSupportprotected final intprotected final intFields inherited from class javax.media.jai.OpImage
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecyclerFields inherited from class javax.media.jai.PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSubsetTileOpImage(int dataBufferType, int tileWidth, int tileHeight, int tileOffsetFromReadBoundsX, int tileOffsetFromReadBoundsY, ImageReadBoundsSupport imageBoundsSupport, Dimension defaultJAIReadTileSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected final RectanglecomputeIntersectionOnNormalBounds(Rectangle levelDestinationRectangle) protected final intcomputeSourceX(double x) protected final intcomputeSourceY(double y) protected voidfinalize()protected final intgetLevel()protected final intprotected voidsetSample(WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex, int y, int x, double value) protected static voidvalidateCoordinate(int coordinateToCheck, int minimumCoordinate, int size) protected final voidwriteDataOnLevelRaster(Raster normalRasterData, Rectangle normalBoundsIntersection, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle, int bandIndex) protected final voidwriteDataOnLevelRaster(Rectangle normalTileBoundsIntersection, ProductData normalTileData, WritableRaster levelDestinationRaster, Rectangle levelDestinationRectangle) Methods inherited from class javax.media.jai.SourcelessOpImage
computesUniqueTiles, computeTile, mapDestRect, mapSourceRectMethods 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, vectorizeMethods 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 Details
-
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
- Overrides:
finalizein classjavax.media.jai.PlanarImage- Throws:
Throwable
-
getLevel
protected final int getLevel() -
computeIntersectionOnNormalBounds
-
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)
-