protected static class AbstractShape.AbstractShapeData extends ShapeDataCache.ShapeDataCacheEntry
Modifier and Type | Field and Description |
---|---|
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.
|
extent, eyeDistance, globeStateKey, lastUsed, timer, timerAdjustedEyeDistance, verticalExaggeration
Modifier | Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
long |
getFrameNumber() |
Double |
getReferenceDistance() |
Vec4 |
getReferencePoint() |
Object |
getVboCacheKey() |
void |
setFrameNumber(long frameNumber) |
void |
setReferenceDistance(Double referenceDistance) |
void |
setReferencePoint(Vec4 referencePoint) |
void |
setVboCacheKey(Object vboCacheKey) |
adjustTimer, getExtent, getEyeDistance, getGlobeStateKey, getTimer, getVerticalExaggeration, isExpired, isValid, restartTimer, setExpired, setExtent, setEyeDistance, setGlobeStateKey, setTimer, setVerticalExaggeration
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
protected long frameNumber
protected Double referenceDistance
protected Vec4 referencePoint
protected Object vboCacheKey
protected AbstractShapeData(DrawContext dc, long minExpiryTime, long maxExpiryTime)
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.public long getFrameNumber()
public Double getReferenceDistance()
public Vec4 getReferencePoint()
public Object getVboCacheKey()
public void setFrameNumber(long frameNumber)
public void setReferenceDistance(Double referenceDistance)
public void setReferencePoint(Vec4 referencePoint)
public void setVboCacheKey(Object vboCacheKey)