NASA World Wind

gov.nasa.worldwind.render
Class RigidShape.ShapeData

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
          extended by gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
              extended by 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.
 
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, verticalExaggeration
 
Constructor Summary
RigidShape.ShapeData(DrawContext dc, RigidShape shape)
           
 
Method Summary
 void addMesh(Geometry mesh)
           
 void addMesh(int index, Geometry mesh)
           
 Geometry getMesh()
           
 Geometry getMesh(int index)
           
 List<Geometry> getMeshes()
           
 Object getVboCacheKey(int index)
           
 int getVboCacheSize()
           
 void setMesh(Geometry mesh)
           
 void setMeshes(List<Geometry> meshes)
           
 void setVboCacheKey(int index, 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
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
 

Field Detail

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.

Constructor Detail

RigidShape.ShapeData

public RigidShape.ShapeData(DrawContext dc,
                            RigidShape shape)
Method Detail

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)

NASA World Wind