Package gov.nasa.worldwind.shape
Class Polygon
- java.lang.Object
-
- gov.nasa.worldwind.render.AbstractRenderable
-
- gov.nasa.worldwind.shape.AbstractShape
-
- gov.nasa.worldwind.shape.Polygon
-
- All Implemented Interfaces:
Renderable
,Attributable
,Highlightable
public class Polygon extends AbstractShape
-
-
Constructor Summary
Constructors Constructor Description Polygon()
Polygon(ShapeAttributes attributes)
Polygon(java.util.List<Position> positions)
Polygon(java.util.List<Position> positions, ShapeAttributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBoundary(int index, java.util.List<Position> positions)
void
addBoundary(java.util.List<Position> positions)
void
clearBoundaries()
java.util.List<Position>
getBoundary(int index)
int
getBoundaryCount()
boolean
isExtrude()
boolean
isFollowTerrain()
java.util.List<Position>
removeBoundary(int index)
java.util.List<Position>
setBoundary(int index, java.util.List<Position> positions)
void
setExtrude(boolean extrude)
void
setFollowTerrain(boolean followTerrain)
-
Methods inherited from class gov.nasa.worldwind.shape.AbstractShape
getAltitudeMode, getAttributes, getHighlightAttributes, getMaximumIntermediatePoints, getPathType, isHighlighted, setAltitudeMode, setAttributes, setHighlightAttributes, setHighlighted, setMaximumIntermediatePoints, setPathType
-
Methods inherited from class gov.nasa.worldwind.render.AbstractRenderable
getDisplayName, getPickDelegate, getUserProperty, hasUserProperty, isEnabled, putUserProperty, removeUserProperty, render, setDisplayName, setEnabled, setPickDelegate
-
-
-
-
Constructor Detail
-
Polygon
public Polygon()
-
Polygon
public Polygon(ShapeAttributes attributes)
-
Polygon
public Polygon(java.util.List<Position> positions)
-
Polygon
public Polygon(java.util.List<Position> positions, ShapeAttributes attributes)
-
-
Method Detail
-
getBoundaryCount
public int getBoundaryCount()
-
getBoundary
public java.util.List<Position> getBoundary(int index)
-
setBoundary
public java.util.List<Position> setBoundary(int index, java.util.List<Position> positions)
-
addBoundary
public void addBoundary(java.util.List<Position> positions)
-
addBoundary
public void addBoundary(int index, java.util.List<Position> positions)
-
removeBoundary
public java.util.List<Position> removeBoundary(int index)
-
clearBoundaries
public void clearBoundaries()
-
isExtrude
public boolean isExtrude()
-
setExtrude
public void setExtrude(boolean extrude)
-
isFollowTerrain
public boolean isFollowTerrain()
-
setFollowTerrain
public void setFollowTerrain(boolean followTerrain)
-
-