protected static class Polygon.ShapeData extends AbstractShape.AbstractShapeData implements Iterable<Polygon.BoundaryInfo>
AbstractShape.AbstractShapeData.| Modifier and Type | Field and Description | 
|---|---|
| protected List<Polygon.BoundaryInfo> | boundariesThis class holds the per-globe data for this shape. | 
| protected GLUTessellatorSupport.CollectIndexListsCallback | cbThis shape's tessellation indices. | 
| protected FloatBuffer | coordBufferThe vertex data buffer for this shape data. | 
| protected IntBuffer | interiorIndicesBufferThe indices identifying the cap vertices in a shape data's vertex buffer. | 
| protected FloatBuffer | normalBufferThe slice of the  coordBufferthat contains normals. | 
| protected int | normalBufferPositionThe index of the first normal in the  coordBuffer. | 
| protected boolean | refillIndexBufferIndicates whether the index buffer needs to be filled because a new buffer is used or some other reason. | 
| protected boolean | refillIndexVBOIndicates whether the index buffer's VBO needs to be filled because a new buffer is used or some other
 reason. | 
| protected Matrix | rotationMatrixThe rotation matrix for this shape data. | 
| protected boolean | tessellationErrorIndicates whether a tessellation error occurred. | 
frameNumber, referenceDistance, referencePoint, vboCacheKeyextent, eyeDistance, globeStateKey, lastUsed, timer, timerAdjustedEyeDistance, verticalExaggeration| Constructor and Description | 
|---|
| ShapeData(DrawContext dc,
         Polygon shape)Construct a cache entry using the boundaries of this shape. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Polygon.BoundaryInfo | getOuterBoundaryInfo()Returns the boundary information for this shape data's outer boundary. | 
| Matrix | getRotationMatrix()Returns this shape data's rotation matrix, if there is one. | 
| Iterator<Polygon.BoundaryInfo> | iterator() | 
| void | setRotationMatrix(Matrix matrix)Specifies this shape data's rotation matrix. | 
getFrameNumber, getReferenceDistance, getReferencePoint, getVboCacheKey, setFrameNumber, setReferenceDistance, setReferencePoint, setVboCacheKeyadjustTimer, getExtent, getEyeDistance, getGlobeStateKey, getTimer, getVerticalExaggeration, isExpired, isValid, restartTimer, setExpired, setExtent, setEyeDistance, setGlobeStateKey, setTimer, setVerticalExaggerationaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected List<Polygon.BoundaryInfo> boundaries
protected GLUTessellatorSupport.CollectIndexListsCallback cb
protected FloatBuffer coordBuffer
protected IntBuffer interiorIndicesBuffer
protected FloatBuffer normalBuffer
coordBuffer that contains normals.protected int normalBufferPosition
coordBuffer.protected boolean refillIndexBuffer
protected boolean refillIndexVBO
protected Matrix rotationMatrix
protected boolean tessellationError
public ShapeData(DrawContext dc, Polygon shape)
dc - the current draw context.shape - this shape.protected Polygon.BoundaryInfo getOuterBoundaryInfo()
public Matrix getRotationMatrix()
public Iterator<Polygon.BoundaryInfo> iterator()
iterator in interface Iterable<Polygon.BoundaryInfo>public void setRotationMatrix(Matrix matrix)
matrix - the new rotation matrix.