Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddrawOnTo(DataRaster canvas)Copies this raster into a specified raster.intgetHeight()Returns the raster's height in raster units.SectorgetSector()Returns the region covered be the data.DataRastergetSubRaster(int width, int height, Sector sector, AVList params)Returns a portion of this raster as another raster.DataRastergetSubRaster(AVList params)Returns a portion of this raster as another raster.intgetWidth()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
-
getWidth
int getWidth()
Returns the raster's width in raster units.- Returns:
- the raster's width in raster units.
-
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.
-
drawOnTo
void drawOnTo(DataRaster canvas)
Copies this raster into a specified raster.- Parameters:
canvas- - the raster to copy into.
-
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 usingAVKey.WIDTH,AVKey.HEIGHTandAVKey.SECTOR.- Returns:
- the requested raster, or null if the raster could not be created.
- Throws:
java.lang.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 usingAVKey.WIDTH,AVKey.HEIGHTandAVKey.SECTOR.- Returns:
- the requested raster, or null if the raster could not be created.
- Throws:
java.lang.IllegalArgumentException- if the sector is null or the width, height or sector are invalid.
-
-