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 class
SARSegmentPlane.AltitudeLabelAttributes
static class
SARSegmentPlane.AxisLabelAttributes
static class
SARSegmentPlane.ControlPointLabelAttributes
static class
SARSegmentPlane.MessageLabelAttributes
static class
SARSegmentPlane.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 Angle
computeInitialHorizontalGap(WorldWindow wwd, SegmentPlane segmentPlane, Position position1, Position position2)
protected static double
computeInitialVerticalGap(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.String
formatAngle(java.lang.String format, Angle angle)
protected static java.lang.String
formatElevation(java.lang.String elevationFormat, double elevation)
java.lang.String
getAngleFormat()
SegmentPlaneAttributes
getAttributes()
java.lang.String
getElevationUnit()
double[]
getGridCellDimensions()
Position
getIntersectionPosition(Line line)
double
getObjectSize(java.lang.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(java.beans.PropertyChangeEvent e)
The property change listener for this instance.void
setAngleFormat(java.lang.String angleFormat)
void
setArmed(boolean armed)
void
setAttributes(SegmentPlaneAttributes attributes)
void
setElevationUnit(java.lang.String elevationUnit)
void
setGridCellDimensions(double width, double height)
void
setObjectVisible(java.lang.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.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:WWObjectImpl
The property change listener for this instance. Receives property change notifications that this instance has registered with other property change notifiers.- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Overrides:
propertyChange
in 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)
-
-