Class GeoPolygonFactory.EdgeBuffer

  • Enclosing class:
    GeoPolygonFactory

    private static class GeoPolygonFactory.EdgeBuffer
    extends java.lang.Object
    Class representing a pool of unused edges, all linked together by vertices.
    • Constructor Detail

      • EdgeBuffer

        public EdgeBuffer​(java.util.List<GeoPoint> pointList,
                          java.util.BitSet internalEdges,
                          int startPlaneStartIndex,
                          int startPlaneEndIndex,
                          SidedPlane startPlane)
        Constructor.
        Parameters:
        pointList - is the list of points.
        internalEdges - is the list of edges that are internal (includes return edge)
        startPlaneStartIndex - is the index of the startPlane's starting point
        startPlaneEndIndex - is the index of the startPlane's ending point
        startPlane - is the starting plane
    • Method Detail

      • replace

        public void replace​(java.util.List<GeoPolygonFactory.Edge> removeList,
                            GeoPolygonFactory.Edge newEdge)
        Replace a list of edges with a new edge.
        Parameters:
        removeList - is the list of edges to remove.
        newEdge - is the edge to add.
      • clear

        public void clear()
        Clear all edges.
      • size

        public int size()
        Get the size of the edge buffer.
        Returns:
        the size.
      • iterator

        public java.util.Iterator<GeoPolygonFactory.Edge> iterator()
        Get an iterator to iterate over edges.
        Returns:
        the iterator.