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 java.awt.Rectangle |
computeClipRect(Sector clipSector,
DataRaster clippedRaster) |
protected java.awt.geom.AffineTransform |
computeGeographicToRasterTransform(int width,
int height,
Sector sector) |
protected java.awt.geom.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.
|
java.lang.Object |
setValue(java.lang.String key,
java.lang.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, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawOnTo
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
dispose
protected AbstractDataRaster()
protected AbstractDataRaster(int width, int height, Sector sector) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected java.awt.Rectangle computeClipRect(Sector clipSector, DataRaster clippedRaster)
protected java.awt.geom.AffineTransform computeGeographicToRasterTransform(int width, int height, Sector sector)
protected java.awt.geom.AffineTransform computeSourceToDestTransform(int sourceWidth, int sourceHeight, Sector sourceSector, int destWidth, int destHeight, Sector destSector)
public int getHeight()
DataRaster
getHeight
in interface DataRaster
public Sector getSector()
DataRaster
getSector
in interface DataRaster
public DataRaster getSubRaster(AVList params)
getSubRaster
in interface DataRaster
params
- 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)
DataRaster
getSubRaster
in interface DataRaster
width
- 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()
DataRaster
getWidth
in interface DataRaster
public java.lang.Object setValue(java.lang.String key, java.lang.Object value)
AVList
setValue
in interface AVList
setValue
in class AVListImpl
key
- 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.