Class SegmentPlane
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwindx.applications.sar.segmentplane.SegmentPlane
-
- All Implemented Interfaces:
AVList
,MessageListener
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class SegmentPlane extends WWObjectImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SegmentPlane.ControlPoint
protected static class
SegmentPlane.StateKey
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALTIMETER
static int
BOTTOM
static java.lang.String
CONTROL_POINT_LEADING_EDGE
static java.lang.String
CONTROL_POINT_LOWER_LEFT
static java.lang.String
CONTROL_POINT_LOWER_RIGHT
static java.lang.String
CONTROL_POINT_TOP_EDGE
static java.lang.String
CONTROL_POINT_UPPER_RIGHT
static java.lang.String
HORIZONTAL_AXIS_LABELS
static int
LEFT
static java.lang.String
PLANE_ALTITUDES
static java.lang.String
PLANE_BACKGROUND
static java.lang.String
PLANE_BORDER
static java.lang.String
PLANE_GRID
static java.lang.String
PLANE_GRID_DIMENSIONS
static java.lang.String
PLANE_LOCATIONS
static java.lang.String
PLANE_OUTLINE
static int
RIGHT
static java.lang.String
SEGMENT_BEGIN
static java.lang.String
SEGMENT_END
protected long
serialNumber
static int
TOP
static java.lang.String
VERTICAL_AXIS_LABELS
-
Constructor Summary
Constructors Constructor Description SegmentPlane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addControlPoint(SegmentPlane.ControlPoint controlPoint)
protected void
addDefaultAttributes(java.lang.Object key)
protected void
addDefaultControlPoint(java.lang.Object key, double u, double v, boolean relativeToSurface, java.lang.String shapeType)
Plane
computeInfinitePlane(Globe globe)
BilinearInterpolator
createPlaneInterpolator(Globe globe)
SegmentPlaneAttributes
getAttributes()
int
getBorderMask()
java.util.List<SegmentPlane.ControlPoint>
getControlPoints()
double[]
getGridCellDimensions()
double[]
getPlaneAltitudes()
LatLon[]
getPlaneLocations()
int
getPlaneOutlineMask()
Position[]
getSegmentPositions()
java.lang.Object
getStateKey()
boolean
isVisible()
void
setAttributes(SegmentPlaneAttributes attributes)
void
setBorderMask(int mask)
void
setControlPoints(java.lang.Iterable<? extends SegmentPlane.ControlPoint> controlPoints)
void
setGridCellDimensions(double width, double height)
void
setPlaneAltitudes(double lowerAltitude, double upperAltitude)
Set the upper and lower altitude limits.void
setPlaneLocations(LatLon location1, LatLon location2)
void
setPlaneOutlineMask(int mask)
void
setSegmentBeginPosition(Position position)
void
setSegmentEndPosition(Position position)
void
setSegmentPositions(Position position1, Position position2)
protected void
setStateExpired()
void
setVisible(boolean visible)
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
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
-
-
-
-
Field Detail
-
ALTIMETER
public static final java.lang.String ALTIMETER
- See Also:
- Constant Field Values
-
CONTROL_POINT_LOWER_LEFT
public static final java.lang.String CONTROL_POINT_LOWER_LEFT
- See Also:
- Constant Field Values
-
CONTROL_POINT_LOWER_RIGHT
public static final java.lang.String CONTROL_POINT_LOWER_RIGHT
- See Also:
- Constant Field Values
-
CONTROL_POINT_UPPER_RIGHT
public static final java.lang.String CONTROL_POINT_UPPER_RIGHT
- See Also:
- Constant Field Values
-
CONTROL_POINT_TOP_EDGE
public static final java.lang.String CONTROL_POINT_TOP_EDGE
- See Also:
- Constant Field Values
-
CONTROL_POINT_LEADING_EDGE
public static final java.lang.String CONTROL_POINT_LEADING_EDGE
- See Also:
- Constant Field Values
-
HORIZONTAL_AXIS_LABELS
public static final java.lang.String HORIZONTAL_AXIS_LABELS
- See Also:
- Constant Field Values
-
PLANE_ALTITUDES
public static final java.lang.String PLANE_ALTITUDES
- See Also:
- Constant Field Values
-
PLANE_BACKGROUND
public static final java.lang.String PLANE_BACKGROUND
- See Also:
- Constant Field Values
-
PLANE_BORDER
public static final java.lang.String PLANE_BORDER
- See Also:
- Constant Field Values
-
PLANE_GRID
public static final java.lang.String PLANE_GRID
- See Also:
- Constant Field Values
-
PLANE_GRID_DIMENSIONS
public static final java.lang.String PLANE_GRID_DIMENSIONS
- See Also:
- Constant Field Values
-
PLANE_LOCATIONS
public static final java.lang.String PLANE_LOCATIONS
- See Also:
- Constant Field Values
-
PLANE_OUTLINE
public static final java.lang.String PLANE_OUTLINE
- See Also:
- Constant Field Values
-
SEGMENT_BEGIN
public static final java.lang.String SEGMENT_BEGIN
- See Also:
- Constant Field Values
-
SEGMENT_END
public static final java.lang.String SEGMENT_END
- See Also:
- Constant Field Values
-
VERTICAL_AXIS_LABELS
public static final java.lang.String VERTICAL_AXIS_LABELS
- See Also:
- Constant Field Values
-
TOP
public static final int TOP
- See Also:
- Constant Field Values
-
BOTTOM
public static final int BOTTOM
- See Also:
- Constant Field Values
-
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
-
serialNumber
protected long serialNumber
-
-
Method Detail
-
addDefaultAttributes
protected void addDefaultAttributes(java.lang.Object key)
-
addDefaultControlPoint
protected void addDefaultControlPoint(java.lang.Object key, double u, double v, boolean relativeToSurface, java.lang.String shapeType)
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
getAttributes
public SegmentPlaneAttributes getAttributes()
-
setAttributes
public void setAttributes(SegmentPlaneAttributes attributes)
-
getPlaneAltitudes
public double[] getPlaneAltitudes()
-
setPlaneAltitudes
public void setPlaneAltitudes(double lowerAltitude, double upperAltitude)
Set the upper and lower altitude limits.- Parameters:
lowerAltitude
- the lower altitude limit, in meters relative to mean sea levelupperAltitude
- the upper altitude limit, in meters relative to mean sea level
-
getPlaneLocations
public LatLon[] getPlaneLocations()
-
getGridCellDimensions
public double[] getGridCellDimensions()
-
setGridCellDimensions
public void setGridCellDimensions(double width, double height)
-
getPlaneOutlineMask
public int getPlaneOutlineMask()
-
setPlaneOutlineMask
public void setPlaneOutlineMask(int mask)
-
getBorderMask
public int getBorderMask()
-
setBorderMask
public void setBorderMask(int mask)
-
getSegmentPositions
public Position[] getSegmentPositions()
-
setSegmentBeginPosition
public void setSegmentBeginPosition(Position position)
-
setSegmentEndPosition
public void setSegmentEndPosition(Position position)
-
getControlPoints
public java.util.List<SegmentPlane.ControlPoint> getControlPoints()
-
setControlPoints
public void setControlPoints(java.lang.Iterable<? extends SegmentPlane.ControlPoint> controlPoints)
-
addControlPoint
protected void addControlPoint(SegmentPlane.ControlPoint controlPoint)
-
getStateKey
public java.lang.Object getStateKey()
-
createPlaneInterpolator
public BilinearInterpolator createPlaneInterpolator(Globe globe)
-
setStateExpired
protected void setStateExpired()
-
-