Interface LayerDelaunay

  • All Known Implementing Classes:
    LayerTinfour

    public interface LayerDelaunay
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addLineString​(org.locationtech.jts.geom.LineString line, int attribute)  
      void addPolygon​(org.locationtech.jts.geom.Polygon newPoly, int attribute)
      Append a polygon into the triangulation
      void addVertex​(org.locationtech.jts.geom.Coordinate vertexCoordinate)
      Append a vertex into the triangulation
      List<Triangle> getNeighbors()
      When the processDelaunay has been called, retrieve results Triangle link triangles neighbor by their index.
      List<Triangle> getTriangles()
      When the processDelaunay has been called, retrieve results Triangle link unique vertices by their index.
      List<org.locationtech.jts.geom.Coordinate> getVertices()
      When the processDelaunay has been called, retrieve results vertices
      void hintInit​(org.locationtech.jts.geom.Envelope boundingBox, long polygonCount, long verticesCount)
      This optional method give an hint of the size of the delaunay process.
      void processDelaunay()
      Launch delaunay process
      void reset()
      Remove all data, come back to the constructor state
      void setMaxArea​(Double maxArea)
      Set the maximum area in m² Call processDelauney after to take account of this method.
      void setMinAngle​(Double minAngle)
      Set the minimum angle, if you wish to enforce the quality of the delaunay Call processDelauney after to take account of this method.
      void setRetrieveNeighbors​(boolean retrieve)
      Enable or Disable the collecting of triangles neighboring data.
    • Method Detail

      • hintInit

        void hintInit​(org.locationtech.jts.geom.Envelope boundingBox,
                      long polygonCount,
                      long verticesCount)
               throws LayerDelaunayError
        This optional method give an hint of the size of the delaunay process. Call this method before the first call of addPolygon This method is used only for optimization.
        Parameters:
        boundingBox - Bounding box of the delaunay mesh
        polygonCount - Size of the polygon count
        Throws:
        LayerDelaunayError
      • addPolygon

        void addPolygon​(org.locationtech.jts.geom.Polygon newPoly,
                        int attribute)
                 throws LayerDelaunayError
        Append a polygon into the triangulation
        Parameters:
        newPoly - Polygon to append into the mesh, internal rings will be inserted as holes.
        attribute - Polygon attribute. Triangle.getAttribute()
        Throws:
        LayerDelaunayError
      • addVertex

        void addVertex​(org.locationtech.jts.geom.Coordinate vertexCoordinate)
                throws LayerDelaunayError
        Append a vertex into the triangulation
        Parameters:
        vertexCoordinate - coordinate of the new vertex
        Throws:
        LayerDelaunayError
      • setMinAngle

        void setMinAngle​(Double minAngle)
                  throws LayerDelaunayError
        Set the minimum angle, if you wish to enforce the quality of the delaunay Call processDelauney after to take account of this method.
        Parameters:
        minAngle - Minimum angle in radiant
        Throws:
        LayerDelaunayError
      • setMaxArea

        void setMaxArea​(Double maxArea)
                 throws LayerDelaunayError
        Set the maximum area in m² Call processDelauney after to take account of this method.
        Parameters:
        maxArea - Maximum area in m²
        Throws:
        LayerDelaunayError
      • reset

        void reset()
        Remove all data, come back to the constructor state
      • setRetrieveNeighbors

        void setRetrieveNeighbors​(boolean retrieve)
        Enable or Disable the collecting of triangles neighboring data.
        Parameters:
        retrieve -