Package gov.nasa.worldwindx.examples
Class RadarVolume.ShapeData
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
-
- gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
-
- gov.nasa.worldwindx.examples.RadarVolume.ShapeData
-
- All Implemented Interfaces:
AVList
- Enclosing class:
- RadarVolume
protected static class RadarVolume.ShapeData extends AbstractShape.AbstractShapeData
This class holds globe-specific data for this shape. It's managed via the shape-data cache inAbstractShape.AbstractShapeData
.
-
-
Field Summary
Fields Modifier and Type Field Description protected Vec4
centerPoint
protected java.nio.FloatBuffer
gridNormals
protected java.nio.FloatBuffer
gridVertices
protected java.nio.FloatBuffer
sideNormals
protected java.nio.FloatBuffer
sideVertices
protected java.nio.FloatBuffer
triangleNormals
protected java.nio.FloatBuffer
triangleVertices
-
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, timerAdjustedEyeDistance, verticalExaggeration
-
-
Constructor Summary
Constructors Constructor Description ShapeData(DrawContext dc, RadarVolume shape)
Construct a cache entry using the boundaries of this shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
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
adjustTimer, getExtent, getEyeDistance, getGlobeStateKey, getTimer, getVerticalExaggeration, 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
-
gridVertices
protected java.nio.FloatBuffer gridVertices
-
gridNormals
protected java.nio.FloatBuffer gridNormals
-
triangleVertices
protected java.nio.FloatBuffer triangleVertices
-
triangleNormals
protected java.nio.FloatBuffer triangleNormals
-
sideVertices
protected java.nio.FloatBuffer sideVertices
-
sideNormals
protected java.nio.FloatBuffer sideNormals
-
centerPoint
protected Vec4 centerPoint
-
-
Constructor Detail
-
ShapeData
public ShapeData(DrawContext dc, RadarVolume shape)
Construct a cache entry using the boundaries of this shape.- Parameters:
dc
- the current draw context.shape
- this shape.
-
-
Method Detail
-
isValid
public boolean isValid(DrawContext dc)
Description copied from class:ShapeDataCache.ShapeDataCacheEntry
Indicates whether this shape data's globe state and vertical exaggeration are the same as that in the current draw context.- Overrides:
isValid
in classShapeDataCache.ShapeDataCacheEntry
- Parameters:
dc
- the current draw context.- Returns:
- true if the shape is valid, otherwise false.
-
isExpired
public boolean isExpired(DrawContext dc)
Description copied from class:ShapeDataCache.ShapeDataCacheEntry
Indicates whether this entry has expired.- Overrides:
isExpired
in classShapeDataCache.ShapeDataCacheEntry
- Parameters:
dc
- the current draw context.- Returns:
- true if the entry has expired, otherwise false.
-
-