protected static class ExtrudedPolygon.ShapeData extends AbstractShape.AbstractShapeData implements java.lang.Iterable<ExtrudedPolygon.ExtrudedBoundaryInfo>
ShapeData
class holds globe-specific data for this shape.Modifier and Type | Field and Description |
---|---|
protected java.util.List<ExtrudedPolygon.ExtrudedBoundaryInfo> |
boundaries
The boundary locations of the associated shape.
|
protected java.util.List<java.nio.IntBuffer> |
capFillIndexBuffers
Slices of
capFillIndices , 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.
|
frameNumber, referenceDistance, referencePoint, vboCacheKey
extent, eyeDistance, globeStateKey, lastUsed, timer, timerAdjustedEyeDistance, verticalExaggeration
Constructor and Description |
---|
ShapeData(DrawContext dc,
ExtrudedPolygon shape)
Constructs an instance using the boundaries of a specified extruded polygon.
|
Modifier and Type | Method and 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.
|
getFrameNumber, getReferenceDistance, getReferencePoint, getVboCacheKey, setFrameNumber, setReferenceDistance, setReferencePoint, setVboCacheKey
adjustTimer, getExtent, getEyeDistance, getGlobeStateKey, getTimer, getVerticalExaggeration, isExpired, isValid, restartTimer, setExpired, setExtent, setEyeDistance, setGlobeStateKey, setTimer, setVerticalExaggeration
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
protected java.util.List<ExtrudedPolygon.ExtrudedBoundaryInfo> boundaries
protected java.util.List<java.nio.IntBuffer> capFillIndexBuffers
capFillIndices
, one per boundary.protected java.nio.IntBuffer capFillIndices
protected java.nio.FloatBuffer capNormalBuffer
protected java.nio.FloatBuffer capVertexBuffer
protected GLUTessellatorSupport.CollectIndexListsCallback cb
protected java.nio.FloatBuffer sideNormalBuffer
protected java.nio.FloatBuffer sideTextureCoordsBuffer
protected java.nio.FloatBuffer sideVertexBuffer
protected boolean tessellationError
public ShapeData(DrawContext dc, ExtrudedPolygon shape)
dc
- the current draw context.shape
- this shape.protected void copySideTextureReferences(ExtrudedPolygon shape)
protected ExtrudedPolygon.ExtrudedBoundaryInfo getOuterBoundaryInfo()
public java.util.Iterator<ExtrudedPolygon.ExtrudedBoundaryInfo> iterator()
iterator
in interface java.lang.Iterable<ExtrudedPolygon.ExtrudedBoundaryInfo>