Package gov.nasa.worldwind.render
Class RigidShape.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.RigidShape.ShapeData
-
- All Implemented Interfaces:
AVList
- Enclosing class:
- RigidShape
protected static class RigidShape.ShapeData extends AbstractShape.AbstractShapeData
Maintains globe-dependent computed data such as Cartesian vertices and extents. One entry exists for each distinct globe that this shape encounters in calls toAbstractShape.render(DrawContext)
. SeeAbstractShape
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Geometry>
meshes
Holds the computed tessellation of the shape in model coordinates.protected boolean
refillIndexBuffer
Indicates whether the index buffer needs to be filled because a new buffer is used or some other reason.protected boolean
refillIndexVBO
Indicates whether the index buffer's VBO needs to be filled because a new buffer is used or other reason.protected java.util.Map<java.lang.Integer,java.lang.Object>
vboCacheKeys
The GPU-resource cache keys to use for this entry's VBOs (one for eack LOD), if VBOs are used.-
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, RigidShape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMesh(int index, Geometry mesh)
void
addMesh(Geometry mesh)
Geometry
getMesh()
Geometry
getMesh(int index)
java.util.List<Geometry>
getMeshes()
java.lang.Object
getVboCacheKey(int index)
int
getVboCacheSize()
void
setMesh(Geometry mesh)
void
setMeshes(java.util.List<Geometry> meshes)
void
setVboCacheKey(int index, java.lang.Object vboCacheKey)
-
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
-
meshes
protected java.util.List<Geometry> meshes
Holds the computed tessellation of the shape in model coordinates.
-
vboCacheKeys
protected java.util.Map<java.lang.Integer,java.lang.Object> vboCacheKeys
The GPU-resource cache keys to use for this entry's VBOs (one for eack LOD), if VBOs are used.
-
refillIndexBuffer
protected boolean refillIndexBuffer
Indicates whether the index buffer needs to be filled because a new buffer is used or some other reason.
-
refillIndexVBO
protected boolean refillIndexVBO
Indicates whether the index buffer's VBO needs to be filled because a new buffer is used or other reason.
-
-
Constructor Detail
-
ShapeData
public ShapeData(DrawContext dc, RigidShape shape)
-
-
Method Detail
-
getMesh
public Geometry getMesh()
-
getMesh
public Geometry getMesh(int index)
-
getMeshes
public java.util.List<Geometry> getMeshes()
-
setMesh
public void setMesh(Geometry mesh)
-
setMeshes
public void setMeshes(java.util.List<Geometry> meshes)
-
addMesh
public void addMesh(Geometry mesh)
-
addMesh
public void addMesh(int index, Geometry mesh)
-
getVboCacheKey
public java.lang.Object getVboCacheKey(int index)
-
setVboCacheKey
public void setVboCacheKey(int index, java.lang.Object vboCacheKey)
-
getVboCacheSize
public int getVboCacheSize()
-
-