public abstract class ALcdModelBasedTerrainElevationProvider extends ALcdRasterTerrainElevationProvider
Modifier | Constructor and Description |
---|---|
protected |
ALcdModelBasedTerrainElevationProvider()
Defines an
ALcdRasterTerrainElevationProvider which holds a
list of models that can be used to retrieve elevation data. |
Modifier and Type | Method and Description |
---|---|
void |
addModel(ILcdModel aModel)
Add a model to the list of models to be taken into account for retrieving
elevation data.
|
ILcdModel |
getModel(int aIndex)
Returns the model at the specified index.
|
int |
getModelCount()
Returns the number of models currently in the list.
|
ILcdGeoReference |
getPreferredReference()
Returns the preferred reference for this terrain elevation provider.
|
void |
removeAllModels()
Empty the list of models to be taken into account for retrieving elevation data.
|
void |
removeModel(ILcdModel aModel)
Remove a model from list set of models to be taken into account for retrieving
elevation data.
|
getMaximumValidRasterValue, getMinimumValidRasterValue, getOutOfRasterBoundsValue, getUnknownElevation, isValidRasterValue, setMaximumValidRasterValue, setMinimumValidRasterValue, setOutOfRasterBoundsValue, setUnknownElevation
getAltitudeDescriptor, getAltitudeMode, isValidElevation, retrieveAltitudeAt, retrieveElevationAt
protected ALcdModelBasedTerrainElevationProvider()
ALcdRasterTerrainElevationProvider
which holds a
list of models that can be used to retrieve elevation data.public void addModel(ILcdModel aModel)
aModel
- The model to be added.public void removeModel(ILcdModel aModel)
aModel
- The model to be removed.public void removeAllModels()
public ILcdModel getModel(int aIndex)
aIndex
- The index to query.public int getModelCount()
public ILcdGeoReference getPreferredReference()
ALcdTerrainElevationProvider.retrieveElevationAt(ILcdPoint, ILcdGeoReference)
. It is perfectly correct to use points
with other references, but it will be faster to use the preferred.
If the model references of all models in this elevation provider are the same, this
implementation will return that model reference as the preferred reference, otherwise
null
is returned.getPreferredReference
in interface ILcdAltitudeProvider
getPreferredReference
in class ALcdTerrainElevationProvider
null
can be returned if no preferred reference is available.ALcdTerrainElevationProvider.retrieveElevationAt(ILcdPoint,ILcdGeoReference)