|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.cache.ShapeDataCache.ShapeDataCacheEntry
gov.nasa.worldwind.render.AbstractShape.AbstractShapeData
gov.nasa.worldwind.render.Path.PathData
protected static class Path.PathData
Maintains globe-dependent computed data such as Cartesian vertices and extents. One entry exists for each
distinct globe that this shape encounters in calls to AbstractShape.render(DrawContext). See AbstractShape.
| Field Summary | |
|---|---|
protected int |
colorOffset
Indicates the offset in number of floats to the first RGBA color tuple in renderedPath. |
protected boolean |
hasExtrusionPoints
Indicates whether the rendered path has extrusion points in addition to path points. |
protected IntBuffer |
polePositions
Indices to the renderedPath identifying the vertices of the originally specified boundary
positions and their corresponding terrain point. |
protected IntBuffer |
positionPoints
Indices to the renderedPath identifying the vertices of the originally specified boundary
positions. |
protected FloatBuffer |
renderedPath
The model coordinate vertices to render, all relative to this shape data's reference center. |
protected ArrayList<Color> |
tessellatedColors
The colors corresponding to each tessellated position, or null if the path's
positionColors is null. |
protected ArrayList<Position> |
tessellatedPositions
The positions formed from applying path type and terrain conformance. |
protected int |
vertexCount
Indicates the number of vertices represented by renderedPath. |
protected int |
vertexStride
Indicates the stride in number of floats between the first element of consecutive vertices in renderedPath. |
| 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 | |
|---|---|
Path.PathData(DrawContext dc,
Path shape)
|
|
| Method Summary | |
|---|---|
int |
getColorOffset()
Indicates the offset in number of floats to the first RGBA color tuple in renderedPath. |
IntBuffer |
getPolePositions()
Returns a buffer of indices into the rendered path ( renderedPath that identify the top and bottom
vertices of this path's vertical line segments. |
IntBuffer |
getPositionPoints()
Returns a buffer of indices into the rendered path ( renderedPath that identify the originally
specified positions that remain after tessellation. |
FloatBuffer |
getRenderedPath()
The Cartesian coordinates of the tessellated positions. |
List<Color> |
getTessellatedColors()
Indicates the colors corresponding to each position in tessellatedPositions, or
null if the path does not have per-position colors. |
List<Position> |
getTessellatedPositions()
The positions resulting from tessellating this path. |
int |
getVertexCount()
Indicates the number of vertices in renderedPath. |
int |
getVertexStride()
Indicates the stride in number of floats between the first element of consecutive vertices in renderedPath. |
boolean |
isHasExtrusionPoints()
Indicates whether this path is extruded and the extrusion points have been computed. |
void |
setColorOffset(int offset)
Specifies the offset in number of floats to the first RGBA color tuple in renderedPath. |
void |
setHasExtrusionPoints(boolean hasExtrusionPoints)
|
void |
setPolePositions(IntBuffer polePositions)
|
void |
setPositionPoints(IntBuffer posPoints)
|
void |
setRenderedPath(FloatBuffer renderedPath)
|
void |
setTessellatedColors(ArrayList<Color> tessellatedColors)
Specifies the colors corresponding to each position in tessellatedPositions, or
null to specify that the path does not have per-position colors. |
void |
setTessellatedPositions(ArrayList<Position> tessellatedPositions)
|
void |
setVertexCount(int count)
Specifies the number of vertices in renderedPath. |
void |
setVertexStride(int stride)
Specifies the stride in number of floats between the first element of consecutive vertices in renderedPath. |
| 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 |
|---|
protected int colorOffset
renderedPath. This is
0 if renderedPath has no RGBA color tuples.
protected boolean hasExtrusionPoints
protected IntBuffer polePositions
renderedPath identifying the vertices of the originally specified boundary
positions and their corresponding terrain point. This is used to draw vertical lines at those positions when
the path is extruded.
protected IntBuffer positionPoints
renderedPath identifying the vertices of the originally specified boundary
positions. (Not their terrain points as well, as polePositions does.)
protected FloatBuffer renderedPath
protected ArrayList<Color> tessellatedColors
null if the path's
positionColors is null.
protected ArrayList<Position> tessellatedPositions
protected int vertexCount
renderedPath.
protected int vertexStride
renderedPath.
| Constructor Detail |
|---|
public Path.PathData(DrawContext dc,
Path shape)
| Method Detail |
|---|
public int getColorOffset()
renderedPath. This
returns 0 if renderedPath has no RGBA color tuples.
renderedPath.public IntBuffer getPolePositions()
renderedPath that identify the top and bottom
vertices of this path's vertical line segments.
public IntBuffer getPositionPoints()
renderedPath that identify the originally
specified positions that remain after tessellation. These positions are those of the position dots, if
drawn.
public FloatBuffer getRenderedPath()
public List<Color> getTessellatedColors()
tessellatedPositions, or
null if the path does not have per-position colors.
null if the path does not have
per-position colors.public List<Position> getTessellatedPositions()
public int getVertexCount()
renderedPath.
renderedPath.public int getVertexStride()
renderedPath.
renderedPath.public boolean isHasExtrusionPoints()
public void setColorOffset(int offset)
renderedPath. Specify
0 if renderedPath has no RGBA color tuples.
offset - the offset in number of floats to the first RGBA color tuple in renderedPath.public void setHasExtrusionPoints(boolean hasExtrusionPoints)
public void setPolePositions(IntBuffer polePositions)
public void setPositionPoints(IntBuffer posPoints)
public void setRenderedPath(FloatBuffer renderedPath)
public void setTessellatedColors(ArrayList<Color> tessellatedColors)
tessellatedPositions, or
null to specify that the path does not have per-position colors. The entries in the specified
list must have a one-to-one correspondence with the entries in tessellatedPositions.
tessellatedColors - the colors corresponding to each path position, or null if the path
does not have per-position colors.public void setTessellatedPositions(ArrayList<Position> tessellatedPositions)
public void setVertexCount(int count)
renderedPath. Specify 0 if renderedPath
contains no vertices.
count - the the number of verices in renderedPath.public void setVertexStride(int stride)
renderedPath.
stride - the stride in number of floats between vertices in in renderedPath.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||