NASA World Wind

gov.nasa.worldwind.data
Interface DataRaster

All Superinterfaces:
AVList, Disposable
All Known Implementing Classes:
AbstractDataRaster, BufferedImageRaster, BufferWrapperRaster, ByteBufferRaster, CachedDataRaster, GDALDataRaster, MipMappedBufferedImageRaster

public interface DataRaster
extends AVList, Disposable

Represents a raster of imagery or elevations.


Method Summary
 void drawOnTo(DataRaster canvas)
          Copies this raster into a specified raster.
 int getHeight()
          Returns the raster's height in raster units.
 Sector getSector()
          Returns the region covered be the data.
 DataRaster getSubRaster(AVList params)
          Returns a portion of this raster as another raster.
 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.
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface gov.nasa.worldwind.Disposable
dispose
 

Method Detail

drawOnTo

void drawOnTo(DataRaster canvas)
Copies this raster into a specified raster.

Parameters:
canvas - - the raster to copy into.

getHeight

int getHeight()
Returns the raster's height in raster units.

Returns:
the raster's height in raster units.

getSector

Sector getSector()
Returns the region covered be the data.

Returns:
a sector indicating the region covered by the raster.

getSubRaster

DataRaster getSubRaster(AVList params)
Returns a portion of this raster as another raster. Input values are the desired width and height of the return sub-raster, and the sector to copy from this raster to the sub-raster. The returned raster conforms to EPSG:4326 even if this raster does not.

Parameters:
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.
Returns:
the requested raster, or null if the raster could not be created.
Throws:
IllegalArgumentException - if the specified parameter list is missing the width, height or sector keys or any of those values are invalid.

getSubRaster

DataRaster getSubRaster(int width,
                        int height,
                        Sector sector,
                        AVList params)
Returns a portion of this raster as another raster. The returned raster conforms to EPSG:4326 even if this raster does not.

Parameters:
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.
Returns:
the requested raster, or null if the raster could not be created.
Throws:
IllegalArgumentException - if the sector is null or the width, height or sector are invalid.

getWidth

int getWidth()
Returns the raster's width in raster units.

Returns:
the raster's width in raster units.

NASA World Wind