Package gov.nasa.worldwind.render
Class AbstractShape.AbstractShapeData
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
-
- 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
,RadarVolume.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
Fields Modifier and Type Field Description protected long
frameNumber
Identifies the frame used to calculate this entry's values.protected java.lang.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 java.lang.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, timerAdjustedEyeDistance, verticalExaggeration
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFrameNumber()
java.lang.Double
getReferenceDistance()
Vec4
getReferencePoint()
java.lang.Object
getVboCacheKey()
void
setFrameNumber(long frameNumber)
void
setReferenceDistance(java.lang.Double referenceDistance)
void
setReferencePoint(Vec4 referencePoint)
void
setVboCacheKey(java.lang.Object vboCacheKey)
-
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
-
frameNumber
protected long frameNumber
Identifies the frame used to calculate this entry's values.
-
referencePoint
protected Vec4 referencePoint
This entry's reference point.
-
referenceDistance
protected java.lang.Double referenceDistance
A quick-to-compute metric to determine eye distance changes that invalidate this entry's geometry.
-
vboCacheKey
protected java.lang.Object vboCacheKey
The GPU-resource cache key to use for this entry's VBOs, if VBOs are used.
-
-
Constructor Detail
-
AbstractShapeData
protected 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()
-
setFrameNumber
public void setFrameNumber(long frameNumber)
-
getReferencePoint
public Vec4 getReferencePoint()
-
setReferencePoint
public void setReferencePoint(Vec4 referencePoint)
-
getVboCacheKey
public java.lang.Object getVboCacheKey()
-
setVboCacheKey
public void setVboCacheKey(java.lang.Object vboCacheKey)
-
getReferenceDistance
public java.lang.Double getReferenceDistance()
-
setReferenceDistance
public void setReferenceDistance(java.lang.Double referenceDistance)
-
-