19 #ifndef GEOS_TRIANGULATE_VORONOIDIAGRAMBUILDER_H
20 #define GEOS_TRIANGULATE_VORONOIDIAGRAMBUILDER_H
22 #include <geos/triangulate/quadedge/QuadEdgeSubdivision.h>
23 #include <geos/geom/Envelope.h>
30 class CoordinateSequence;
31 class GeometryCollection;
32 class GeometryFactory;
34 namespace triangulate {
121 std::unique_ptr<geom::CoordinateSequence> siteCoords;
123 std::unique_ptr<quadedge::QuadEdgeSubdivision> subdiv;
129 static std::unique_ptr<geom::GeometryCollection>
130 clipGeometryCollection(std::vector<std::unique_ptr<geom::Geometry>> & geoms,
const geom::Envelope& clipEnv);
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A utility class which creates Voronoi Diagrams from collections of points.
Definition: VoronoiDiagramBuilder.h:46
std::unique_ptr< geom::Geometry > getDiagramEdges(const geom::GeometryFactory &geomFact)
Gets the faces of the computed diagram as a geom::GeometryCollection of geom::LineStrings,...
void setClipEnvelope(const geom::Envelope *clipEnv)
Sets the envelope to clip the diagram to.
void setSites(const geom::CoordinateSequence &coords)
Sets the sites (point or vertices) which will be diagrammed from a collection of geom::Coordinates.
void setSites(const geom::Geometry &geom)
Sets the sites (point or vertices) which will be diagrammed. All vertices of the given geometry will ...
std::unique_ptr< quadedge::QuadEdgeSubdivision > getSubdivision()
Gets the quadedge::QuadEdgeSubdivision which models the computed diagram.
void setTolerance(double tolerance)
Sets the snapping tolerance which will be used to improved the robustness of the triangulation comput...
VoronoiDiagramBuilder()
Creates a new Voronoi diagram builder.
std::unique_ptr< geom::GeometryCollection > getDiagram(const geom::GeometryFactory &geomFact)
Gets the faces of the computed diagram as a geom::GeometryCollection of geom::Polygons,...
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26