NASA World Wind

gov.nasa.worldwind.applications.sar.render
Class TrackSegmentInfo

java.lang.Object
  extended by gov.nasa.worldwind.applications.sar.render.TrackSegmentInfo
All Implemented Interfaces:
Renderable

public class TrackSegmentInfo
extends Object
implements Renderable


Nested Class Summary
protected static class TrackSegmentInfo.OrderedText
           
 
Field Summary
protected  Object angleFormat
           
protected  Object elevationUnit
           
protected  boolean enabled
           
protected  int segmentIndex
           
protected  Position segmentPosition
           
protected  SARTrack track
           
 
Constructor Summary
TrackSegmentInfo()
           
 
Method Summary
protected  double computeSurfaceElevation(DrawContext dc, Angle latitude, Angle longitude)
           
protected  void doRender(DrawContext dc)
           
protected  void drawHeadingAltitudeLabel(DrawContext dc, int x, int y, Font font, Color color, Angle heading, Position pos)
           
protected  void drawLatLonLabel(DrawContext dc, int x, int y, Font font, Color color, Position pos)
           
protected  void drawSegmentLabel(DrawContext dc, SARTrack track, int index)
           
protected  void drawSegmentPositionLabel(DrawContext dc, SARTrack track, int index, Position pos)
           
protected  void drawText(DrawContext dc, String text, int x, int y, Font font, Color color, double distanceFromEye)
           
protected  String formatAltitude(double altitude)
           
protected  String formatAngle(Angle angle)
           
 Object getAngleFormat()
           
 Object getElevationUnit()
           
 int getSegmentIndex()
           
 Position getSegmentPosition()
           
 SARTrack getTrack()
           
 boolean isEnabled()
           
 void render(DrawContext dc)
          Causes this Renderable to render itself using the DrawContext provided.
 void setAngleFormat(Object angleFormat)
           
 void setElevationUnit(Object elevationUnit)
           
 void setEnabled(boolean enable)
           
 void setSegmentIndex(int index)
           
 void setSegmentPosition(Position pos)
           
 void setTrack(SARTrack track)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

angleFormat

protected Object angleFormat

elevationUnit

protected Object elevationUnit

enabled

protected boolean enabled

segmentIndex

protected int segmentIndex

segmentPosition

protected Position segmentPosition

track

protected SARTrack track
Constructor Detail

TrackSegmentInfo

public TrackSegmentInfo()
Method Detail

computeSurfaceElevation

protected double computeSurfaceElevation(DrawContext dc,
                                         Angle latitude,
                                         Angle longitude)

doRender

protected void doRender(DrawContext dc)

drawHeadingAltitudeLabel

protected void drawHeadingAltitudeLabel(DrawContext dc,
                                        int x,
                                        int y,
                                        Font font,
                                        Color color,
                                        Angle heading,
                                        Position pos)

drawLatLonLabel

protected void drawLatLonLabel(DrawContext dc,
                               int x,
                               int y,
                               Font font,
                               Color color,
                               Position pos)

drawSegmentLabel

protected void drawSegmentLabel(DrawContext dc,
                                SARTrack track,
                                int index)

drawSegmentPositionLabel

protected void drawSegmentPositionLabel(DrawContext dc,
                                        SARTrack track,
                                        int index,
                                        Position pos)

drawText

protected void drawText(DrawContext dc,
                        String text,
                        int x,
                        int y,
                        Font font,
                        Color color,
                        double distanceFromEye)

formatAltitude

protected String formatAltitude(double altitude)

formatAngle

protected String formatAngle(Angle angle)

getAngleFormat

public Object getAngleFormat()

getElevationUnit

public Object getElevationUnit()

getSegmentIndex

public int getSegmentIndex()

getSegmentPosition

public Position getSegmentPosition()

getTrack

public SARTrack getTrack()

isEnabled

public boolean isEnabled()

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the DrawContext provided. The DrawContext provides the elevation model, openGl instance, globe and other information required for drawing. It is recommended that the DrawContext is non-null as most implementations do not support null DrawContexts.

Specified by:
render in interface Renderable
Parameters:
dc - the DrawContext to be used
See Also:
DrawContext

setAngleFormat

public void setAngleFormat(Object angleFormat)

setElevationUnit

public void setElevationUnit(Object elevationUnit)

setEnabled

public void setEnabled(boolean enable)

setSegmentIndex

public void setSegmentIndex(int index)

setSegmentPosition

public void setSegmentPosition(Position pos)

setTrack

public void setTrack(SARTrack track)

NASA World Wind