19#ifndef GEOS_OP_OVERLAY_POLYGONBUILDER_H
20#define GEOS_OP_OVERLAY_POLYGONBUILDER_H
22#include <geos/export.h>
28#pragma warning(disable: 4251)
61class GEOS_DLL PolygonBuilder {
81 void add(
const std::vector<geomgraph::DirectedEdge*> *dirEdges,
82 const std::vector<geomgraph::Node*> *nodes);
85 std::vector<geom::Geometry*>* getPolygons();
97 std::vector<geomgraph::EdgeRing*> shellList;
106 void buildMaximalEdgeRings(
107 const std::vector<geomgraph::DirectedEdge*> *dirEdges,
108 std::vector<MaximalEdgeRing*> &maxEdgeRings);
111 void buildMinimalEdgeRings(
112 std::vector<MaximalEdgeRing*> &maxEdgeRings,
113 std::vector<geomgraph::EdgeRing*> &newShellList,
114 std::vector<geomgraph::EdgeRing*> &freeHoleList,
115 std::vector<MaximalEdgeRing*> &edgeRings);
142 std::vector<MinimalEdgeRing*> *minEdgeRings);
151 void sortShellsAndHoles(std::vector<MaximalEdgeRing*> &edgeRings,
152 std::vector<geomgraph::EdgeRing*> &newShellList,
153 std::vector<geomgraph::EdgeRing*> &freeHoleList);
169 void placeFreeHoles(std::vector<geomgraph::EdgeRing*>& newShellList,
170 std::vector<geomgraph::EdgeRing*>& freeHoleList);
192 std::vector<geomgraph::EdgeRing*>& newShellList);
194 std::vector<geom::Geometry*>* computePolygons(
195 std::vector<geomgraph::EdgeRing*>& newShellList);
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:67
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
A directed EdgeEnd.
Definition geomgraph/DirectedEdge.h:44
Definition geomgraph/EdgeRing.h:59
Definition geomgraph/Node.h:62
Represents a directed graph which is embeddable in a planar surface.
Definition geomgraph/PlanarGraph.h:75
A ring of edges which may contain nodes of degree > 2.
Definition MaximalEdgeRing.h:66
A ring of Edges with the property that no node has degree greater than 2.
Definition MinimalEdgeRing.h:56
bool containsPoint(const geom::Coordinate &p)
Checks the current set of shells (with their associated holes) to see if any of them contain the poin...
void add(const std::vector< geomgraph::DirectedEdge * > *dirEdges, const std::vector< geomgraph::Node * > *nodes)
void add(geomgraph::PlanarGraph *graph)
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Contains classes that perform a topological overlay to compute boolean spatial functions.
Definition BufferBuilder.h:62
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25