Class TLcdTerrainProfileUtil

java.lang.Object
com.luciad.tea.TLcdTerrainProfileUtil

public class TLcdTerrainProfileUtil extends Object
Deprecated.
This class should not be used anymore. Use TLcdProfileGenerator for generating profiles or an ALcdTerrainElevationProvider instance for retrieving elevations in general.
A utility class with the facility to extract height values from raster data.
See Also:
  • Constructor Details

    • TLcdTerrainProfileUtil

      public TLcdTerrainProfileUtil()
      Deprecated.
      Default constructor.
  • Method Details

    • getProfile

      public ILcdPoint[] 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

      public ILcdGXYLayer retrieveGXYLayer(MouseEvent aMouseEvent, ILcdGXYView aGXYView)
      Deprecated.
      Calls the method retrieveGXYLayer(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

      public ILcdGXYLayer retrieveGXYLayer(int aXScreen, int aYScreen, ILcdGXYView aGXYView)
      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

      protected double retrieveValue(ILcdPoint aModelPoint, ILcdGXYView aGXYView)
      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 or null.
      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 method retrieveTouchedRaster(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 method modelPointSFCT(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

      public void displayAltitude(Graphics aGraphics, ILcdGXYView aGXYView, MouseEvent aMouseEvent)
      Deprecated.
    • retrieveAltitude

      public double retrieveAltitude(int aXScreen, int aYScreen, ILcdGXYView aGXYView)
      Deprecated.
    • displayAltitude

      protected void displayAltitude(double aValue, Graphics g, ILcdGXYView aGXYView, MouseEvent aMouseEvent)
      Deprecated.
      Display on the given Graphics belonging to the given ILcdGXYView, 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

      public void setFont(Font newFont)
      Deprecated.
      Sets the Font for drawing the labels to newFont.
    • getFont

      public Font getFont()
      Deprecated.
      Gets the Font for drawing the labels.
    • setForeground

      public void setForeground(Color newForeground)
      Deprecated.
      Sets the color of the labels to newForeground.
    • getForeground

      public Color getForeground()
      Deprecated.
      Gets the color of the labels.
    • setBackground

      public void setBackground(Color newBackground)
      Deprecated.
      Sets the color of the label frames filling to newBackground.
    • getBackground

      public Color getBackground()
      Deprecated.
      Gets the color of the label frames filling.
    • setTextColor

      public void setTextColor(Color newTextColor)
      Deprecated.
      Sets the color of the text to newTextColor.
    • getTextColor

      public Color 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

      public void setValueFormat(ILcdFormatter aValueFormat)
      Deprecated.
    • getValueFormat

      public ILcdFormatter getValueFormat()
      Deprecated.
    • formatAltitude

      protected String formatAltitude(double aAltitude)
      Deprecated.