NASA World Wind

gov.nasa.worldwind.render
Class SurfacePolygon

java.lang.Object
  extended by gov.nasa.worldwind.render.SurfaceShape
      extended by gov.nasa.worldwind.render.SurfacePolygon
All Implemented Interfaces:
Disposable, Movable, Renderable
Direct Known Subclasses:
SurfaceEllipse, SurfaceQuad, SurfaceSector

public class SurfacePolygon
extends SurfaceShape


Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceShape
globe, positions, TEXTURE_SIZE_1024, TEXTURE_SIZE_128, TEXTURE_SIZE_16, TEXTURE_SIZE_256, TEXTURE_SIZE_32, TEXTURE_SIZE_512, TEXTURE_SIZE_64, TEXTURE_SIZE_8
 
Constructor Summary
SurfacePolygon(Iterable<LatLon> positions)
          A Renderable polygon shape defined by a list of LatLon
SurfacePolygon(Iterable<LatLon> positions, Color color, Color borderColor)
          A Renderable polygon shape defined by a list of LatLon
SurfacePolygon(Iterable<LatLon> positions, Color color, Color borderColor, Dimension textureSize)
           
 
Method Summary
protected  BufferedImage drawShape(Globe globe, Sector sector, BufferedImage image)
          Draw all or part of the shape that intersects a given Sector into the given BufferedImage
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceShape
createEllipse, createTextureTiles, dispose, getBorderColor, getNumEdgeIntervalsPerDegree, getPaint, getPositions, getReferencePosition, getSectors, getStroke, getTextureSize, isAntiAlias, isDrawBorder, isDrawInterior, move, moveTo, render, setAntiAlias, setBorderColor, setDrawBorder, setDrawInterior, setNumEdgeIntervalsPerDegree, setPaint, setPositions, setStroke, setTextureSize, shiftTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfacePolygon

public SurfacePolygon(Iterable<LatLon> positions)
A Renderable polygon shape defined by a list of LatLon

Parameters:
positions - the list of LatLon positions that makes the polygon

SurfacePolygon

public SurfacePolygon(Iterable<LatLon> positions,
                      Color color,
                      Color borderColor)
A Renderable polygon shape defined by a list of LatLon

Parameters:
positions - the list of LatLon positions that makes the polygon
color - the interior fill color
borderColor - the border color

SurfacePolygon

public SurfacePolygon(Iterable<LatLon> positions,
                      Color color,
                      Color borderColor,
                      Dimension textureSize)
Method Detail

drawShape

protected final BufferedImage drawShape(Globe globe,
                                        Sector sector,
                                        BufferedImage image)
Draw all or part of the shape that intersects a given Sector into the given BufferedImage

Specified by:
drawShape in class SurfaceShape

NASA World Wind