Package com.luciad.tea
Class ALcdModelBasedTerrainElevationProvider
java.lang.Object
com.luciad.tea.ALcdTerrainElevationProvider
com.luciad.tea.ALcdRasterTerrainElevationProvider
com.luciad.tea.ALcdModelBasedTerrainElevationProvider
- All Implemented Interfaces:
ILcdAltitudeProvider
- Direct Known Subclasses:
ALcdDensityBasedElevationProvider
,TLcdDensityBasedRasterElevationProvider
,TLcdFixedLevelBasedRasterElevationProvider
public abstract class ALcdModelBasedTerrainElevationProvider
extends ALcdRasterTerrainElevationProvider
A terrain elevation provider that gets its terrain elevation data from a list of models.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Defines anALcdRasterTerrainElevationProvider
which holds a list of models that can be used to retrieve elevation data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a model to the list of models to be taken into account for retrieving elevation data.getModel
(int aIndex) Returns the model at the specified index.int
Returns the number of models currently in the list.Returns the preferred reference for this terrain elevation provider.void
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.Methods inherited from class com.luciad.tea.ALcdRasterTerrainElevationProvider
getMaximumValidRasterValue, getMinimumValidRasterValue, getOutOfRasterBoundsValue, getUnknownElevation, isValidRasterValue, setMaximumValidRasterValue, setMinimumValidRasterValue, setOutOfRasterBoundsValue, setUnknownElevation
Methods inherited from class com.luciad.tea.ALcdTerrainElevationProvider
getAltitudeDescriptor, getAltitudeMode, isValidElevation, retrieveAltitudeAt, retrieveElevationAt
-
Constructor Details
-
ALcdModelBasedTerrainElevationProvider
protected ALcdModelBasedTerrainElevationProvider()Defines anALcdRasterTerrainElevationProvider
which holds a list of models that can be used to retrieve elevation data.
-
-
Method Details
-
addModel
Add a model to the list of models to be taken into account for retrieving elevation data.- Parameters:
aModel
- The model to be added.
-
removeModel
Remove a model from list set of models to be taken into account for retrieving elevation data.- Parameters:
aModel
- The model to be removed.
-
removeAllModels
public void removeAllModels()Empty the list of models to be taken into account for retrieving elevation data. -
getModel
Returns the model at the specified index.- Parameters:
aIndex
- The index to query.- Returns:
- the model at the specified index.
-
getModelCount
public int getModelCount()Returns the number of models currently in the list.- Returns:
- the number of models currently in the list.
-
getPreferredReference
Returns the preferred reference for this terrain elevation provider. This reference is the reference with the best performance when used as a parameter in the methodALcdTerrainElevationProvider.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, otherwisenull
is returned.- Specified by:
getPreferredReference
in interfaceILcdAltitudeProvider
- Overrides:
getPreferredReference
in classALcdTerrainElevationProvider
- Returns:
- the preferred reference of this terrain elevation provider. Note that
null
can be returned if no preferred reference is available. - See Also:
-