NASA World Wind

gov.nasa.worldwind.render
Class SegmentPlane

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

public class SegmentPlane
extends WWObjectImpl


Nested Class Summary
static class SegmentPlane.ControlPoint
           
protected static class SegmentPlane.StateKey
           
 
Field Summary
static String ALTIMETER
           
static int BOTTOM
           
static String CONTROL_POINT_LEADING_EDGE
           
static String CONTROL_POINT_LOWER_LEFT
           
static String CONTROL_POINT_LOWER_RIGHT
           
static String CONTROL_POINT_TOP_EDGE
           
static String CONTROL_POINT_UPPER_RIGHT
           
static String HORIZONTAL_AXIS_LABELS
           
static int LEFT
           
static String PLANE_ALTITUDES
           
static String PLANE_BACKGROUND
           
static String PLANE_BORDER
           
static String PLANE_GRID
           
static String PLANE_GRID_DIMENSIONS
           
static String PLANE_LOCATIONS
           
static String PLANE_OUTLINE
           
static int RIGHT
           
static String SEGMENT_BEGIN
           
static String SEGMENT_END
           
protected  long serialNumber
           
static int TOP
           
static String VERTICAL_AXIS_LABELS
           
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SegmentPlane()
           
 
Method Summary
protected  void addControlPoint(SegmentPlane.ControlPoint controlPoint)
           
protected  void addDefaultAttributes(Object key)
           
protected  void addDefaultControlPoint(Object key, double u, double v, boolean relativeToSurface)
           
 Plane computeInfinitePlane(Globe globe)
           
 BilinearInterpolator createPlaneInterpolator(Globe globe)
           
 SegmentPlaneAttributes getAttributes()
           
 int getBorderMask()
           
 List<SegmentPlane.ControlPoint> getControlPoints()
           
 double[] getGridCellDimensions()
           
 double[] getPlaneAltitudes()
           
 LatLon[] getPlaneLocations()
           
 int getPlaneOutlineMask()
           
 Position[] getSegmentPositions()
           
 Object getStateKey()
           
 boolean isVisible()
           
 void setAttributes(SegmentPlaneAttributes attributes)
           
 void setBorderMask(int mask)
           
 void setControlPoints(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
propertyChange
 
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
 

Field Detail

ALTIMETER

public static final String ALTIMETER
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

CONTROL_POINT_LEADING_EDGE

public static final String CONTROL_POINT_LEADING_EDGE
See Also:
Constant Field Values

CONTROL_POINT_LOWER_LEFT

public static final String CONTROL_POINT_LOWER_LEFT
See Also:
Constant Field Values

CONTROL_POINT_LOWER_RIGHT

public static final String CONTROL_POINT_LOWER_RIGHT
See Also:
Constant Field Values

CONTROL_POINT_TOP_EDGE

public static final String CONTROL_POINT_TOP_EDGE
See Also:
Constant Field Values

CONTROL_POINT_UPPER_RIGHT

public static final String CONTROL_POINT_UPPER_RIGHT
See Also:
Constant Field Values

HORIZONTAL_AXIS_LABELS

public static final String HORIZONTAL_AXIS_LABELS
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

PLANE_ALTITUDES

public static final String PLANE_ALTITUDES
See Also:
Constant Field Values

PLANE_BACKGROUND

public static final String PLANE_BACKGROUND
See Also:
Constant Field Values

PLANE_BORDER

public static final String PLANE_BORDER
See Also:
Constant Field Values

PLANE_GRID

public static final String PLANE_GRID
See Also:
Constant Field Values

PLANE_GRID_DIMENSIONS

public static final String PLANE_GRID_DIMENSIONS
See Also:
Constant Field Values

PLANE_LOCATIONS

public static final String PLANE_LOCATIONS
See Also:
Constant Field Values

PLANE_OUTLINE

public static final String PLANE_OUTLINE
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

SEGMENT_BEGIN

public static final String SEGMENT_BEGIN
See Also:
Constant Field Values

SEGMENT_END

public static final String SEGMENT_END
See Also:
Constant Field Values

serialNumber

protected long serialNumber

TOP

public static final int TOP
See Also:
Constant Field Values

VERTICAL_AXIS_LABELS

public static final String VERTICAL_AXIS_LABELS
See Also:
Constant Field Values
Constructor Detail

SegmentPlane

public SegmentPlane()
Method Detail

addControlPoint

protected void addControlPoint(SegmentPlane.ControlPoint controlPoint)

addDefaultAttributes

protected void addDefaultAttributes(Object key)

addDefaultControlPoint

protected void addDefaultControlPoint(Object key,
                                      double u,
                                      double v,
                                      boolean relativeToSurface)

computeInfinitePlane

public Plane computeInfinitePlane(Globe globe)

createPlaneInterpolator

public BilinearInterpolator createPlaneInterpolator(Globe globe)

getAttributes

public SegmentPlaneAttributes getAttributes()

getBorderMask

public int getBorderMask()

getControlPoints

public List<SegmentPlane.ControlPoint> getControlPoints()

getGridCellDimensions

public double[] getGridCellDimensions()

getPlaneAltitudes

public double[] getPlaneAltitudes()

getPlaneLocations

public LatLon[] getPlaneLocations()

getPlaneOutlineMask

public int getPlaneOutlineMask()

getSegmentPositions

public Position[] getSegmentPositions()

getStateKey

public Object getStateKey()

isVisible

public boolean isVisible()

setAttributes

public void setAttributes(SegmentPlaneAttributes attributes)

setBorderMask

public void setBorderMask(int mask)

setControlPoints

public void setControlPoints(Iterable<? extends SegmentPlane.ControlPoint> controlPoints)

setGridCellDimensions

public void setGridCellDimensions(double width,
                                  double height)

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 level
upperAltitude - the upper altitude limit, in meters relative to mean sea level

setPlaneLocations

public void setPlaneLocations(LatLon location1,
                              LatLon location2)

setPlaneOutlineMask

public void setPlaneOutlineMask(int mask)

setSegmentBeginPosition

public void setSegmentBeginPosition(Position position)

setSegmentEndPosition

public void setSegmentEndPosition(Position position)

setSegmentPositions

public void setSegmentPositions(Position position1,
                                Position position2)

setStateExpired

protected void setStateExpired()

setVisible

public void setVisible(boolean visible)

NASA World Wind