NASA World Wind

gov.nasa.worldwind.render
Class ContourLinePolygon

java.lang.Object
  extended by gov.nasa.worldwind.render.ContourLine
      extended by gov.nasa.worldwind.render.ContourLinePolygon
All Implemented Interfaces:
Renderable

public class ContourLinePolygon
extends ContourLine

Renders a contour line on the terrain at a given elevation. The controur line extent is bounded by a polygon defined by a list of LatLon.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.ContourLine
expired, expiryTime, globeStateKey, maxConnectingDistance, maxExpiryTime, minExpiryTime, rand
 
Constructor Summary
ContourLinePolygon()
           
ContourLinePolygon(double elevation)
           
ContourLinePolygon(double elevation, ArrayList<? extends LatLon> positions)
           
 
Method Summary
protected  ArrayList<Intersection> filterIntersections(DrawContext dc, ArrayList<Intersection> list)
          Filters the given intersection segments list according to some criteria - here the inclusion inside the current polygon.
 ArrayList<? extends LatLon> getPositions()
          Get the list of LatLon that describe the current bounding polygon.
 void setPositions(ArrayList<? extends LatLon> positions)
          Set the list of LatLon that describes a closed polygon - one which last position is equal to the first, used to delineate the extent of the contour line.
 
Methods inherited from class gov.nasa.worldwind.render.ContourLine
filterIntersectionsOnViewFrustum, getColor, getElevation, getLineWidth, getRenderables, getSector, isEnabled, isExpired, isViewClippingEnabled, makeContourLine, makePolylinesConnected, render, setColor, setElevation, setEnabled, setLineWidth, setSector, setViewClippingEnabled, update, updateExpiryCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContourLinePolygon

public ContourLinePolygon()

ContourLinePolygon

public ContourLinePolygon(double elevation)

ContourLinePolygon

public ContourLinePolygon(double elevation,
                          ArrayList<? extends LatLon> positions)
Method Detail

filterIntersections

protected ArrayList<Intersection> filterIntersections(DrawContext dc,
                                                      ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the current polygon.

Overrides:
filterIntersections in class ContourLine
Parameters:
dc - the current DrawContext
list - the list of Intersection to be filtered.
Returns:
the filtered list.

getPositions

public ArrayList<? extends LatLon> getPositions()
Get the list of LatLon that describe the current bounding polygon.

Returns:
the list of LatLon that describe the current bounding polygon.

setPositions

public void setPositions(ArrayList<? extends LatLon> positions)
Set the list of LatLon that describes a closed polygon - one which last position is equal to the first, used to delineate the extent of the contour line.

Parameters:
positions - the list of LatLon that describe a closed polygon.

NASA World Wind