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
static int GEOGRAPHIC_COORDINATES
           
protected static double[] planeS
           
protected static double[] planeT
           
static int SCREEN_COORDINATES
           
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, int minEdgeIntervals, int maxEdgeIntervals, List<LatLon> newLocations)
           
 Iterable<? extends Sector> adjustSectorsByBorderWidth(Iterable<? extends Sector> sectors, ShapeAttributes attributes, double texelSizeRadians)
           
 void applyInteriorState(DrawContext dc, ShapeAttributes attributes)
           
 void applyInteriorState(DrawContext dc, ShapeAttributes attributes, WWTexture texture, Sector sector, Rectangle drawRect, LatLon refPos, int refCoordinateSpace)
           
 void applyMaterialState(DrawContext dc, Material material, double opacity)
           
 void applyOutlineState(DrawContext dc, ShapeAttributes attributes)
           
protected  void applyTextureCoordinateGenerationState(DrawContext dc, Sector sector, Rectangle drawRect)
           
 void applyTextureState(DrawContext dc, WWTexture texture, Sector sector, Rectangle drawRect, double scale, double opacity, LatLon refPos, int refCoordinateSpace)
           
protected  void applyTextureTransform(DrawContext dc, WWTexture texture, double scale, Sector sector, Rectangle drawRect, LatLon refPos, int refCoordinateSpace)
           
 void assembleShapeVertices(Sector sector, int x, int y, int width, int height, Iterable<? extends LatLon> locations, List<Vec4> vertices)
           
 void assembleVertexData(int numCoords, double[] vertexArray, int count, DoubleBuffer buffer)
           
 void assembleVertexData(int numCoords, List<? extends Vec4> vertices, DoubleBuffer buffer)
           
 void beginRendering(DrawContext dc)
           
 void bindVertexData(DrawContext dc, int numCoords, DoubleBuffer buffer, int count)
           
 void bindVertexData(DrawContext dc, int numCoords, List<? extends Vec4> vertices)
           
 Iterable<? extends Sector> computeBoundingSectors(Iterable<? extends LatLon> locations, String pathType)
           
 void drawArrays(DrawContext dc, int mode, int first, int count)
           
 void endRendering(DrawContext dc)
           
 void generateIntermediateLocations(Iterable<? extends LatLon> locations, String pathType, double edgeIntervalsPerDegree, int minEdgeIntervals, int maxEdgeIntervals, boolean makeClosedPath, List<LatLon> newLocations)
           
protected  double[] getVertexArray(int capacity)
           
protected  DoubleBuffer getVertexBuffer(int capacity)
           
protected  Angle[] greatArcExtremeLatitudes(Iterable<? extends LatLon> locations)
           
 void makeClosedPath(List<LatLon> locations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GEOGRAPHIC_COORDINATES

public static final int GEOGRAPHIC_COORDINATES
See Also:
Constant Field Values

planeS

protected static final double[] planeS

planeT

protected static final double[] planeT

SCREEN_COORDINATES

public static final int SCREEN_COORDINATES
See Also:
Constant Field Values

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,
                                        int minEdgeIntervals,
                                        int maxEdgeIntervals,
                                        List<LatLon> newLocations)

adjustSectorsByBorderWidth

public Iterable<? extends Sector> adjustSectorsByBorderWidth(Iterable<? extends Sector> sectors,
                                                             ShapeAttributes attributes,
                                                             double texelSizeRadians)

applyInteriorState

public void applyInteriorState(DrawContext dc,
                               ShapeAttributes attributes)

applyInteriorState

public void applyInteriorState(DrawContext dc,
                               ShapeAttributes attributes,
                               WWTexture texture,
                               Sector sector,
                               Rectangle drawRect,
                               LatLon refPos,
                               int refCoordinateSpace)

applyMaterialState

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

applyOutlineState

public void applyOutlineState(DrawContext dc,
                              ShapeAttributes attributes)

applyTextureCoordinateGenerationState

protected void applyTextureCoordinateGenerationState(DrawContext dc,
                                                     Sector sector,
                                                     Rectangle drawRect)

applyTextureState

public void applyTextureState(DrawContext dc,
                              WWTexture texture,
                              Sector sector,
                              Rectangle drawRect,
                              double scale,
                              double opacity,
                              LatLon refPos,
                              int refCoordinateSpace)

applyTextureTransform

protected void applyTextureTransform(DrawContext dc,
                                     WWTexture texture,
                                     double scale,
                                     Sector sector,
                                     Rectangle drawRect,
                                     LatLon refPos,
                                     int refCoordinateSpace)

assembleShapeVertices

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

assembleVertexData

public void assembleVertexData(int numCoords,
                               double[] vertexArray,
                               int count,
                               DoubleBuffer buffer)

assembleVertexData

public void assembleVertexData(int numCoords,
                               List<? extends Vec4> vertices,
                               DoubleBuffer buffer)

beginRendering

public void beginRendering(DrawContext dc)

bindVertexData

public void bindVertexData(DrawContext dc,
                           int numCoords,
                           DoubleBuffer buffer,
                           int count)

bindVertexData

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

computeBoundingSectors

public Iterable<? extends Sector> computeBoundingSectors(Iterable<? extends LatLon> locations,
                                                         String pathType)

drawArrays

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

endRendering

public void endRendering(DrawContext dc)

generateIntermediateLocations

public void generateIntermediateLocations(Iterable<? extends LatLon> locations,
                                          String pathType,
                                          double edgeIntervalsPerDegree,
                                          int minEdgeIntervals,
                                          int maxEdgeIntervals,
                                          boolean makeClosedPath,
                                          List<LatLon> newLocations)

getVertexArray

protected double[] getVertexArray(int capacity)

getVertexBuffer

protected DoubleBuffer getVertexBuffer(int capacity)

greatArcExtremeLatitudes

protected Angle[] greatArcExtremeLatitudes(Iterable<? extends LatLon> locations)

makeClosedPath

public void makeClosedPath(List<LatLon> locations)

NASA World Wind

Hosted by docs.bugaco.com