Package com.luciad.models.rasters
Interface IMultilevelTiledRasterDataRetrieverCallback
public interface IMultilevelTiledRasterDataRetrieverCallback
Interface with callback methods for the
raster data retriever to call.
There is usually no need to make a user implementation. An implementation to call the methods on is provided by the raster model implementation that has been created using either a MultilevelTiledRasterModelBuilder or a QuadTreeRasterModelBuilder.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCanceled(MultilevelTileCoordinate tileCoordinate) Call this method when the request for the raster tile data was canceled.voidonDataAvailable(MultilevelTileCoordinate tileCoordinate, DataEntity data) Call this method when you have retrieved the raster tile data in itsrawform.voidonDataNotAvailable(MultilevelTileCoordinate tileCoordinate) Call this method when there is no data available for the tile coordindate.voidonError(MultilevelTileCoordinate tileCoordinate, String message) Call this method when there is an error to retrieve the raster tile data.voidonImageAvailable(MultilevelTileCoordinate tileCoordinate, Image image) Call this method when you have retrieved the raster tile data and have decoded it as an image.
-
Method Details
-
onDataAvailable
Call this method when you have retrieved the raster tile data in itsrawform.Supported mime types for the raster tile data:
Imagery:
- image/png
- image/jpeg
- image/tiff (containing RGB(A))
Elevation:
- image/tiff (containing a single channel with floating point data)
- Parameters:
tileCoordinate- the tile coordinate for which the raster tile data was retrieved.data- the raster tile data.
-
onImageAvailable
Call this method when you have retrieved the raster tile data and have decoded it as an image.Supported image types:
Imagery:
Elevation:
- Parameters:
tileCoordinate- the tile coordinate for which the raster tile data was retrieved.image- the raster tile data decoded into an image.
-
onDataNotAvailable
Call this method when there is no data available for the tile coordindate.- Parameters:
tileCoordinate- the tile coordinate for which there is no raster tile data.
-
onError
Call this method when there is an error to retrieve the raster tile data.- Parameters:
tileCoordinate- the tile coordinate for which there is no raster tile data.message- a message to detail what went wrong.
-
onCanceled
Call this method when the request for the raster tile data was canceled.- Parameters:
tileCoordinate- the tile coordinate for which the request was canceled.
-