NASA World Wind

gov.nasa.worldwind.applications.sar
Class SARSegmentPlane

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.applications.sar.SARSegmentPlane
All Implemented Interfaces:
AVList, WWObject, PropertyChangeListener, EventListener

public class SARSegmentPlane
extends WWObjectImpl


Nested Class Summary
static class SARSegmentPlane.AltitudeLabelAttributes
           
static class SARSegmentPlane.AxisLabelAttributes
           
static class SARSegmentPlane.ControlPointLabelAttributes
           
static class SARSegmentPlane.MessageLabelAttributes
           
static class SARSegmentPlane.SARLabelAttributes
           
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SARSegmentPlane()
           
 
Method Summary
 double[] computeAltitudesToFitPositions(Iterable<? extends Position> positions)
           
protected static double[] computeAltitudesToFitPositions(WorldWindow wwd, SegmentPlane segmentPlane, Iterable<? extends Position> positions, boolean recallUserDefinedVGap)
           
protected static Angle computeInitialHorizontalGap(WorldWindow wwd, SegmentPlane segmentPlane, Position position1, Position position2)
           
protected static double computeInitialVerticalGap(WorldWindow wwd, SegmentPlane segmentPlane, Iterable<? extends Position> positions)
           
 LatLon[] computeLocationsToFitPositions(Position position1, Position position2)
           
protected static LatLon[] computeLocationsToFitPositions(WorldWindow wwd, SegmentPlane segmentPlane, Position position1, Position position2, boolean recallUserDefinedHGap)
           
protected static String formatAngle(String format, Angle angle)
           
protected static String formatElevation(String elevationFormat, double elevation)
           
 String getAngleFormat()
           
 SegmentPlaneAttributes getAttributes()
           
 String getElevationUnit()
           
 double[] getGridCellDimensions()
           
 Position getIntersectionPosition(Line line)
           
 double getObjectSize(String key, Vec4 point)
           
 double[] getPlaneAltitudes()
           
 LatLon[] getPlaneLocations()
           
 Position[] getSegmentPositions()
           
protected static double getSurfaceElevationAt(WorldWindow wwd, Angle latitude, Angle longitude)
           
 WorldWindow getWorldWindow()
           
protected  void initSegmentPlane()
           
 boolean isArmed()
           
 boolean isSnapToGrid()
           
 boolean isVisible()
           
 void propertyChange(PropertyChangeEvent e)
          The property change listener for this instance.
 void setAngleFormat(String angleFormat)
           
 void setArmed(boolean armed)
           
 void setAttributes(SegmentPlaneAttributes attributes)
           
 void setElevationUnit(String elevationUnit)
           
 void setGridCellDimensions(double width, double height)
           
 void setObjectVisible(String key, boolean geometryVisible, boolean labelVisible)
           
 void setPlaneAltitudes(double lowerAltitude, double upperAltitude)
           
 void setPlaneLocations(LatLon location1, LatLon location2)
           
 void setSegmentPositions(Position position1, Position position2)
           
 void setSnapToGrid(boolean snapToGrid)
           
 void setVisible(boolean visible)
           
 void setWorldWindow(WorldWindow wwd)
           
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Constructor Detail

SARSegmentPlane

public SARSegmentPlane()
Method Detail

computeAltitudesToFitPositions

public double[] computeAltitudesToFitPositions(Iterable<? extends Position> positions)

computeAltitudesToFitPositions

protected static double[] computeAltitudesToFitPositions(WorldWindow wwd,
                                                         SegmentPlane segmentPlane,
                                                         Iterable<? extends Position> positions,
                                                         boolean recallUserDefinedVGap)

computeInitialHorizontalGap

protected static Angle computeInitialHorizontalGap(WorldWindow wwd,
                                                   SegmentPlane segmentPlane,
                                                   Position position1,
                                                   Position position2)

computeInitialVerticalGap

protected static double computeInitialVerticalGap(WorldWindow wwd,
                                                  SegmentPlane segmentPlane,
                                                  Iterable<? extends Position> positions)

computeLocationsToFitPositions

public LatLon[] computeLocationsToFitPositions(Position position1,
                                               Position position2)

computeLocationsToFitPositions

protected static LatLon[] computeLocationsToFitPositions(WorldWindow wwd,
                                                         SegmentPlane segmentPlane,
                                                         Position position1,
                                                         Position position2,
                                                         boolean recallUserDefinedHGap)

formatAngle

protected static String formatAngle(String format,
                                    Angle angle)

formatElevation

protected static String formatElevation(String elevationFormat,
                                        double elevation)

getAngleFormat

public String getAngleFormat()

getAttributes

public SegmentPlaneAttributes getAttributes()

getElevationUnit

public String getElevationUnit()

getGridCellDimensions

public double[] getGridCellDimensions()

getIntersectionPosition

public Position getIntersectionPosition(Line line)

getObjectSize

public double getObjectSize(String key,
                            Vec4 point)

getPlaneAltitudes

public double[] getPlaneAltitudes()

getPlaneLocations

public LatLon[] getPlaneLocations()

getSegmentPositions

public Position[] getSegmentPositions()

getSurfaceElevationAt

protected static double getSurfaceElevationAt(WorldWindow wwd,
                                              Angle latitude,
                                              Angle longitude)

getWorldWindow

public WorldWindow getWorldWindow()

initSegmentPlane

protected void initSegmentPlane()

isArmed

public boolean isArmed()

isSnapToGrid

public boolean isSnapToGrid()

isVisible

public boolean isVisible()

propertyChange

public void propertyChange(PropertyChangeEvent e)
Description copied from class: WWObjectImpl
The property change listener for this instance. Recieves property change notifications that this instance has registered with other proprty change notifiers.

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class WWObjectImpl
Parameters:
e - the event

setAngleFormat

public void setAngleFormat(String angleFormat)

setArmed

public void setArmed(boolean armed)

setAttributes

public void setAttributes(SegmentPlaneAttributes attributes)

setElevationUnit

public void setElevationUnit(String elevationUnit)

setGridCellDimensions

public void setGridCellDimensions(double width,
                                  double height)

setObjectVisible

public void setObjectVisible(String key,
                             boolean geometryVisible,
                             boolean labelVisible)

setPlaneAltitudes

public void setPlaneAltitudes(double lowerAltitude,
                              double upperAltitude)

setPlaneLocations

public void setPlaneLocations(LatLon location1,
                              LatLon location2)

setSegmentPositions

public void setSegmentPositions(Position position1,
                                Position position2)

setSnapToGrid

public void setSnapToGrid(boolean snapToGrid)

setVisible

public void setVisible(boolean visible)

setWorldWindow

public void setWorldWindow(WorldWindow wwd)

NASA World Wind