Class ColladaMeshShape.ShapeData
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
-
- gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
-
- gov.nasa.worldwind.render.AbstractGeneralShape.ShapeData
-
- gov.nasa.worldwind.ogc.collada.impl.ColladaMeshShape.ShapeData
-
- All Implemented Interfaces:
AVList
- Enclosing class:
- ColladaMeshShape
protected static class ColladaMeshShape.ShapeData extends AbstractGeneralShape.ShapeData
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
referenceCenter
Cached reference center for the shape.protected Matrix
renderMatrix
Transform matrix to apply when rendering the shape.protected Matrix
surfaceOrientationMatrix
Matrix to orient the shape on the surface of the globe.-
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, AbstractGeneralShape shape)
Construct a cache entry for this shape.
-
Method Summary
-
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, 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
-
surfaceOrientationMatrix
protected Matrix surfaceOrientationMatrix
Matrix to orient the shape on the surface of the globe. Cached result ofGlobe.computeSurfaceOrientationAtPosition(gov.nasa.worldwind.geom.Position)
evaluated at the reference position.
-
renderMatrix
protected Matrix renderMatrix
Transform matrix to apply when rendering the shape. This matrix is determined by the COLLADA traversal matrix, andsurfaceOrientationMatrix
.
-
referenceCenter
protected Vec4 referenceCenter
Cached reference center for the shape.
-
-
Constructor Detail
-
ShapeData
public ShapeData(DrawContext dc, AbstractGeneralShape shape)
Construct a cache entry for this shape.- Parameters:
dc
- the current draw context.shape
- this shape.
-
-