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 to AbstractShape.render(DrawContext). See AbstractShape.
|
Field Summary |
protected 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 Map<Integer,Object> |
vboCacheKeys
The GPU-resource cache keys to use for this entry's VBOs (one for eack LOD), if VBOs are used. |
| Methods inherited from class gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
meshes
protected List<Geometry> meshes
- Holds the computed tessellation of the shape in model coordinates.
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.
vboCacheKeys
protected Map<Integer,Object> vboCacheKeys
- The GPU-resource cache keys to use for this entry's VBOs (one for eack LOD), if VBOs are used.
RigidShape.ShapeData
public RigidShape.ShapeData(DrawContext dc,
RigidShape shape)
addMesh
public void addMesh(Geometry mesh)
addMesh
public void addMesh(int index,
Geometry mesh)
getMesh
public Geometry getMesh()
getMesh
public Geometry getMesh(int index)
getMeshes
public List<Geometry> getMeshes()
getVboCacheKey
public Object getVboCacheKey(int index)
getVboCacheSize
public int getVboCacheSize()
setMesh
public void setMesh(Geometry mesh)
setMeshes
public void setMeshes(List<Geometry> meshes)
setVboCacheKey
public void setVboCacheKey(int index,
Object vboCacheKey)