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 Vec4centerPointprotected java.nio.FloatBuffergridNormalsprotected java.nio.FloatBuffergridVerticesprotected java.nio.FloatBuffersideNormalsprotected java.nio.FloatBuffersideVerticesprotected java.nio.FloatBuffertriangleNormalsprotected java.nio.FloatBuffertriangleVertices-
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 booleanisExpired(DrawContext dc)Indicates whether this entry has expired.booleanisValid(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.ShapeDataCacheEntryIndicates whether this shape data's globe state and vertical exaggeration are the same as that in the current draw context.- Overrides:
isValidin 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.ShapeDataCacheEntryIndicates whether this entry has expired.- Overrides:
isExpiredin classShapeDataCache.ShapeDataCacheEntry- Parameters:
dc- the current draw context.- Returns:
- true if the entry has expired, otherwise false.
-
-