Class TLcdGXYViewBasedTerrainElevationProvider
- All Implemented Interfaces:
ILcdAltitudeProvider
This class is the default implementation of TLcdViewBasedTerrainElevationProvider
for ILcdGXYView
s.
This mediator keeps track of terrain models in the ILcdGXYView
and adds/removes
them to/from the specified model based terrain elevation provider.
Note that a view must be set using setGXYView(ILcdGXYView)
before the mediator can add/remove terrain models to/from the model based elevation
provider. If no view is set, the model based elevation provider remains unchanged.
The method TLcdViewBasedTerrainElevationProvider.retrieveElevationAt(ILcdPoint, ILcdGeoReference)
shall probably
return the unknown elevation value for all specified points. This depends on the
implementation of the specified model based elevation provider.
-
Constructor Summary
ConstructorDescriptionTLcdGXYViewBasedTerrainElevationProvider
(ALcdModelBasedTerrainElevationProvider aTerrainElevationProvider) Constructs a new view based terrain elevation provider which is based on anALcdModelBasedTerrainElevationProvider
.TLcdGXYViewBasedTerrainElevationProvider
(ILcdGXYView aGXYView, ALcdModelBasedTerrainElevationProvider aTerrainElevationProvider) Constructs a new view based terrain elevation provider which is based on anALcdModelBasedTerrainElevationProvider
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the view containing the raster layers.getView()
Returns the view containing the layers.static boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setGXYView
(ILcdGXYView aGXYView) Set the view containing the raster layers.void
setView
(ILcdGXYView aView) Set the view containing the raster layers.Methods inherited from class com.luciad.tea.TLcdViewBasedTerrainElevationProvider
getAltitudeDescriptor, getAltitudeMode, getMaximumValidRasterValue, getMinimumValidRasterValue, getOutOfRasterBoundsValue, getPreferredReference, getTerrainElevationProvider, getTerrainModelFilter, getUnknownElevation, isUseOnlyVisibleLayers, isValidElevation, isValidRasterValue, retrieveElevationAt, setMaximumValidRasterValue, setMinimumValidRasterValue, setOutOfRasterBoundsValue, setTerrainElevationProvider, setTerrainModelFilter, setUnknownElevation, setUseOnlyVisibleLayers
Methods inherited from class com.luciad.tea.ALcdTerrainElevationProvider
retrieveAltitudeAt
-
Constructor Details
-
TLcdGXYViewBasedTerrainElevationProvider
public TLcdGXYViewBasedTerrainElevationProvider(ALcdModelBasedTerrainElevationProvider aTerrainElevationProvider) Constructs a new view based terrain elevation provider which is based on an
ALcdModelBasedTerrainElevationProvider
. This model based elevation provider will be used to retrieve the actual elevation.Note that a view must be set using
setGXYView(ILcdGXYView)
before the mediator can add/remove terrain models to/from the model based elevation provider. If no view is set, the model based elevation provider remains unchanged. The methodTLcdViewBasedTerrainElevationProvider.retrieveElevationAt(ILcdPoint, ILcdGeoReference)
shall probably return the unknown elevation value for all specified points. This depends on the implementation of the specified model based elevation provider.- Parameters:
aTerrainElevationProvider
- The provider used to retrieve the actual elevation.- See Also:
-
TLcdGXYViewBasedTerrainElevationProvider
public TLcdGXYViewBasedTerrainElevationProvider(ILcdGXYView aGXYView, ALcdModelBasedTerrainElevationProvider aTerrainElevationProvider) Constructs a new view based terrain elevation provider which is based on an
ALcdModelBasedTerrainElevationProvider
. The specified view provides the terrain models and the model based elevation provider provides the actual elevation.- Parameters:
aGXYView
- The view containing the raster layers.aTerrainElevationProvider
- The provider used to retrieve the actual elevation.- See Also:
-
-
Method Details
-
getView
Returns the view containing the layers.This method is identical to
getGXYView()
.- Overrides:
getView
in classTLcdViewBasedTerrainElevationProvider<ILcdGXYView>
- Returns:
- the view containing the layers.
- See Also:
-
setView
Set the view containing the raster layers.This method is identical to
setGXYView(ILcdGXYView)
.- Overrides:
setView
in classTLcdViewBasedTerrainElevationProvider<ILcdGXYView>
- Parameters:
aView
- The view containing the raster layers.- See Also:
-
getGXYView
Returns the view containing the raster layers.This method is identical to
getView()
.- Returns:
- the view containing the raster layers.
- See Also:
-
setGXYView
Set the view containing the raster layers.
This method is identical to
setView(ILcdGXYView)
.- Parameters:
aGXYView
- The view containing the raster layers.- See Also:
-
isClassTraceOn
public static boolean isClassTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-