Package org.esa.snap.core.image
Class ColoredBandImageMultiLevelSource
- java.lang.Object
-
- com.bc.ceres.glevel.support.AbstractMultiLevelSource
-
- org.esa.snap.core.image.ColoredBandImageMultiLevelSource
-
- All Implemented Interfaces:
MultiLevelSource
public class ColoredBandImageMultiLevelSource extends AbstractMultiLevelSource
A multi-level source (= level-image source for image pyramids) for visual RGB images derived fromRasterDataNode
s.- Since:
- Since BEAM 4.0
-
-
Field Summary
-
Fields inherited from interface com.bc.ceres.glevel.MultiLevelSource
NULL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColoredBandImageMultiLevelSource
create(RasterDataNode[] rasterDataNodes, ProgressMonitor pm)
static ColoredBandImageMultiLevelSource
create(RasterDataNode[] rasterDataNodes, MultiLevelModel model, ProgressMonitor pm)
static ColoredBandImageMultiLevelSource
create(RasterDataNode rasterDataNode, ProgressMonitor pm)
RenderedImage
createImage(int level)
Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time.ImageInfo
getImageInfo()
Shape
getImageShape(int level)
Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level.void
setImageInfo(ImageInfo imageInfo)
-
Methods inherited from class com.bc.ceres.glevel.support.AbstractMultiLevelSource
checkLevel, getImage, getModel, reset
-
-
-
-
Method Detail
-
create
public static ColoredBandImageMultiLevelSource create(RasterDataNode rasterDataNode, ProgressMonitor pm)
-
create
public static ColoredBandImageMultiLevelSource create(RasterDataNode[] rasterDataNodes, ProgressMonitor pm)
-
create
public static ColoredBandImageMultiLevelSource create(RasterDataNode[] rasterDataNodes, MultiLevelModel model, ProgressMonitor pm)
-
setImageInfo
public void setImageInfo(ImageInfo imageInfo)
-
getImageInfo
public ImageInfo getImageInfo()
-
getImageShape
public Shape getImageShape(int level)
Description copied from interface:MultiLevelSource
Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level. The method returnsnull
, if the entire image raster contains valid pixels.- Specified by:
getImageShape
in interfaceMultiLevelSource
- Overrides:
getImageShape
in classAbstractMultiLevelSource
- Parameters:
level
- The resolution level.- Returns:
- The shape of the area where the image has data, can be
null
.
-
createImage
public RenderedImage createImage(int level)
Description copied from class:AbstractMultiLevelSource
Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time. Note that images created via this method will bedisposed
whenAbstractMultiLevelSource.reset()
is called on this multi-level image source. SeeAbstractMultiLevelSource.getImage(int)
.The dimension of the level image created must be the same as that obtained from {DefaultMultiLevelSource.getLevelImageBounds(Rectangle sourceBounds, double scale)} for the scale associated with the given resolution level.
- Specified by:
createImage
in classAbstractMultiLevelSource
- Parameters:
level
- The resolution level.- Returns:
- An instance of a
RenderedImage
for the given resolution level.
-
-