NASA World Wind

gov.nasa.worldwind.render
Class SurfacePolygon

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.AbstractSurfaceObject
          extended by gov.nasa.worldwind.render.AbstractSurfaceShape
              extended by gov.nasa.worldwind.render.SurfaceConcaveShape
                  extended by gov.nasa.worldwind.render.SurfacePolygon
All Implemented Interfaces:
AVList, MeasurableArea, MeasurableLength, Movable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable

public class SurfacePolygon
extends SurfaceConcaveShape


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.SurfaceConcaveShape
SurfaceConcaveShape.ImmediateDrawTessellatorCallback
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
AbstractSurfaceShape.CacheEntry<T>
 
Field Summary
protected  List<LatLon> locationList
           
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceConcaveShape
glu, tess, texture
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
areaMeasurer, areaMeasurerLastModifiedTime, DEFAULT_CACHE_CAPACITY, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, drawLocationCache, maxEdgeIntervals, minEdgeIntervals, pathType, renderer, sectorCache, showBoundingSectors, texelsPerEdgeInterval, vertices
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
lastModifiedTime, visible
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SurfacePolygon()
           
SurfacePolygon(Iterable<? extends LatLon> locations)
           
SurfacePolygon(ShapeAttributes attributes)
           
SurfacePolygon(ShapeAttributes attributes, Iterable<? extends LatLon> locations)
           
 
Method Summary
protected  void addLocations(Iterable<? extends LatLon> locations)
           
protected  void assembleShapeVertices(DrawContext dc, Sector sector, int x, int y, int width, int height, List<Vec4> vertices)
           
protected  void computeDrawLocations(Globe globe, double edgeIntervalsPerDegree, List<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 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.
protected  void makeWindingCounterClockwise(List<Vec4> vertices)
           
 void setLocations(Iterable<? extends LatLon> locations)
           
protected  void stripRedundantEndPoint(List<Vec4> vertices)
           
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceConcaveShape
beginTessellation, doRenderInteriorToRegion, doRenderOutlineToRegion, drawArraysAsConcavePolygon, drawArraysAsConvexPolygon, endTessellation, getGLU, getGLUTessellator, getTessellatorCallback, getTexture
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
beginRenderToRegion, bindShapeData, computeEdgeIntervalsPerDegree, doGetSectors, doRenderBoundingSectors, doRenderToRegion, endRenderToRegion, getArea, getArea, getAttributes, getDrawLocations, getDrawLocations, getHeight, getLength, getLocations, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRenderer, getRestorableState, getSectors, getSurfaceShapeSupport, getTexelsPerEdgeInterval, getWidth, isShowBoundingSectors, move, moveTo, onShapeChanged, pathTypeFromString, preRender, render, renderBoundingSectors, renderInteriorToRegion, renderOutlineToRegion, restoreState, setAttributes, setMinAndMaxEdgeIntervals, setPathType, setShowBoundingSectors, setTexelsPerEdgeInterval, setupAreaMeasurer
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
getLastModifiedTime, isVisible, renderToRegion, setVisible, updateModifiedTime
 
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.render.SurfaceObject
getLastModifiedTime, isVisible, renderToRegion, setVisible
 
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
 

Field Detail

locationList

protected List<LatLon> locationList
Constructor Detail

SurfacePolygon

public SurfacePolygon()

SurfacePolygon

public SurfacePolygon(Iterable<? extends LatLon> locations)

SurfacePolygon

public SurfacePolygon(ShapeAttributes attributes)

SurfacePolygon

public SurfacePolygon(ShapeAttributes attributes,
                      Iterable<? extends LatLon> locations)
Method Detail

addLocations

protected void addLocations(Iterable<? extends LatLon> locations)

assembleShapeVertices

protected void assembleShapeVertices(DrawContext dc,
                                     Sector sector,
                                     int x,
                                     int y,
                                     int width,
                                     int height,
                                     List<Vec4> vertices)
Overrides:
assembleShapeVertices in class AbstractSurfaceShape

computeDrawLocations

protected void computeDrawLocations(Globe globe,
                                    double edgeIntervalsPerDegree,
                                    List<LatLon> locations)
Specified by:
computeDrawLocations in class AbstractSurfaceShape

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

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.

makeWindingCounterClockwise

protected void makeWindingCounterClockwise(List<Vec4> vertices)

setLocations

public void setLocations(Iterable<? extends LatLon> locations)

stripRedundantEndPoint

protected void stripRedundantEndPoint(List<Vec4> vertices)

NASA World Wind

Hosted by docs.bugaco.com