protected static class Path.PathData extends AbstractShape.AbstractShapeData
AbstractShape.render(DrawContext)
. See AbstractShape
.Modifier and Type | Field and Description |
---|---|
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 java.nio.IntBuffer |
path2DIndices
Indices of tessellated path lines when using 2D globe and the path crosses the dateline.
|
protected java.nio.IntBuffer |
polePositions
Indices to the
renderedPath identifying the vertices of the originally specified boundary
positions and their corresponding terrain point. |
protected java.nio.IntBuffer |
positionPoints
Indices to the
renderedPath identifying the vertices of the originally specified boundary
positions. |
protected java.nio.FloatBuffer |
renderedPath
The model coordinate vertices to render, all relative to this shape data's reference center.
|
protected java.util.ArrayList<java.lang.Integer> |
splitPositions
Indices of the tessellated positions at which new lines must be formed rather than continuing the previous
line.
|
protected java.util.ArrayList<java.awt.Color> |
tessellatedColors
The colors corresponding to each tessellated position, or
null if the path's
positionColors is null . |
protected java.util.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 . |
frameNumber, referenceDistance, referencePoint, vboCacheKey
extent, eyeDistance, globeStateKey, lastUsed, timer, timerAdjustedEyeDistance, verticalExaggeration
Constructor and Description |
---|
PathData(DrawContext dc,
Path shape) |
Modifier and Type | Method and Description |
---|---|
int |
getColorOffset()
Indicates the offset in number of floats to the first RGBA color tuple in
renderedPath . |
java.nio.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. |
java.nio.IntBuffer |
getPositionPoints()
Returns a buffer of indices into the rendered path (
renderedPath that identify the originally
specified positions that remain after tessellation. |
java.nio.FloatBuffer |
getRenderedPath()
The Cartesian coordinates of the tessellated positions.
|
java.util.List<java.awt.Color> |
getTessellatedColors()
Indicates the colors corresponding to each position in
tessellatedPositions , or
null if the path does not have per-position colors. |
java.util.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(java.nio.IntBuffer polePositions) |
void |
setPositionPoints(java.nio.IntBuffer posPoints) |
void |
setRenderedPath(java.nio.FloatBuffer renderedPath) |
void |
setTessellatedColors(java.util.ArrayList<java.awt.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(java.util.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 . |
getFrameNumber, getReferenceDistance, getReferencePoint, getVboCacheKey, setFrameNumber, setReferenceDistance, setReferencePoint, setVboCacheKey
adjustTimer, getExtent, getEyeDistance, getGlobeStateKey, getTimer, getVerticalExaggeration, isExpired, isValid, restartTimer, setExpired, setExtent, setEyeDistance, setGlobeStateKey, setTimer, setVerticalExaggeration
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
protected int colorOffset
renderedPath
. This is
0
if renderedPath
has no RGBA color tuples.protected boolean hasExtrusionPoints
protected java.nio.IntBuffer path2DIndices
protected java.nio.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 java.nio.IntBuffer positionPoints
renderedPath
identifying the vertices of the originally specified boundary
positions. (Not their terrain points as well, as polePositions
does.)protected java.nio.FloatBuffer renderedPath
protected java.util.ArrayList<java.lang.Integer> splitPositions
protected java.util.ArrayList<java.awt.Color> tessellatedColors
null
if the path's
positionColors
is null
.protected java.util.ArrayList<Position> tessellatedPositions
protected int vertexCount
renderedPath
.protected int vertexStride
renderedPath
.public PathData(DrawContext dc, Path shape)
public int getColorOffset()
renderedPath
. This
returns 0
if renderedPath
has no RGBA color tuples.renderedPath
.public java.nio.IntBuffer getPolePositions()
renderedPath
that identify the top and bottom
vertices of this path's vertical line segments.public java.nio.IntBuffer getPositionPoints()
renderedPath
that identify the originally
specified positions that remain after tessellation. These positions are those of the position dots, if
drawn.public java.nio.FloatBuffer getRenderedPath()
public java.util.List<java.awt.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 java.util.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(java.nio.IntBuffer polePositions)
public void setPositionPoints(java.nio.IntBuffer posPoints)
public void setRenderedPath(java.nio.FloatBuffer renderedPath)
public void setTessellatedColors(java.util.ArrayList<java.awt.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(java.util.ArrayList<Position> tessellatedPositions)
public void setVertexCount(int count)
renderedPath
. Specify 0 if renderedPath
contains no vertices.count
- the the number of vertices in renderedPath
.public void setVertexStride(int stride)
renderedPath
.stride
- the stride in number of floats between vertices in in renderedPath
.