20 #ifndef GEOS_OP_OVERLAY_OVERLAYOP_H
21 #define GEOS_OP_OVERLAY_OVERLAYOP_H
23 #include <geos/export.h>
25 #include <geos/operation/GeometryGraphOperation.h>
26 #include <geos/geomgraph/EdgeList.h>
27 #include <geos/algorithm/PointLocator.h>
28 #include <geos/geomgraph/PlanarGraph.h>
34 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
42 class GeometryFactory;
54 class ElevationMatrix;
95 static bool isResultOfOp(
int loc0,
int loc1, OpCode opCode);
143 void insertUniqueEdge(geomgraph::Edge *e);
157 std::vector<geom::Polygon*> *resultPolyList;
159 std::vector<geom::LineString*> *resultLineList;
161 std::vector<geom::Point*> *resultPointList;
163 void computeOverlay(OpCode opCode);
165 void insertUniqueEdges(std::vector<geomgraph::Edge*> *edges);
187 void computeLabelsFromDepths();
193 void replaceCollapsedEdges();
205 void copyPoints(
int argIndex);
215 void computeLabelling();
224 void mergeSymLabels();
226 void updateNodeLabelling();
245 void labelIncompleteNodes();
250 void labelIncompleteNode(geomgraph::Node *n,
int targetIndex);
263 void findResultAreaEdges(OpCode opCode);
269 void cancelDuplicateResultEdges();
276 std::vector<geom::Geometry*> *geomList);
283 std::vector<geom::Polygon*> *geomList);
290 std::vector<geom::LineString*> *geomList);
297 std::vector<geom::Point*> *nResultPointList,
298 std::vector<geom::LineString*> *nResultLineList,
299 std::vector<geom::Polygon*> *nResultPolyList);
302 std::vector<geomgraph::Edge *>dupEdges;
308 int mergeZ(geomgraph::Node *n,
const geom::Polygon *poly)
const;
321 bool avgzcomputed[2];
323 double getAverageZ(
int targetIndex);
326 ElevationMatrix *elevationMatrix;
330 void checkObviouslyWrongResult(OpCode opCode);
349 return OverlayOp::overlayOp(g0, g1, opCode);
362 #endif // ndef GEOS_OP_OVERLAY_OVERLAYOP_H