TLcdProfileGenerator
for generating profiles or
an ALcdTerrainElevationProvider
instance for retrieving elevations in general.public class TLcdTerrainProfileUtil extends Object
TLcdProfileGenerator
,
ALcdTerrainElevationProvider
Constructor and Description |
---|
TLcdTerrainProfileUtil()
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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. |
void |
displayAltitude(Graphics aGraphics,
ILcdGXYView aGXYView,
MouseEvent aMouseEvent)
Deprecated.
|
void |
drawGhost(ILcdPoint aStartModelPoint,
ILcdPoint aEndModelPoint,
Graphics aGraphics,
ILcdGXYView aGXYView)
Deprecated.
|
void |
drawGhost(int aStartX,
int aStartY,
int aEndX,
int aEndY,
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.
|
Color |
getBackground()
Deprecated.
Gets the color of the label frames filling.
|
Font |
getFont()
Deprecated.
Gets the
Font for drawing the labels. |
Color |
getForeground()
Deprecated.
Gets the color of the labels.
|
ILcdPoint[] |
getProfile()
Deprecated.
Returns the internal profile.
|
int |
getProfileLength()
Deprecated.
Returns the internal profile length.
|
Color |
getTextColor()
Deprecated.
Gets the color of the text.
|
ILcdFormatter |
getValueFormat()
Deprecated.
|
boolean |
isFallBackOnNonVisibleLayers()
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 method
modelPointSFCT(int, int, ILcdGXYLayer, ILcdGXYView,
ILcd3DEditablePoint) and updates the given model point to the model point
corresponding to the specified mouse event point. |
void |
resetInternalProfile()
Deprecated.
Reset the internal profile.
|
double |
retrieveAltitude(ILcdRaster aRaster,
ILcdPoint aModelPoint,
ILcdGXYLayer aGXYLayer,
ILcdGXYView aGXYView)
Deprecated.
|
double |
retrieveAltitude(ILcdRaster aRaster,
int aXScreen,
int aYScreen,
ILcdGXYLayer aGXYLayer,
ILcdGXYView aGXYView)
Deprecated.
|
double |
retrieveAltitude(ILcdRaster aRaster,
MouseEvent aMouseEvent,
ILcdGXYLayer aGXYLayer,
ILcdGXYView aGXYView)
Deprecated.
|
double |
retrieveAltitude(int aXScreen,
int aYScreen,
ILcdGXYView aGXYView)
Deprecated.
|
ILcdGXYLayer |
retrieveGXYLayer(int aXScreen,
int aYScreen,
ILcdGXYView aGXYView)
Deprecated.
Returns the layer touched by the given screen coordinates.
|
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. |
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.
|
protected ILcdRaster |
retrieveTouchedRaster(ILcdPoint aModelPoint,
ILcdGXYLayer aGXYLayer,
ILcdGXYView aGXYView)
Deprecated.
Returns the raster touched by the specified model point.
|
ILcdRaster |
retrieveTouchedRaster(int aXScreen,
int aYScreen,
ILcdGXYLayer aGXYLayer,
ILcdGXYView aGXYView)
Deprecated.
Returns the raster touched by the given screen coordinates.
|
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. |
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 to
newBackground . |
void |
setFallBackOnNonVisibleLayers(boolean aFallBackOnNonVisibleLayers)
Deprecated.
By default only visible layers will be scanned for terrain information.
|
void |
setFont(Font newFont)
Deprecated.
Sets the
Font for drawing the labels to newFont . |
void |
setForeground(Color newForeground)
Deprecated.
Sets the color of the labels to
newForeground . |
void |
setTextColor(Color newTextColor)
Deprecated.
Sets the color of the text to
newTextColor . |
void |
setValueFormat(ILcdFormatter aValueFormat)
Deprecated.
|
void |
updateInternalProfile(ILcdRaster[] aRasters,
ILcdGXYView aGXYView,
ILcdPoint aStartModelPoint,
ILcdPoint aEndModelPoint)
Deprecated.
|
void |
updateInternalProfile(ILcdRaster[] aRasters,
ILcdModelReference aModelReference,
ILcdGXYView aGXYView,
ILcdPoint aStartModelPoint,
ILcdPoint aEndModelPoint,
boolean aAppend)
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.
|
public TLcdTerrainProfileUtil()
public ILcdPoint[] getProfile()
public int getProfileLength()
public void resetInternalProfile()
public ILcdGXYLayer retrieveGXYLayer(MouseEvent aMouseEvent, ILcdGXYView aGXYView)
retrieveGXYLayer(int, int, com.luciad.view.gxy.ILcdGXYView)
and returns the layer touched by the mouse event.aMouseEvent
- The mouse event to use.aGXYView
- The view to retrieve the layer from.public ILcdGXYLayer retrieveGXYLayer(int aXScreen, int aYScreen, ILcdGXYView aGXYView)
aXScreen
- The X coordinate of the screen point.aYScreen
- The Y coordinate of the screen point.aGXYView
- The view to retrieve the layer from.protected double retrieveValue(ILcdPoint aModelPoint, ILcdGXYView aGXYView)
aModelPoint
- The model point to use.aGXYView
- The view to retrieve the raster value from.protected ILcdRaster retrieveRasterFromMultiLevelRaster(ILcdMultilevelRaster aMultiLevelRaster, ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
null
.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.public ILcdRaster retrieveTouchedRaster(MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
retrieveTouchedRaster(int, int, ILcdGXYLayer, ILcdGXYView)
and returns the raster touched by the mouse event.aMouseEvent
- The mouse event to use.aGXYLayer
- The layer to retrieve the raster from.aGXYView
- The view which contains the given layer.public ILcdRaster retrieveTouchedRaster(int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
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.protected ILcdRaster retrieveTouchedRaster(ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
aModelPoint
- The model point to use.aGXYLayer
- The layer to retrieve the raster from.aGXYView
- The view which contains the given layer.public void modelPointSFCT(MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) throws TLcdOutOfBoundsException
modelPointSFCT(int, int, ILcdGXYLayer, ILcdGXYView,
ILcd3DEditablePoint)
and updates the given model point to the model point
corresponding to the specified mouse event point.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.TLcdOutOfBoundsException
- if the mouse event point cannot be converted.public void modelPointSFCT(int aXScreen, int aYScreen, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) throws TLcdOutOfBoundsException
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.TLcdOutOfBoundsException
- if the mouse event point cannot be converted.public void modelPointSFCT(int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcd3DEditablePoint aModelPoint) throws TLcdOutOfBoundsException
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.TLcdOutOfBoundsException
- if the mouse event point cannot be converted.public void updateInternalProfile(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, Point aStartPoint, MouseEvent aMouseEvent)
public void updateInternalProfile(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint)
public void updateInternalProfile(ILcdRaster[] aRasters, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint)
public void updateInternalProfile(ILcdRaster aRaster, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, boolean aAppend)
public void updateInternalProfile(ILcdRaster[] aRasters, ILcdModelReference aModelReference, ILcdGXYView aGXYView, ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, boolean aAppend)
public void displayAltitude(Graphics aGraphics, ILcdGXYView aGXYView, MouseEvent aMouseEvent)
public double retrieveAltitude(int aXScreen, int aYScreen, ILcdGXYView aGXYView)
protected void displayAltitude(double aValue, Graphics g, ILcdGXYView aGXYView, MouseEvent aMouseEvent)
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.public double retrieveAltitude(ILcdRaster aRaster, MouseEvent aMouseEvent, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
public double retrieveAltitude(ILcdRaster aRaster, int aXScreen, int aYScreen, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
public double retrieveAltitude(ILcdRaster aRaster, ILcdPoint aModelPoint, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView)
public void drawGhost(int aStartX, int aStartY, int aEndX, int aEndY, Graphics aGraphics, ILcdGXYView aGXYView)
public void drawGhost(ILcdPoint aStartModelPoint, ILcdPoint aEndModelPoint, Graphics aGraphics, ILcdGXYView aGXYView)
public void drawMarkWithAltitude(ILcdPoint aMarkModelPoint, double aMarkAltitude, int aMarkWidth, Color aForegroundColor, Color aBackgroundColor, boolean isGhostPointingUp, Graphics aGraphics, ILcdGXYView aGXYView)
public void setFont(Font newFont)
Font
for drawing the labels to newFont
.public Font getFont()
Font
for drawing the labels.public void setForeground(Color newForeground)
newForeground
.public Color getForeground()
public void setBackground(Color newBackground)
newBackground
.public Color getBackground()
public void setTextColor(Color newTextColor)
newTextColor
.public Color getTextColor()
public void setFallBackOnNonVisibleLayers(boolean aFallBackOnNonVisibleLayers)
public boolean isFallBackOnNonVisibleLayers()
setFallBackOnNonVisibleLayers( boolean )
public void setValueFormat(ILcdFormatter aValueFormat)
public ILcdFormatter getValueFormat()
protected String formatAltitude(double aAltitude)