gov.nasa.worldwind.render
Class SurfacePolygon
java.lang.Object
gov.nasa.worldwind.render.AbstractSurfaceObject
gov.nasa.worldwind.render.AbstractSurfaceShape
gov.nasa.worldwind.render.SurfacePolygon
- All Implemented Interfaces:
- MeasurableArea, MeasurableLength, Movable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable
- Direct Known Subclasses:
- SurfacePolyline
public class SurfacePolygon
- extends AbstractSurfaceShape
|
Method Summary |
protected void |
addLocations(Iterable<? extends LatLon> locations)
|
protected void |
computeLocations(Globe globe,
List<LatLon> locations)
|
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doMoveTo(Position oldReferencePosition,
Position newReferencePosition)
|
protected void |
doRenderToRegion(DrawContext dc,
Sector sector,
int x,
int y,
int width,
int height)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
Iterable<? extends LatLon> |
getLocations()
|
Position |
getReferencePosition()
|
protected void |
legacyRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
Restores state values from previous versions of the SurfaceShape state XML. |
void |
setLocations(Iterable<? extends LatLon> locations)
|
| Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape |
getArea, getArea, getAttributes, getDrawLocations, getEdgeIntervalsPerDegree, getHeight, getLength, getLocations, getPathType, getPerimeter, getRenderer, getRestorableState, getSectors, getSurfaceShapeSupport, getWidth, move, moveTo, onShapeChanged, pathTypeFromString, preRender, render, restoreState, setAttributes, setEdgeIntervalsPerDegree, setPathType, setupAreaMeasurer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locationList
protected List<LatLon> locationList
SurfacePolygon
public SurfacePolygon()
SurfacePolygon
public SurfacePolygon(Iterable<? extends LatLon> locations)
SurfacePolygon
public SurfacePolygon(ShapeAttributes attributes)
SurfacePolygon
public SurfacePolygon(ShapeAttributes attributes,
Iterable<? extends LatLon> locations)
addLocations
protected void addLocations(Iterable<? extends LatLon> locations)
computeLocations
protected void computeLocations(Globe globe,
List<LatLon> locations)
- Specified by:
computeLocations in class AbstractSurfaceShape
doGetRestorableState
protected void doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doGetRestorableState in class AbstractSurfaceShape
doMoveTo
protected void doMoveTo(Position oldReferencePosition,
Position newReferencePosition)
- Specified by:
doMoveTo in class AbstractSurfaceShape
doRenderToRegion
protected void doRenderToRegion(DrawContext dc,
Sector sector,
int x,
int y,
int width,
int height)
- Specified by:
doRenderToRegion in class AbstractSurfaceObject
doRestoreState
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doRestoreState in class AbstractSurfaceShape
getLocations
public Iterable<? extends LatLon> getLocations()
getReferencePosition
public Position getReferencePosition()
- Specified by:
getReferencePosition in interface Movable- Specified by:
getReferencePosition in class AbstractSurfaceShape
legacyRestoreState
protected void legacyRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Description copied from class:
AbstractSurfaceShape
- Restores state values from previous versions of the SurfaceShape state XML. These values are stored or named
differently than the current implementation. Those values which have not changed are ignored here, and will
restored in {# doRestoreState }.
- Overrides:
legacyRestoreState in class AbstractSurfaceShape
- Parameters:
rs - RestorableSupport object which contains the state value properties.context - active context in the RestorableSupport to read state from.
setLocations
public void setLocations(Iterable<? extends LatLon> locations)