20 #ifndef GEOS_NODING_SNAPROUND_MCINDEXSNAPROUNDER_H
21 #define GEOS_NODING_SNAPROUND_MCINDEXSNAPROUNDER_H
23 #include <geos/export.h>
25 #include <geos/noding/Noder.h>
26 #include <geos/noding/NodedSegmentString.h>
27 #include <geos/noding/snapround/MCIndexPointSnapper.h>
28 #include <geos/algorithm/LineIntersector.h>
29 #include <geos/geom/Coordinate.h>
30 #include <geos/geom/PrecisionModel.h>
36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
42 class LineIntersector;
85 li.setPrecisionModel(&pm);
89 return NodedSegmentString::getNodedSubstrings(*nodedSegStrings);
92 void computeNodes(std::vector<SegmentString*>* segStrings);
102 void computeVertexSnaps(std::vector<SegmentString*>& edges);
113 std::vector<SegmentString*>* nodedSegStrings;
115 std::auto_ptr<MCIndexPointSnapper> pointSnapper;
117 void snapRound(
MCIndexNoder& noder, std::vector<SegmentString*>* segStrings);
128 std::vector<SegmentString*>* segStrings,
129 std::vector<geom::Coordinate>& intersections);
135 void computeIntersectionSnaps(std::vector<geom::Coordinate>& snapPts);
143 void checkCorrectness(std::vector<SegmentString*>& inputSegmentStrings);
158 #endif // GEOS_NODING_SNAPROUND_MCINDEXSNAPROUNDER_H