|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
public static class ShapeDataCache.ShapeDataCacheEntry
| Field Summary | |
|---|---|
protected Extent |
extent
Indicates the associated shape's extent, in model coordinates relative to the associated globe. |
protected double |
eyeDistance
Indicates the eye distance of the shape in the globe-relative coordinate system. |
protected GlobeStateKey |
globeStateKey
Identifies the associated globe's state at the time the entry was created. |
protected long |
lastUsed
Indicates the last time, in milliseconds, the entry was requested or added. |
protected TimedExpirySupport |
timer
Determines whether the cache entry has expired. |
protected double |
verticalExaggeration
Indicates the vertical exaggeration in effect when the entry was cached. |
| Constructor Summary | |
|---|---|
ShapeDataCache.ShapeDataCacheEntry(DrawContext dc,
long minExpiryTime,
long maxExpiryTime)
Constructs an entry using the globe and vertical exaggeration of a specified draw context. |
|
| Method Summary | |
|---|---|
Extent |
getExtent()
Returns this entry's extent. |
double |
getEyeDistance()
Indicates this entry's eye distance. |
GlobeStateKey |
getGlobeStateKey()
Indicates this entry's globe state key, captured when this entry was constructed or when explicitly set. |
TimedExpirySupport |
getTimer()
Returns this entry's expiration timer. |
double |
getVerticalExaggeration()
Indicates this entry's vertical exaggeration, captured when the entry was constructed or when explicitly set. |
boolean |
isExpired(DrawContext dc)
Indicates whether this entry has expired. |
boolean |
isValid(DrawContext dc)
Indicates whether this shape data's globe state and vertical exaggeration are the same as that in the current draw context. |
void |
restartTimer(DrawContext dc)
Resets the timer to the current time. |
void |
setExpired(boolean isExpired)
Sets this entry's expiration state. |
void |
setExtent(Extent extent)
Specifies this entry's extent. |
void |
setEyeDistance(double eyeDistance)
Specifies this entry's eye distance. |
void |
setGlobeStateKey(GlobeStateKey globeStateKey)
Specifies this entry's globe state key. |
void |
setTimer(TimedExpirySupport timer)
Specifies this entry's expiration timer. |
void |
setVerticalExaggeration(double verticalExaggeration)
|
| 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 |
|---|
protected Extent extent
protected double eyeDistance
protected GlobeStateKey globeStateKey
protected long lastUsed
protected TimedExpirySupport timer
protected double verticalExaggeration
| Constructor Detail |
|---|
public ShapeDataCache.ShapeDataCacheEntry(DrawContext dc,
long minExpiryTime,
long maxExpiryTime)
dc - the draw context. Must contain a globe.minExpiryTime - the minimum expiration duration, in milliseconds.maxExpiryTime - the maximum expiration duration, in milliseconds.
IllegalArgumentException - if the draw context is null.| Method Detail |
|---|
public Extent getExtent()
public double getEyeDistance()
public GlobeStateKey getGlobeStateKey()
public TimedExpirySupport getTimer()
public double getVerticalExaggeration()
public boolean isExpired(DrawContext dc)
dc - the current draw context.
public boolean isValid(DrawContext dc)
dc - the current draw context.
public void restartTimer(DrawContext dc)
dc - the current draw context.
IllegalArgumentException - if the draw context is null.public void setExpired(boolean isExpired)
isExpired - true to expire the entry, otherwise false.public void setExtent(Extent extent)
extent - the new extent. May be null.public void setEyeDistance(double eyeDistance)
eyeDistance - the eye distance, in meters.public void setGlobeStateKey(GlobeStateKey globeStateKey)
globeStateKey - the new globe state key.public void setTimer(TimedExpirySupport timer)
timer - the new expiration timer.public void setVerticalExaggeration(double verticalExaggeration)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||