Class Path.PathData

    • Field Detail

      • tessellatedPositions

        protected java.util.ArrayList<Position> tessellatedPositions
        The positions formed from applying path type and terrain conformance.
      • tessellatedColors

        protected java.util.ArrayList<java.awt.Color> tessellatedColors
        The colors corresponding to each tessellated position, or null if the path's positionColors is null.
      • renderedPath

        protected java.nio.FloatBuffer renderedPath
        The model coordinate vertices to render, all relative to this shape data's reference center. If the path is extruded, the base vertices are interleaved: Vcap, Vbase, Vcap, Vbase, ...
      • polePositions

        protected java.nio.IntBuffer polePositions
        Indices to the 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.
      • positionPoints

        protected java.nio.IntBuffer positionPoints
        Indices to the renderedPath identifying the vertices of the originally specified boundary positions. (Not their terrain points as well, as polePositions does.)
      • path2DIndices

        protected java.nio.IntBuffer path2DIndices
        Indices of tessellated path lines when using 2D globe and the path crosses the dateline.
      • splitPositions

        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. Used only when the path's positions span the dateline and a 2D globe is being used.
      • hasExtrusionPoints

        protected boolean hasExtrusionPoints
        Indicates whether the rendered path has extrusion points in addition to path points.
      • colorOffset

        protected int colorOffset
        Indicates the offset in number of floats to the first RGBA color tuple in renderedPath. This is 0 if renderedPath has no RGBA color tuples.
      • vertexStride

        protected int vertexStride
        Indicates the stride in number of floats between the first element of consecutive vertices in renderedPath.
      • vertexCount

        protected int vertexCount
        Indicates the number of vertices represented by renderedPath.
    • Method Detail

      • getTessellatedPositions

        public java.util.List<Position> getTessellatedPositions()
        The positions resulting from tessellating this path. If the path's attributes don't cause tessellation, then the positions returned are those originally specified.
        Returns:
        the positions computed by path tessellation.
      • setTessellatedPositions

        public void setTessellatedPositions​(java.util.ArrayList<Position> tessellatedPositions)
      • getTessellatedColors

        public 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.
        Returns:
        the colors corresponding to each path position, or null if the path does not have per-position colors.
      • setTessellatedColors

        public 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. The entries in the specified list must have a one-to-one correspondence with the entries in tessellatedPositions.
        Parameters:
        tessellatedColors - the colors corresponding to each path position, or null if the path does not have per-position colors.
      • getRenderedPath

        public java.nio.FloatBuffer getRenderedPath()
        The Cartesian coordinates of the tessellated positions. If path verticals are enabled, this path also contains the ground points corresponding to the path positions.
        Returns:
        the Cartesian coordinates of the tessellated positions.
      • setRenderedPath

        public void setRenderedPath​(java.nio.FloatBuffer renderedPath)
      • getPositionPoints

        public java.nio.IntBuffer getPositionPoints()
        Returns a buffer of indices into the rendered path (renderedPath that identify the originally specified positions that remain after tessellation. These positions are those of the position dots, if drawn.
        Returns:
        the path's originally specified positions that survived tessellation.
      • setPositionPoints

        public void setPositionPoints​(java.nio.IntBuffer posPoints)
      • getPolePositions

        public 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.
        Returns:
        the path's pole positions.
      • setPolePositions

        public void setPolePositions​(java.nio.IntBuffer polePositions)
      • isHasExtrusionPoints

        public boolean isHasExtrusionPoints()
        Indicates whether this path is extruded and the extrusion points have been computed.
        Returns:
        true if the path is extruded and the extrusion points are computed, otherwise false.
      • setHasExtrusionPoints

        public void setHasExtrusionPoints​(boolean hasExtrusionPoints)
      • getColorOffset

        public int getColorOffset()
        Indicates the offset in number of floats to the first RGBA color tuple in renderedPath. This returns 0 if renderedPath has no RGBA color tuples.
        Returns:
        the offset in number of floats to the first RGBA color tuple in renderedPath.
      • setColorOffset

        public void setColorOffset​(int offset)
        Specifies the offset in number of floats to the first RGBA color tuple in renderedPath. Specify 0 if renderedPath has no RGBA color tuples.
        Parameters:
        offset - the offset in number of floats to the first RGBA color tuple in renderedPath.
      • getVertexStride

        public int getVertexStride()
        Indicates the stride in number of floats between the first element of consecutive vertices in renderedPath.
        Returns:
        the stride in number of floats between vertices in in renderedPath.
      • setVertexStride

        public void setVertexStride​(int stride)
        Specifies the stride in number of floats between the first element of consecutive vertices in renderedPath.
        Parameters:
        stride - the stride in number of floats between vertices in in renderedPath.
      • getVertexCount

        public int getVertexCount()
        Indicates the number of vertices in renderedPath.
        Returns:
        the the number of verices in renderedPath.
      • setVertexCount

        public void setVertexCount​(int count)
        Specifies the number of vertices in renderedPath. Specify 0 if renderedPath contains no vertices.
        Parameters:
        count - the the number of vertices in renderedPath.