NASA World Wind

gov.nasa.worldwind.render
Class AbstractShape.AbstractShapeData

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
All Implemented Interfaces:
AVList
Direct Known Subclasses:
AbstractGeneralShape.ShapeData, AntennaAxes.ShapeData, AntennaModel.ShapeData, ExtrudedPolygon.ShapeData, Path.PathData, Polygon.ShapeData, RigidShape.ShapeData
Enclosing class:
AbstractShape

protected static class AbstractShape.AbstractShapeData
extends ShapeDataCache.ShapeDataCacheEntry

Holds the globe-dependent data captured in this shape's data cache.


Field Summary
protected  long frameNumber
          Identifies the frame used to calculate this entry's values.
protected  Double referenceDistance
          A quick-to-compute metric to determine eye distance changes that invalidate this entry's geometry.
protected  Vec4 referencePoint
          This entry's reference point.
protected  Object vboCacheKey
          The GPU-resource cache key to use for this entry's VBOs, if VBOs are used.
 
Fields inherited from class gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
extent, eyeDistance, globeStateKey, lastUsed, timer, verticalExaggeration
 
Constructor Summary
protected AbstractShape.AbstractShapeData(DrawContext dc, long minExpiryTime, long maxExpiryTime)
          Constructs a data cache entry and initializes its globe-dependent state key for the globe in the specified draw context and capture the current vertical exaggeration.
 
Method Summary
 long getFrameNumber()
           
 Double getReferenceDistance()
           
 Vec4 getReferencePoint()
           
 Object getVboCacheKey()
           
 void setFrameNumber(long frameNumber)
           
 void setReferenceDistance(Double referenceDistance)
           
 void setReferencePoint(Vec4 referencePoint)
           
 void setVboCacheKey(Object vboCacheKey)
           
 
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

frameNumber

protected long frameNumber
Identifies the frame used to calculate this entry's values.


referenceDistance

protected Double referenceDistance
A quick-to-compute metric to determine eye distance changes that invalidate this entry's geometry.


referencePoint

protected Vec4 referencePoint
This entry's reference point.


vboCacheKey

protected Object vboCacheKey
The GPU-resource cache key to use for this entry's VBOs, if VBOs are used.

Constructor Detail

AbstractShape.AbstractShapeData

protected AbstractShape.AbstractShapeData(DrawContext dc,
                                          long minExpiryTime,
                                          long maxExpiryTime)
Constructs a data cache entry and initializes its globe-dependent state key for the globe in the specified draw context and capture the current vertical exaggeration. The entry becomes invalid when these values change or when the entry's expiration timer expires.

Parameters:
dc - the current draw context.
minExpiryTime - the minimum number of milliseconds to use this shape before regenerating its geometry.
maxExpiryTime - the maximum number of milliseconds to use this shape before regenerating its geometry.
Method Detail

getFrameNumber

public long getFrameNumber()

getReferenceDistance

public Double getReferenceDistance()

getReferencePoint

public Vec4 getReferencePoint()

getVboCacheKey

public Object getVboCacheKey()

setFrameNumber

public void setFrameNumber(long frameNumber)

setReferenceDistance

public void setReferenceDistance(Double referenceDistance)

setReferencePoint

public void setReferencePoint(Vec4 referencePoint)

setVboCacheKey

public void setVboCacheKey(Object vboCacheKey)

NASA World Wind