NASA World Wind

gov.nasa.worldwind.ogc.collada.impl
Class ColladaMeshShape.ShapeData

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
          extended by gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
              extended by gov.nasa.worldwind.render.AbstractGeneralShape.ShapeData
                  extended by 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 in AbstractShape.AbstractShapeData.


Field Summary
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, verticalExaggeration
 
Constructor Summary
ColladaMeshShape.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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referenceCenter

protected Vec4 referenceCenter
Cached reference center for the shape.


renderMatrix

protected Matrix renderMatrix
Transform matrix to apply when rendering the shape. This matrix is determined by the COLLADA traversal matrix, and surfaceOrientationMatrix.


surfaceOrientationMatrix

protected Matrix surfaceOrientationMatrix
Matrix to orient the shape on the surface of the globe. Cached result of Globe.computeSurfaceOrientationAtPosition(gov.nasa.worldwind.geom.Position) evaluated at the reference position.

Constructor Detail

ColladaMeshShape.ShapeData

public ColladaMeshShape.ShapeData(DrawContext dc,
                                  AbstractGeneralShape shape)
Construct a cache entry for this shape.

Parameters:
dc - the current draw context.
shape - this shape.

NASA World Wind