Package gov.nasa.worldwind.render
Class ExtrudedPolygon.ShapeData
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
-
- gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
-
- gov.nasa.worldwind.render.ExtrudedPolygon.ShapeData
-
- All Implemented Interfaces:
AVList
,java.lang.Iterable<ExtrudedPolygon.ExtrudedBoundaryInfo>
- Enclosing class:
- ExtrudedPolygon
protected static class ExtrudedPolygon.ShapeData extends AbstractShape.AbstractShapeData implements java.lang.Iterable<ExtrudedPolygon.ExtrudedBoundaryInfo>
TheShapeData
class holds globe-specific data for this shape.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ExtrudedPolygon.ExtrudedBoundaryInfo>
boundaries
The boundary locations of the associated shape.protected java.util.List<java.nio.IntBuffer>
capFillIndexBuffers
Slices ofcapFillIndices
, one per boundary.protected java.nio.IntBuffer
capFillIndices
The indices identifying the cap vertices in a shape data's vertex buffer.protected java.nio.FloatBuffer
capNormalBuffer
A buffer holding the cap normals of all the shape's boundaries.protected java.nio.FloatBuffer
capVertexBuffer
A buffer holding the Cartesian cap vertices of all the shape's boundaries.protected GLUTessellatorSupport.CollectIndexListsCallback
cb
This shape's tessellation.protected java.nio.FloatBuffer
sideNormalBuffer
A buffer holding the side normals of all the shape's boundaries.protected java.nio.FloatBuffer
sideTextureCoordsBuffer
A buffer holding the texture coordinates of all the shape's faces.protected java.nio.FloatBuffer
sideVertexBuffer
A buffer holding the Cartesian vertices of all the shape's side vertices.protected boolean
tessellationError
Indicates whether a tessellation error occurred.-
Fields inherited from class gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
frameNumber, referenceDistance, referencePoint, vboCacheKey
-
Fields inherited from class gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
extent, eyeDistance, globeStateKey, lastUsed, timer, timerAdjustedEyeDistance, verticalExaggeration
-
-
Constructor Summary
Constructors Constructor Description ShapeData(DrawContext dc, ExtrudedPolygon shape)
Constructs an instance using the boundaries of a specified extruded polygon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
copySideTextureReferences(ExtrudedPolygon shape)
protected ExtrudedPolygon.ExtrudedBoundaryInfo
getOuterBoundaryInfo()
Returns the outer boundary information for this shape data.java.util.Iterator<ExtrudedPolygon.ExtrudedBoundaryInfo>
iterator()
Iterates over the boundary information of this shape data.-
Methods inherited from class gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
getFrameNumber, getReferenceDistance, getReferencePoint, getVboCacheKey, setFrameNumber, setReferenceDistance, setReferencePoint, setVboCacheKey
-
Methods inherited from class gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
adjustTimer, getExtent, getEyeDistance, getGlobeStateKey, getTimer, getVerticalExaggeration, isExpired, isValid, restartTimer, setExpired, setExtent, setEyeDistance, setGlobeStateKey, setTimer, setVerticalExaggeration
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
-
-
-
Field Detail
-
boundaries
protected java.util.List<ExtrudedPolygon.ExtrudedBoundaryInfo> boundaries
The boundary locations of the associated shape. Copied from that shape during construction.
-
capVertexBuffer
protected java.nio.FloatBuffer capVertexBuffer
A buffer holding the Cartesian cap vertices of all the shape's boundaries.
-
capNormalBuffer
protected java.nio.FloatBuffer capNormalBuffer
A buffer holding the cap normals of all the shape's boundaries.
-
sideVertexBuffer
protected java.nio.FloatBuffer sideVertexBuffer
A buffer holding the Cartesian vertices of all the shape's side vertices.
-
sideNormalBuffer
protected java.nio.FloatBuffer sideNormalBuffer
A buffer holding the side normals of all the shape's boundaries.
-
sideTextureCoordsBuffer
protected java.nio.FloatBuffer sideTextureCoordsBuffer
A buffer holding the texture coordinates of all the shape's faces. Non-null only when texture is applied.
-
cb
protected GLUTessellatorSupport.CollectIndexListsCallback cb
This shape's tessellation.
-
capFillIndices
protected java.nio.IntBuffer capFillIndices
The indices identifying the cap vertices in a shape data's vertex buffer. Determined when this shape is tessellated, which occurs only once unless the shape's boundaries are re-specified.
-
capFillIndexBuffers
protected java.util.List<java.nio.IntBuffer> capFillIndexBuffers
Slices ofcapFillIndices
, one per boundary.
-
tessellationError
protected boolean tessellationError
Indicates whether a tessellation error occurred. No more attempts to tessellate will be made if set to true.
-
-
Constructor Detail
-
ShapeData
public ShapeData(DrawContext dc, ExtrudedPolygon shape)
Constructs an instance using the boundaries of a specified extruded polygon.- Parameters:
dc
- the current draw context.shape
- this shape.
-
-
Method Detail
-
copySideTextureReferences
protected void copySideTextureReferences(ExtrudedPolygon shape)
-
getOuterBoundaryInfo
protected ExtrudedPolygon.ExtrudedBoundaryInfo getOuterBoundaryInfo()
Returns the outer boundary information for this shape data.- Returns:
- this shape data's outer boundary information.
-
iterator
public java.util.Iterator<ExtrudedPolygon.ExtrudedBoundaryInfo> iterator()
Iterates over the boundary information of this shape data.- Specified by:
iterator
in interfacejava.lang.Iterable<ExtrudedPolygon.ExtrudedBoundaryInfo>
- Returns:
- an iterator over this shape data's boundary info.
-
-