public abstract class RasterDataNodeOpImage extends SingleBandedOpImage
OpImages acting as source image for
a RasterDataNode.| Modifier | Constructor and Description |
|---|---|
protected |
RasterDataNodeOpImage(RasterDataNode rasterDataNode,
ResolutionLevel level)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
computeProductData(ProductData productData,
Rectangle region)
Computes the target pixel data for this level image.
|
protected void |
computeRect(javax.media.jai.PlanarImage[] sourceImages,
WritableRaster tile,
Rectangle destRect) |
protected static void |
copyLine(int y,
int destWidth,
ProductData src,
ProductData dest,
int[] sourceCoords) |
protected ProductData |
getGeophysicalProductData(RasterDataNode band,
Rectangle region)
Utility method that allows to retrieve data from a raster data node whose geophysical image shares the same
multi-level model (aka image pyramid model).
|
RasterDataNode |
getRasterDataNode() |
protected ProductData |
getRawProductData(RasterDataNode band,
Rectangle region)
Utility method that allows to retrieve data from a raster data node whose source image shares the same
multi-level model (aka image pyramid model).
|
protected int[] |
getSourceCoords(int sourceLength,
int targetLength)
Utility method which computes source (offset) coordinates for a given source and target lengths.
|
String |
toString() |
computeRect, createNoDataRaster, getLevel, getLevelImageSupport, getScale, getSourceCoord, getSourceHeight, getSourceWidth, getSourceX, getSourceYcomputesUniqueTiles, computeTile, mapDestRect, mapSourceRectaddTileToCache, cancelTiles, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorizeaddPropertyChangeListener, 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, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileYprotected RasterDataNodeOpImage(RasterDataNode rasterDataNode, ResolutionLevel level)
rasterDataNode - The target raster data node.level - The resolution level.ResolutionLevel.create(com.bc.ceres.glevel.MultiLevelModel, int)public RasterDataNode getRasterDataNode()
protected ProductData getGeophysicalProductData(RasterDataNode band, Rectangle region)
band - A raster data node whose geophysical image shares the same multi-level model.region - The region in pixel coordinates of the given resolution level (see SingleBandedOpImage.getLevel()).getRawProductData(RasterDataNode, java.awt.Rectangle)protected ProductData getRawProductData(RasterDataNode band, Rectangle region)
band - A raster data node whose source image shares the same multi-level model.region - The region in pixel coordinates of the given resolution level (see SingleBandedOpImage.getLevel()).getGeophysicalProductData(RasterDataNode, java.awt.Rectangle)protected void computeRect(javax.media.jai.PlanarImage[] sourceImages,
WritableRaster tile,
Rectangle destRect)
computeRect in class javax.media.jai.OpImageprotected abstract void computeProductData(ProductData productData, Rectangle region) throws IOException
productData - The target pixel buffer to write to. The number of elements in this buffer will always be
region.width * region.height.region - The target region in pixel coordinates valid for this image level.IOException - May be thrown if an I/O error occurs during the computation.public String toString()
toString in class javax.media.jai.PlanarImageprotected int[] getSourceCoords(int sourceLength,
int targetLength)
sourceLength - The source length in source pixel units.targetLength - The target length in target pixel units.targetLength containing source (offset) coordinates.protected static void copyLine(int y,
int destWidth,
ProductData src,
ProductData dest,
int[] sourceCoords)
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.