gov.nasa.worldwind.geom
Class Polyline
java.lang.Object
gov.nasa.worldwind.geom.Polyline
- All Implemented Interfaces:
- Renderable
public class Polyline
- extends Object
- implements Renderable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Polyline
public Polyline(Iterable<LatLon> positions,
double elevation)
Polyline
public Polyline(Iterable<Position> positions)
getAntiAliasHint
public int getAntiAliasHint()
getColor
public Color getColor()
getNumEdgeIntervals
public int getNumEdgeIntervals()
getPositions
public Iterable<Position> getPositions()
isFilled
public boolean isFilled()
isFollowGreatCircles
public boolean isFollowGreatCircles()
makeGreatCircleVertices
protected DoubleBuffer makeGreatCircleVertices(DrawContext dc,
List<Position> posList,
double[] refCenter)
makeVertices
protected DoubleBuffer makeVertices(DrawContext dc,
List<Position> posList,
double[] refCenter)
render
public void render(DrawContext dc)
- Description copied from interface:
Renderable
- Causes this
Renderable to render itself using the DrawContext provided. The
DrawContext provides the elevation model, openGl instance, globe and other information required for
drawing. It is recommended that the DrawContext is non-null as most implementations do not support
null DrawContexts.
- Specified by:
render in interface Renderable
- Parameters:
dc - the DrawContext to be used- See Also:
DrawContext
setAntiAliasHint
public void setAntiAliasHint(int hint)
setColor
public void setColor(Color color)
setFilled
public void setFilled(boolean filled)
setFollowGreatCircles
public void setFollowGreatCircles(boolean followGreatCircles)
setNumEdgeIntervals
public void setNumEdgeIntervals(int numEdgeIntervals)
setPositions
public void setPositions(Iterable<LatLon> inPositions,
double elevation)
setPositions
public void setPositions(Iterable<Position> inPositions)