Class GeoPolygonFactory.EdgeBuffer

java.lang.Object
org.apache.lucene.spatial3d.geom.GeoPolygonFactory.EdgeBuffer
Enclosing class:
GeoPolygonFactory

private static class GeoPolygonFactory.EdgeBuffer extends Object
Class representing a pool of unused edges, all linked together by vertices.
  • Field Details

  • Constructor Details

    • EdgeBuffer

      public EdgeBuffer(List<GeoPoint> pointList, 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 Details

    • getPrevious

      public GeoPolygonFactory.Edge getPrevious(GeoPolygonFactory.Edge currentEdge)
      Get the previous edge.
      Parameters:
      currentEdge - is the current edge.
      Returns:
      the previous edge, if found.
    • getNext

      public GeoPolygonFactory.Edge getNext(GeoPolygonFactory.Edge currentEdge)
      Get the next edge.
      Parameters:
      currentEdge - is the current edge.
      Returns:
      the next edge, if found.
    • replace

      public void replace(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 Iterator<GeoPolygonFactory.Edge> iterator()
      Get an iterator to iterate over edges.
      Returns:
      the iterator.
    • pickOne

      public GeoPolygonFactory.Edge pickOne()
      Return a first edge.
      Returns:
      the edge.