public abstract class AbstractDataRaster extends AVListImpl implements DataRaster
| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected int |
width |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataRaster() |
protected |
AbstractDataRaster(int width,
int height,
Sector sector) |
protected |
AbstractDataRaster(int width,
int height,
Sector sector,
AVList list) |
| Modifier and Type | Method and Description |
|---|---|
protected Rectangle |
computeClipRect(Sector clipSector,
DataRaster clippedRaster) |
protected AffineTransform |
computeGeographicToRasterTransform(int width,
int height,
Sector sector) |
protected AffineTransform |
computeSourceToDestTransform(int sourceWidth,
int sourceHeight,
Sector sourceSector,
int destWidth,
int destHeight,
Sector destSector) |
int |
getHeight()
Returns the raster's height in raster units.
|
Sector |
getSector()
Returns the region covered be the data.
|
DataRaster |
getSubRaster(AVList params)
Reads the specified region of interest (ROI) with given extent, width, and height, and type
|
DataRaster |
getSubRaster(int width,
int height,
Sector sector,
AVList params)
Returns a portion of this raster as another raster.
|
int |
getWidth()
Returns the raster's width in raster units.
|
Object |
setValue(String key,
Object value)
Adds a key/value pair to the list.
|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdrawOnToaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValuesdisposeprotected AbstractDataRaster()
protected AbstractDataRaster(int width,
int height,
Sector sector)
throws IllegalArgumentException
IllegalArgumentExceptionprotected AbstractDataRaster(int width,
int height,
Sector sector,
AVList list)
throws IllegalArgumentException
IllegalArgumentExceptionprotected Rectangle computeClipRect(Sector clipSector, DataRaster clippedRaster)
protected AffineTransform computeGeographicToRasterTransform(int width, int height, Sector sector)
protected AffineTransform computeSourceToDestTransform(int sourceWidth, int sourceHeight, Sector sourceSector, int destWidth, int destHeight, Sector destSector)
public int getHeight()
DataRastergetHeight in interface DataRasterpublic Sector getSector()
DataRastergetSector in interface DataRasterpublic DataRaster getSubRaster(AVList params)
getSubRaster in interface DataRasterparams - Required parameters are:
AVKey.HEIGHT as Integer, specifies a height of the desired ROI AVKey.WIDTH as Integer, specifies a
width of the desired ROI AVKey.SECTOR as Sector, specifies an extent of the desired ROI
Optional parameters are:
AVKey.BAND_ORDER as array of integers, examples: for RGBA image: new int[] { 0, 1, 2, 3 }, or for
ARGB image: new int[] { 3, 0, 1, 2 } or if you want only RGB bands of the RGBA image: new int[] {
0, 1, 2 } or only Intensity (4th) band of the specific aerial image: new int[] { 3 }public DataRaster getSubRaster(int width, int height, Sector sector, AVList params)
DataRastergetSubRaster in interface DataRasterwidth - the width to make the returned sub-raster.height - the height to make the returned sub-raster.sector - the sector to copy.params - a list of parameters that specify the width, height and sector of the region to return. Specify
these values using AVKey.WIDTH, AVKey.HEIGHT and AVKey.SECTOR.public int getWidth()
DataRastergetWidth in interface DataRasterpublic Object setValue(String key, Object value)
AVListsetValue in interface AVListsetValue in class AVListImplkey - the attribute name. May not be null.value - the attribute value. May be null, in which case any existing value for the key is
removed from the collection.