gov.nasa.worldwind.render
Class ContourLinePolygon
java.lang.Object
gov.nasa.worldwind.render.ContourLine
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.
| 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 |
ContourLinePolygon
public ContourLinePolygon()
ContourLinePolygon
public ContourLinePolygon(double elevation)
ContourLinePolygon
public ContourLinePolygon(double elevation,
ArrayList<? extends LatLon> positions)
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 DrawContextlist - 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.