Package com.luciad.tea
Class TLcdTerrainProfileUtil
java.lang.Object
com.luciad.tea.TLcdTerrainProfileUtil
Deprecated.
A utility class with the facility to extract height values from raster data.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
displayAltitude
(double aValue, Graphics g, ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.Display on the givenGraphics
belonging to the givenILcdGXYView
, the given altitude at the given MouseEvent.void
displayAltitude
(Graphics aGraphics, ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.void
drawGhost
(int aStartX, int aStartY, int aEndX, int aEndY, Graphics aGraphics, ILcdGXYView aGXYView) Deprecated.void
drawGhost
(ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, Graphics aGraphics, ILcdGXYView aGXYView) Deprecated.void
drawMarkWithAltitude
(ILcdPoint aMarkModelPoint, double aMarkAltitude, int aMarkWidth, Color aForegroundColor, Color aBackgroundColor, boolean isGhostPointingUp, Graphics aGraphics, ILcdGXYView aGXYView) Deprecated.protected String
formatAltitude
(double aAltitude) Deprecated.Deprecated.Gets the color of the label frames filling.getFont()
Deprecated.Gets theFont
for drawing the labels.Deprecated.Gets the color of the labels.Deprecated.Returns the internal profile.int
Deprecated.Returns the internal profile length.Deprecated.Gets the color of the text.Deprecated.boolean
Deprecated.Default is false.void
modelPointSFCT
(int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) Deprecated.Updates the given model point to the model point corresponding to the specified screen coordinates.void
modelPointSFCT
(int aXScreen, int aYScreen, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) Deprecated.Updates the given model point to the model point corresponding to the specified screen coordinates.void
modelPointSFCT
(MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) Deprecated.Calls the methodmodelPointSFCT(int, int, ILcdGXYLayer, ILcdGXYView, ILcd3DEditablePoint)
and updates the given model point to the model point corresponding to the specified mouse event point.void
Deprecated.Reset the internal profile.double
retrieveAltitude
(int aXScreen, int aYScreen, ILcdGXYView aGXYView) Deprecated.double
retrieveAltitude
(ILcdRaster aRaster, int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.double
retrieveAltitude
(ILcdRaster aRaster, ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.double
retrieveAltitude
(ILcdRaster aRaster, MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.retrieveGXYLayer
(int aXScreen, int aYScreen, ILcdGXYView aGXYView) Deprecated.Returns the layer touched by the given screen coordinates.retrieveGXYLayer
(MouseEvent aMouseEvent, ILcdGXYView aGXYView) Deprecated.Calls the methodretrieveGXYLayer(int, int, com.luciad.view.gxy.ILcdGXYView)
and returns the layer touched by the mouse event.protected ILcdRaster
retrieveRasterFromMultiLevelRaster
(ILcdMultilevelRaster aMultiLevelRaster, ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Returns the raster from the given multilevel raster containing the specified model point.retrieveTouchedRaster
(int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Returns the raster touched by the given screen coordinates.protected ILcdRaster
retrieveTouchedRaster
(ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Returns the raster touched by the specified model point.retrieveTouchedRaster
(MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Calls the methodretrieveTouchedRaster(int, int, ILcdGXYLayer, ILcdGXYView)
and returns the raster touched by the mouse event.protected double
retrieveValue
(ILcdPoint aModelPoint, ILcdGXYView aGXYView) Deprecated.Returns the raster value for the specified model point.void
setBackground
(Color newBackground) Deprecated.Sets the color of the label frames filling tonewBackground
.void
setFallBackOnNonVisibleLayers
(boolean aFallBackOnNonVisibleLayers) Deprecated.By default only visible layers will be scanned for terrain information.void
Deprecated.Sets theFont
for drawing the labels tonewFont
.void
setForeground
(Color newForeground) Deprecated.Sets the color of the labels tonewForeground
.void
setTextColor
(Color newTextColor) Deprecated.Sets the color of the text tonewTextColor
.void
setValueFormat
(ILcdFormatter aValueFormat) Deprecated.void
updateInternalProfile
(ILcdRaster[] aRasters, ILcdModelReference aModelReference, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, boolean aAppend) Deprecated.void
updateInternalProfile
(ILcdRaster[] aRasters, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint) Deprecated.void
updateInternalProfile
(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint) Deprecated.void
updateInternalProfile
(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, boolean aAppend) Deprecated.void
updateInternalProfile
(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, Point aStartPoint, MouseEvent aMouseEvent) Deprecated.
-
Constructor Details
-
TLcdTerrainProfileUtil
public TLcdTerrainProfileUtil()Deprecated.Default constructor.
-
-
Method Details
-
getProfile
Deprecated.Returns the internal profile.- Returns:
- the internal profile.
-
getProfileLength
public int getProfileLength()Deprecated.Returns the internal profile length.- Returns:
- the internal profile length.
-
resetInternalProfile
public void resetInternalProfile()Deprecated.Reset the internal profile. -
retrieveGXYLayer
Deprecated.Calls the methodretrieveGXYLayer(int, int, com.luciad.view.gxy.ILcdGXYView)
and returns the layer touched by the mouse event.- Parameters:
aMouseEvent
- The mouse event to use.aGXYView
- The view to retrieve the layer from.- Returns:
- the layer touched by the mouse event.
-
retrieveGXYLayer
Deprecated.Returns the layer touched by the given screen coordinates.- Parameters:
aXScreen
- The X coordinate of the screen point.aYScreen
- The Y coordinate of the screen point.aGXYView
- The view to retrieve the layer from.- Returns:
- the layer touched by the given screen coordinates.
-
retrieveValue
Deprecated.Returns the raster value for the specified model point.- Parameters:
aModelPoint
- The model point to use.aGXYView
- The view to retrieve the raster value from.- Returns:
- the raster value for the specified model point.
-
retrieveRasterFromMultiLevelRaster
protected ILcdRaster retrieveRasterFromMultiLevelRaster(ILcdMultilevelRaster aMultiLevelRaster, ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Returns the raster from the given multilevel raster containing the specified model point. Note that this implementation will return the DTED level 0 raster if it contains the given model point ornull
.- Parameters:
aMultiLevelRaster
- The multilevel raster to retrieve the raster from.aModelPoint
- The model point to use.aGXYLayer
- The layer which contains the multilevel raster.aGXYView
- The view which contains the multilevel raster.- Returns:
- the raster from the given multilevel raster containing the specified model point.
-
retrieveTouchedRaster
public ILcdRaster retrieveTouchedRaster(MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Calls the methodretrieveTouchedRaster(int, int, ILcdGXYLayer, ILcdGXYView)
and returns the raster touched by the mouse event.- Parameters:
aMouseEvent
- The mouse event to use.aGXYLayer
- The layer to retrieve the raster from.aGXYView
- The view which contains the given layer.- Returns:
- the raster touched by the mouse event.
-
retrieveTouchedRaster
public ILcdRaster retrieveTouchedRaster(int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Returns the raster touched by the given screen coordinates.- Parameters:
aXScreen
- The X coordinate of the screen point.aYScreen
- The Y coordinate of the screen point.aGXYLayer
- The layer to retrieve the raster from.aGXYView
- The view which contains the given layer.- Returns:
- the raster touched by the given screen coordinates.
-
retrieveTouchedRaster
protected ILcdRaster retrieveTouchedRaster(ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated.Returns the raster touched by the specified model point.- Parameters:
aModelPoint
- The model point to use.aGXYLayer
- The layer to retrieve the raster from.aGXYView
- The view which contains the given layer.- Returns:
- the raster touched by the specified model point.
-
modelPointSFCT
public void modelPointSFCT(MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) throws TLcdOutOfBoundsException Deprecated.Calls the methodmodelPointSFCT(int, int, ILcdGXYLayer, ILcdGXYView, ILcd3DEditablePoint)
and updates the given model point to the model point corresponding to the specified mouse event point.- Parameters:
aMouseEvent
- The mouse event to use.aGXYLayer
- The layer which contains the given mouse event point.aGXYView
- The view which contains the given mouse event point.aModelPoint
- The model point to update.- Throws:
TLcdOutOfBoundsException
- if the mouse event point cannot be converted.
-
modelPointSFCT
public void modelPointSFCT(int aXScreen, int aYScreen, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) throws TLcdOutOfBoundsException Deprecated.Updates the given model point to the model point corresponding to the specified screen coordinates.- Parameters:
aXScreen
- The X coordinate of the screen point.aYScreen
- The Y coordinate of the screen point.aGXYView
- The view which contains the given mouse event point.aModelPoint
- The model point to update.- Throws:
TLcdOutOfBoundsException
- if the mouse event point cannot be converted.
-
modelPointSFCT
public void modelPointSFCT(int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) throws TLcdOutOfBoundsException Deprecated.Updates the given model point to the model point corresponding to the specified screen coordinates.- Parameters:
aXScreen
- The X coordinate of the screen point.aYScreen
- The Y coordinate of the screen point.aGXYLayer
- The layer which contains the given mouse event point.aGXYView
- The view which contains the given mouse event point.aModelPoint
- The model point to update.- Throws:
TLcdOutOfBoundsException
- if the mouse event point cannot be converted.
-
updateInternalProfile
public void updateInternalProfile(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, Point aStartPoint, MouseEvent aMouseEvent) Deprecated. -
updateInternalProfile
public void updateInternalProfile(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint) Deprecated. -
updateInternalProfile
public void updateInternalProfile(ILcdRaster[] aRasters, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint) Deprecated. -
updateInternalProfile
public void updateInternalProfile(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, boolean aAppend) Deprecated. -
updateInternalProfile
public void updateInternalProfile(ILcdRaster[] aRasters, ILcdModelReference aModelReference, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, boolean aAppend) Deprecated. -
displayAltitude
Deprecated. -
retrieveAltitude
Deprecated. -
displayAltitude
protected void displayAltitude(double aValue, Graphics g, ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.Display on the givenGraphics
belonging to the givenILcdGXYView
, the given altitude at the given MouseEvent. This method uses the valueFormat property, if not null, to format aValue into the String that will be displayed. This method can be redefined. -
retrieveAltitude
public double retrieveAltitude(ILcdRaster aRaster, MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated. -
retrieveAltitude
public double retrieveAltitude(ILcdRaster aRaster, int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated. -
retrieveAltitude
public double retrieveAltitude(ILcdRaster aRaster, ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) Deprecated. -
drawGhost
public void drawGhost(int aStartX, int aStartY, int aEndX, int aEndY, Graphics aGraphics, ILcdGXYView aGXYView) Deprecated. -
drawGhost
public void drawGhost(ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, Graphics aGraphics, ILcdGXYView aGXYView) Deprecated. -
drawMarkWithAltitude
public void drawMarkWithAltitude(ILcdPoint aMarkModelPoint, double aMarkAltitude, int aMarkWidth, Color aForegroundColor, Color aBackgroundColor, boolean isGhostPointingUp, Graphics aGraphics, ILcdGXYView aGXYView) Deprecated. -
setFont
Deprecated.Sets theFont
for drawing the labels tonewFont
. -
getFont
Deprecated.Gets theFont
for drawing the labels. -
setForeground
Deprecated.Sets the color of the labels tonewForeground
. -
getForeground
Deprecated.Gets the color of the labels. -
setBackground
Deprecated.Sets the color of the label frames filling tonewBackground
. -
getBackground
Deprecated.Gets the color of the label frames filling. -
setTextColor
Deprecated.Sets the color of the text tonewTextColor
. -
getTextColor
Deprecated.Gets the color of the text. -
setFallBackOnNonVisibleLayers
public void setFallBackOnNonVisibleLayers(boolean aFallBackOnNonVisibleLayers) Deprecated.By default only visible layers will be scanned for terrain information. When set to true, also layers that are not visible will be scanned. Priority will still be given to the visible layers. -
isFallBackOnNonVisibleLayers
public boolean isFallBackOnNonVisibleLayers()Deprecated.Default is false.- See Also:
-
setValueFormat
Deprecated. -
getValueFormat
Deprecated. -
formatAltitude
Deprecated.
-
TLcdProfileGenerator
for generating profiles or anALcdTerrainElevationProvider
instance for retrieving elevations in general.