gov.nasa.worldwind.render
Class SurfacePolyline
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.AbstractSurfaceObject
gov.nasa.worldwind.render.AbstractSurfaceShape
gov.nasa.worldwind.render.SurfacePolyline
- All Implemented Interfaces:
- AVList, MeasurableArea, MeasurableLength, Movable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable
public class SurfacePolyline
- extends AbstractSurfaceShape
| Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape |
areaMeasurer, areaMeasurerLastModifiedTime, attributes, DEFAULT_CACHE_CAPACITY, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, drawLocations, locationCache, maxEdgeIntervals, minEdgeIntervals, pathType, renderer, sectorCache, showBoundingSectors, texelsPerEdgeInterval |
|
Method Summary |
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doMoveTo(Position oldReferencePosition,
Position newReferencePosition)
|
protected void |
doRenderInteriorToRegion(DrawContext dc,
Sector sector,
int x,
int y,
int width,
int height)
|
protected void |
doRenderOutlineToRegion(DrawContext dc,
Sector sector,
int x,
int y,
int width,
int height)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
drawOutline(DrawContext dc,
int drawMode)
|
java.lang.Iterable<? extends LatLon> |
getLocations()
|
java.lang.Iterable<? extends LatLon> |
getLocations(Globe globe)
Returns the shape's locations as they appear on the specified globe. |
protected java.lang.Iterable<? extends LatLon> |
getLocations(Globe globe,
double edgeIntervalsPerDegree)
|
Position |
getReferencePosition()
|
boolean |
isClosed()
|
protected void |
legacyRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
Restores state values from previous versions of the SurfaceShape state XML. |
void |
setClosed(boolean closed)
|
void |
setLocations(java.lang.Iterable<? extends LatLon> iterable)
|
| Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape |
assembleRenderState, beginRenderToRegion, computeEdgeIntervalsPerDegree, doGetSectors, doRenderBoundingSectors, doRenderShape, doRenderToRegion, endRenderToRegion, getArea, getArea, getAttributes, getCachedLocations, getCachedLocations, getHeight, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRenderer, getRestorableState, getSectors, getSurfaceShapeSupport, getTexelsPerEdgeInterval, getWidth, isShowBoundingSectors, move, moveTo, onShapeChanged, pathTypeFromString, preRender, render, restoreState, setAttributes, setMinAndMaxEdgeIntervals, setPathType, setShowBoundingSectors, setTexelsPerEdgeInterval, setupAreaMeasurer |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
closed
protected boolean closed
locations
protected java.lang.Iterable<? extends LatLon> locations
SurfacePolyline
public SurfacePolyline()
SurfacePolyline
public SurfacePolyline(java.lang.Iterable<? extends LatLon> iterable)
SurfacePolyline
public SurfacePolyline(ShapeAttributes attributes)
SurfacePolyline
public SurfacePolyline(ShapeAttributes attributes,
java.lang.Iterable<? extends LatLon> iterable)
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
doRenderInteriorToRegion
protected void doRenderInteriorToRegion(DrawContext dc,
Sector sector,
int x,
int y,
int width,
int height)
- Specified by:
doRenderInteriorToRegion in class AbstractSurfaceShape
doRenderOutlineToRegion
protected void doRenderOutlineToRegion(DrawContext dc,
Sector sector,
int x,
int y,
int width,
int height)
- Specified by:
doRenderOutlineToRegion in class AbstractSurfaceShape
doRestoreState
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doRestoreState in class AbstractSurfaceShape
drawOutline
protected void drawOutline(DrawContext dc,
int drawMode)
getLocations
public java.lang.Iterable<? extends LatLon> getLocations()
getLocations
public java.lang.Iterable<? extends LatLon> getLocations(Globe globe)
- Description copied from interface:
SurfaceShape
- Returns the shape's locations as they appear on the specified
globe.
- Parameters:
globe - the globe the shape is related to.
- Returns:
- the shapes locations on the globe.
getLocations
protected java.lang.Iterable<? extends LatLon> getLocations(Globe globe,
double edgeIntervalsPerDegree)
- Specified by:
getLocations in class AbstractSurfaceShape
getReferencePosition
public Position getReferencePosition()
- Specified by:
getReferencePosition in interface Movable- Specified by:
getReferencePosition in class AbstractSurfaceShape
isClosed
public boolean isClosed()
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.
setClosed
public void setClosed(boolean closed)
setLocations
public void setLocations(java.lang.Iterable<? extends LatLon> iterable)