Package gov.nasa.worldwind.render
Class MultiResolutionPath.MultiResolutionPathData
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
-
- gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
-
- gov.nasa.worldwind.render.Path.PathData
-
- gov.nasa.worldwind.render.MultiResolutionPath.MultiResolutionPathData
-
- All Implemented Interfaces:
AVList
- Enclosing class:
- gov.nasa.worldwind.render.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
Fields Modifier and Type Field Description protected java.nio.IntBuffer
positionOrdinals
Maps indices of rendered positions to their corresponding ordinal numbers.-
Fields inherited from class gov.nasa.worldwind.render.Path.PathData
colorOffset, hasExtrusionPoints, path2DIndices, polePositions, positionPoints, renderedPath, splitPositions, 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, timerAdjustedEyeDistance, verticalExaggeration
-
-
Constructor Summary
Constructors Constructor Description MultiResolutionPathData(DrawContext dc, Path shape)
Creates a new MultiResolutionPathData with the specified draw context and path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.IntBuffer
getPositionOrdinals()
Returns a buffer mapping indices of rendered positions to their corresponding ordinal numbers.void
setPositionOrdinals(java.nio.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
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
-
-
-
-
Constructor Detail
-
MultiResolutionPathData
public 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 java.nio.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(java.nio.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.
-
-