public interface TileUpdater
Implementations of this interface are must be provided by the image processing mission-specific layer, thus allowing the Rugged library to access the Digital Elevation Model data.
Modifier and Type | Method | Description |
---|---|---|
void |
updateTile(double latitude,
double longitude,
UpdatableTile tile) |
Update the tile according to the Digital Elevation Model.
|
void updateTile(double latitude, double longitude, UpdatableTile tile)
This method is the hook used by the Rugged library to delegate
Digital Elevation Model loading to user-provided mission-specific
code. When this method is called, the specified tile
is empty and must be updated by calling tile.setGeometry
once at the start of the method to set up the tile
geometry, and then calling tile.setElevation
once for each cell in the tile to set the
cell elevation.
The implementation must fulfill the requirements:
tile.setElevation(kLat, kLon,
elevation)
must be the elevation corresponding to the latitude
minLatitude + kLat * latitudeStep
and longitude
minLongitude + kLon * longitudeStep
, where minLatitude
,
latitudeStep
, minLongitude
and longitudeStep
correspond to the parameter of the tile.setGeometry(minLatitude, minLongitude,
latitudeStep, longitudeStep, latitudeRows, longitudeColumns)
call.
latitude
- latitude that must be covered by the tile (rad)longitude
- longitude that must be covered by the tile (rad)tile
- to updateCopyright © 2014-2019 CS Systèmes d'information. All rights reserved.