NASA World Wind

gov.nasa.worldwind.render
Class ExtrudedPolygon.ExtrudedBoundaryInfo

java.lang.Object
  extended by gov.nasa.worldwind.render.ExtrudedPolygon.ExtrudedBoundaryInfo
Enclosing class:
ExtrudedPolygon

protected static class ExtrudedPolygon.ExtrudedBoundaryInfo
extends Object

Holds globe-specific information for each contour of the polygon. This class is meant only to be used as a way to group per-boundary information in globe-specific ShapeData.


Field Summary
protected  Vec4[] baseVertices
          The vertices defining the boundary's base.
protected  IntBuffer capEdgeIndices
          Indices identifying the cap edges in the vertex buffer.
protected  IntBuffer capFillIndices
          Indices identifying the cap vertices in the vertex buffer.
protected  FloatBuffer capNormalBuffer
          A buffer holding the boundary cap's vertex normals.
protected  FloatBuffer capVertexBuffer
          A buffer holding the vertices defining the boundary's cap.
protected  Vec4[] capVertices
          The vertices defining the boundary's cap.
protected  int faceCount
          The number of faces in the boundary.
protected  List<? extends LatLon> locations
          The boundary vertices.
protected  IntBuffer sideEdgeIndices
          The indices identifying the boundary's edge indices in the side-vertex buffer.
protected  IntBuffer sideIndices
          The indices identifying the boundary's side faces in the side-vertex buffer.
protected  FloatBuffer sideNormalBuffer
          A buffer holding per-vertex normals.
protected  FloatBuffer sideTextureCoords
          The texture coordinates to use when applying side textures, a coordinate pair for each of 4 corners.
protected  List<WWTexture> sideTextures
          The textures to apply to this boundary, one per face.
protected  FloatBuffer sideVertexBuffer
          A buffer holding the side vertices.
 
Constructor Summary
ExtrudedPolygon.ExtrudedBoundaryInfo(List<? extends LatLon> locations)
          Constructs a boundary info instance for a specified boundary.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseVertices

protected Vec4[] baseVertices
The vertices defining the boundary's base. These are always on the terrain.


capEdgeIndices

protected IntBuffer capEdgeIndices
Indices identifying the cap edges in the vertex buffer.


capFillIndices

protected IntBuffer capFillIndices
Indices identifying the cap vertices in the vertex buffer.


capNormalBuffer

protected FloatBuffer capNormalBuffer
A buffer holding the boundary cap's vertex normals. Non-null only when lighting is applied.


capVertexBuffer

protected FloatBuffer capVertexBuffer
A buffer holding the vertices defining the boundary's cap.


capVertices

protected Vec4[] capVertices
The vertices defining the boundary's cap.


faceCount

protected int faceCount
The number of faces in the boundary. (The number of positions - 1.)


locations

protected List<? extends LatLon> locations
The boundary vertices. This is merely a reference to the paren't shape's boundaries.


sideEdgeIndices

protected IntBuffer sideEdgeIndices
The indices identifying the boundary's edge indices in the side-vertex buffer.


sideIndices

protected IntBuffer sideIndices
The indices identifying the boundary's side faces in the side-vertex buffer.


sideNormalBuffer

protected FloatBuffer sideNormalBuffer
A buffer holding per-vertex normals. Non-null only when lighting is applied.


sideTextureCoords

protected FloatBuffer sideTextureCoords
The texture coordinates to use when applying side textures, a coordinate pair for each of 4 corners. These are globe-specific because they account for the varying positions of the base on the terrain. (The cap texture coordinates are not globe-specific.)


sideTextures

protected List<WWTexture> sideTextures
The textures to apply to this boundary, one per face.


sideVertexBuffer

protected FloatBuffer sideVertexBuffer
A buffer holding the side vertices. These are passed to OpenGL.

Constructor Detail

ExtrudedPolygon.ExtrudedBoundaryInfo

public ExtrudedPolygon.ExtrudedBoundaryInfo(List<? extends LatLon> locations)
Constructs a boundary info instance for a specified boundary.

Parameters:
locations - the boundary locations. Only this reference is kept; the boundaries are not copied.

NASA World Wind