NASA World Wind

gov.nasa.worldwind.render
Class SurfaceShapeSupport

java.lang.Object
  extended by gov.nasa.worldwind.render.SurfaceShapeSupport

public class SurfaceShapeSupport
extends Object


Field Summary
protected  OGLStackHandler stackHandler
           
protected  OGLStateSupport stateSupport
           
protected  double[] vertexArray
           
protected  DoubleBuffer vertexBuffer
           
protected  int vertexCount
           
 
Constructor Summary
SurfaceShapeSupport()
           
 
Method Summary
protected  void addIntermediateLocations(LatLon a, LatLon b, String pathType, double edgeIntervalsPerDegree, List<LatLon> newLocations)
           
 void applyInteriorState(DrawContext dc, ShapeAttributes attributes)
           
 void applyMaterialState(DrawContext dc, Material material, double opacity)
           
 void applyOutlineState(DrawContext dc, ShapeAttributes attributes)
           
 void assembleShapeVertices(Sector sector, int x, int y, int width, int height, Iterable<? extends LatLon> locations, List<Vec4> vertices)
           
 void beginRendering(DrawContext dc)
           
protected  void bindVertexBuffer(DrawContext dc, int numCoords, DoubleBuffer buffer, int count)
           
 void bindVertexData(DrawContext dc, int numCoords, double[] vertexArray, int count)
           
 void bindVertexData(DrawContext dc, int numCoords, List<? extends Vec4> vertices)
           
 Vec4 computeCenterVertex(List<Vec4> vertices)
           
 void drawArrays(DrawContext dc, int mode, int first, int count)
           
 void drawArraysAsPolygon(DrawContext dc, List<? extends Vec4> vertices)
           
 void endRendering(DrawContext dc)
           
 void generateIntermediateLocations(Iterable<? extends LatLon> locations, String pathType, double edgeIntervalsPerDegree, List<LatLon> newLocations)
           
protected  double[] getVertexArray(int capacity)
           
protected  DoubleBuffer getVertexBuffer(int capacity)
           
 void makeClosedPath(List<LatLon> locations)
           
 void makeWindingCounterClockwise(List<Vec4> vertices)
           
 void stripRedundantEndPoint(List<Vec4> vertices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stackHandler

protected OGLStackHandler stackHandler

stateSupport

protected OGLStateSupport stateSupport

vertexArray

protected double[] vertexArray

vertexBuffer

protected DoubleBuffer vertexBuffer

vertexCount

protected int vertexCount
Constructor Detail

SurfaceShapeSupport

public SurfaceShapeSupport()
Method Detail

addIntermediateLocations

protected void addIntermediateLocations(LatLon a,
                                        LatLon b,
                                        String pathType,
                                        double edgeIntervalsPerDegree,
                                        List<LatLon> newLocations)

applyInteriorState

public void applyInteriorState(DrawContext dc,
                               ShapeAttributes attributes)

applyMaterialState

public void applyMaterialState(DrawContext dc,
                               Material material,
                               double opacity)

applyOutlineState

public void applyOutlineState(DrawContext dc,
                              ShapeAttributes attributes)

assembleShapeVertices

public void assembleShapeVertices(Sector sector,
                                  int x,
                                  int y,
                                  int width,
                                  int height,
                                  Iterable<? extends LatLon> locations,
                                  List<Vec4> vertices)

beginRendering

public void beginRendering(DrawContext dc)

bindVertexBuffer

protected void bindVertexBuffer(DrawContext dc,
                                int numCoords,
                                DoubleBuffer buffer,
                                int count)

bindVertexData

public void bindVertexData(DrawContext dc,
                           int numCoords,
                           double[] vertexArray,
                           int count)

bindVertexData

public void bindVertexData(DrawContext dc,
                           int numCoords,
                           List<? extends Vec4> vertices)

computeCenterVertex

public Vec4 computeCenterVertex(List<Vec4> vertices)

drawArrays

public void drawArrays(DrawContext dc,
                       int mode,
                       int first,
                       int count)

drawArraysAsPolygon

public void drawArraysAsPolygon(DrawContext dc,
                                List<? extends Vec4> vertices)

endRendering

public void endRendering(DrawContext dc)

generateIntermediateLocations

public void generateIntermediateLocations(Iterable<? extends LatLon> locations,
                                          String pathType,
                                          double edgeIntervalsPerDegree,
                                          List<LatLon> newLocations)

getVertexArray

protected double[] getVertexArray(int capacity)

getVertexBuffer

protected DoubleBuffer getVertexBuffer(int capacity)

makeClosedPath

public void makeClosedPath(List<LatLon> locations)

makeWindingCounterClockwise

public void makeWindingCounterClockwise(List<Vec4> vertices)

stripRedundantEndPoint

public void stripRedundantEndPoint(List<Vec4> vertices)

NASA World Wind