NASA World Wind

gov.nasa.worldwind.render
Class MultiResolutionPath.MultiResolutionPathData

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.Path.PathData
                  extended by gov.nasa.worldwind.render.MultiResolutionPath.MultiResolutionPathData
All Implemented Interfaces:
AVList
Enclosing class:
MultiResolutionPath

protected static class MultiResolutionPath.MultiResolutionPathData
extends Path.PathData

Subclass of PathData that adds the capability to map which ordinal number corresponds to each rendered position.


Field Summary
protected  IntBuffer positionOrdinals
          Maps indices of rendered positions to their corresponding ordinal numbers.
 
Fields inherited from class gov.nasa.worldwind.render.Path.PathData
colorOffset, hasExtrusionPoints, polePositions, positionPoints, renderedPath, tessellatedColors, tessellatedPositions, vertexCount, vertexStride
 
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
MultiResolutionPath.MultiResolutionPathData(DrawContext dc, Path shape)
          Creates a new MultiResolutionPathData with the specified draw context and path.
 
Method Summary
 IntBuffer getPositionOrdinals()
          Returns a buffer mapping indices of rendered positions to their corresponding ordinal numbers.
 void setPositionOrdinals(IntBuffer posOrdinals)
          Specifies a buffer that maps indices of rendered positions to their corresponding ordinal numbers.
 
Methods inherited from class gov.nasa.worldwind.render.Path.PathData
getColorOffset, getPolePositions, getPositionPoints, getRenderedPath, getTessellatedColors, getTessellatedPositions, getVertexCount, getVertexStride, isHasExtrusionPoints, setColorOffset, setHasExtrusionPoints, setPolePositions, setPositionPoints, setRenderedPath, setTessellatedColors, setTessellatedPositions, setVertexCount, setVertexStride
 
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

positionOrdinals

protected IntBuffer positionOrdinals
Maps indices of rendered positions to their corresponding ordinal numbers.

Constructor Detail

MultiResolutionPath.MultiResolutionPathData

public MultiResolutionPath.MultiResolutionPathData(DrawContext dc,
                                                   Path shape)
Creates a new MultiResolutionPathData with the specified draw context and path.

Parameters:
dc - the draw context associated with this path data.
shape - the shape associated with this path data.
Method Detail

getPositionOrdinals

public IntBuffer getPositionOrdinals()
Returns a buffer mapping indices of rendered positions to their corresponding ordinal numbers.

Returns:
a buffer mapping positions to ordinal numbers.

setPositionOrdinals

public void setPositionOrdinals(IntBuffer posOrdinals)
Specifies a buffer that maps indices of rendered positions to their corresponding ordinal numbers.

Parameters:
posOrdinals - a buffer that maps positions to ordinal numbers.

NASA World Wind