public class TLcdGXYViewBasedTerrainElevationProvider extends TLcdViewBasedTerrainElevationProvider<ILcdGXYView>
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 and Description |
---|
TLcdGXYViewBasedTerrainElevationProvider(ALcdModelBasedTerrainElevationProvider aTerrainElevationProvider)
Constructs a new view based terrain elevation provider which is based on an
ALcdModelBasedTerrainElevationProvider . |
TLcdGXYViewBasedTerrainElevationProvider(ILcdGXYView aGXYView,
ALcdModelBasedTerrainElevationProvider aTerrainElevationProvider)
Constructs a new view based terrain elevation provider which is based on an
ALcdModelBasedTerrainElevationProvider . |
Modifier and Type | Method and Description |
---|---|
ILcdGXYView |
getGXYView()
Returns the view containing the raster layers.
|
ILcdGXYView |
getView()
Returns the view containing the layers.
|
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setGXYView(ILcdGXYView aGXYView)
Set the view containing the raster layers.
|
void |
setView(ILcdGXYView aView)
Set the view containing the raster layers.
|
getAltitudeDescriptor, getAltitudeMode, getMaximumValidRasterValue, getMinimumValidRasterValue, getOutOfRasterBoundsValue, getPreferredReference, getTerrainElevationProvider, getTerrainModelFilter, getUnknownElevation, isUseOnlyVisibleLayers, isValidElevation, isValidRasterValue, retrieveElevationAt, setMaximumValidRasterValue, setMinimumValidRasterValue, setOutOfRasterBoundsValue, setTerrainElevationProvider, setTerrainModelFilter, setUnknownElevation, setUseOnlyVisibleLayers
retrieveAltitudeAt
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 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.
aTerrainElevationProvider
- The provider used to retrieve the actual elevation.TLcdViewBasedTerrainElevationProvider.setTerrainElevationProvider(ALcdModelBasedTerrainElevationProvider)
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.
aGXYView
- The view containing the raster layers.aTerrainElevationProvider
- The provider used to retrieve the actual elevation.TLcdViewBasedTerrainElevationProvider.setTerrainElevationProvider(ALcdModelBasedTerrainElevationProvider)
public ILcdGXYView getView()
This method is identical to getGXYView()
.
getView
in class TLcdViewBasedTerrainElevationProvider<ILcdGXYView>
TLcdViewBasedTerrainElevationProvider.setView(com.luciad.view.ILcdView)
public void setView(ILcdGXYView aView)
This method is identical to setGXYView(ILcdGXYView)
.
setView
in class TLcdViewBasedTerrainElevationProvider<ILcdGXYView>
aView
- The view containing the raster layers.TLcdViewBasedTerrainElevationProvider.getView()
public ILcdGXYView getGXYView()
This method is identical to getView()
.
setGXYView(ILcdGXYView)
public void setGXYView(ILcdGXYView aGXYView)
Set the view containing the raster layers.
This method is identical to setView(ILcdGXYView)
.
aGXYView
- The view containing the raster layers.getGXYView()
public static boolean isClassTraceOn()
true
if tracing is enabled for this class.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.