Class SARSegmentPlane
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwindx.applications.sar.SARSegmentPlane
-
- All Implemented Interfaces:
AVList,MessageListener,WWObject,java.beans.PropertyChangeListener,java.util.EventListener
public class SARSegmentPlane extends WWObjectImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSARSegmentPlane.AltitudeLabelAttributesstatic classSARSegmentPlane.AxisLabelAttributesstatic classSARSegmentPlane.ControlPointLabelAttributesstatic classSARSegmentPlane.MessageLabelAttributesstatic classSARSegmentPlane.SARLabelAttributes
-
Constructor Summary
Constructors Constructor Description SARSegmentPlane()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static double[]computeAltitudesToFitPositions(WorldWindow wwd, SegmentPlane segmentPlane, java.lang.Iterable<? extends Position> positions, boolean recallUserDefinedVGap)double[]computeAltitudesToFitPositions(java.lang.Iterable<? extends Position> positions)protected static AnglecomputeInitialHorizontalGap(WorldWindow wwd, SegmentPlane segmentPlane, Position position1, Position position2)protected static doublecomputeInitialVerticalGap(WorldWindow wwd, SegmentPlane segmentPlane, java.lang.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 java.lang.StringformatAngle(java.lang.String format, Angle angle)protected static java.lang.StringformatElevation(java.lang.String elevationFormat, double elevation)java.lang.StringgetAngleFormat()SegmentPlaneAttributesgetAttributes()java.lang.StringgetElevationUnit()double[]getGridCellDimensions()PositiongetIntersectionPosition(Line line)doublegetObjectSize(java.lang.String key, Vec4 point)double[]getPlaneAltitudes()LatLon[]getPlaneLocations()Position[]getSegmentPositions()protected static doublegetSurfaceElevationAt(WorldWindow wwd, Angle latitude, Angle longitude)WorldWindowgetWorldWindow()protected voidinitSegmentPlane()booleanisArmed()booleanisSnapToGrid()booleanisVisible()voidpropertyChange(java.beans.PropertyChangeEvent e)The property change listener for this instance.voidsetAngleFormat(java.lang.String angleFormat)voidsetArmed(boolean armed)voidsetAttributes(SegmentPlaneAttributes attributes)voidsetElevationUnit(java.lang.String elevationUnit)voidsetGridCellDimensions(double width, double height)voidsetObjectVisible(java.lang.String key, boolean geometryVisible, boolean labelVisible)voidsetPlaneAltitudes(double lowerAltitude, double upperAltitude)voidsetPlaneLocations(LatLon location1, LatLon location2)voidsetSegmentPositions(Position position1, Position position2)voidsetSnapToGrid(boolean snapToGrid)voidsetVisible(boolean visible)voidsetWorldWindow(WorldWindow wwd)-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, 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
-
-
-
-
Method Detail
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
isArmed
public boolean isArmed()
-
setArmed
public void setArmed(boolean armed)
-
isSnapToGrid
public boolean isSnapToGrid()
-
setSnapToGrid
public void setSnapToGrid(boolean snapToGrid)
-
getGridCellDimensions
public double[] getGridCellDimensions()
-
setGridCellDimensions
public void setGridCellDimensions(double width, double height)
-
getAngleFormat
public java.lang.String getAngleFormat()
-
setAngleFormat
public void setAngleFormat(java.lang.String angleFormat)
-
getElevationUnit
public java.lang.String getElevationUnit()
-
setElevationUnit
public void setElevationUnit(java.lang.String elevationUnit)
-
getWorldWindow
public WorldWindow getWorldWindow()
-
setWorldWindow
public void setWorldWindow(WorldWindow wwd)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
Description copied from class:WWObjectImplThe property change listener for this instance. Receives property change notifications that this instance has registered with other property change notifiers.- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Overrides:
propertyChangein classWWObjectImpl- Parameters:
e- the event
-
getSegmentPositions
public Position[] getSegmentPositions()
-
getPlaneAltitudes
public double[] getPlaneAltitudes()
-
setPlaneAltitudes
public void setPlaneAltitudes(double lowerAltitude, double upperAltitude)
-
getPlaneLocations
public LatLon[] getPlaneLocations()
-
getAttributes
public SegmentPlaneAttributes getAttributes()
-
setAttributes
public void setAttributes(SegmentPlaneAttributes attributes)
-
setObjectVisible
public void setObjectVisible(java.lang.String key, boolean geometryVisible, boolean labelVisible)
-
computeAltitudesToFitPositions
public double[] computeAltitudesToFitPositions(java.lang.Iterable<? extends Position> positions)
-
computeLocationsToFitPositions
public LatLon[] computeLocationsToFitPositions(Position position1, Position position2)
-
getObjectSize
public double getObjectSize(java.lang.String key, Vec4 point)
-
initSegmentPlane
protected void initSegmentPlane()
-
formatAngle
protected static java.lang.String formatAngle(java.lang.String format, Angle angle)
-
formatElevation
protected static java.lang.String formatElevation(java.lang.String elevationFormat, double elevation)
-
getSurfaceElevationAt
protected static double getSurfaceElevationAt(WorldWindow wwd, Angle latitude, Angle longitude)
-
computeAltitudesToFitPositions
protected static double[] computeAltitudesToFitPositions(WorldWindow wwd, SegmentPlane segmentPlane, java.lang.Iterable<? extends Position> positions, boolean recallUserDefinedVGap)
-
computeLocationsToFitPositions
protected static LatLon[] computeLocationsToFitPositions(WorldWindow wwd, SegmentPlane segmentPlane, Position position1, Position position2, boolean recallUserDefinedHGap)
-
computeInitialVerticalGap
protected static double computeInitialVerticalGap(WorldWindow wwd, SegmentPlane segmentPlane, java.lang.Iterable<? extends Position> positions)
-
computeInitialHorizontalGap
protected static Angle computeInitialHorizontalGap(WorldWindow wwd, SegmentPlane segmentPlane, Position position1, Position position2)
-
-