GEOS 3.11.1
|
Processes possible intersections detected by a Noder. More...
#include <SegmentIntersector.h>
Public Member Functions | |
virtual void | processIntersections (SegmentString *e0, std::size_t segIndex0, SegmentString *e1, std::size_t segIndex1)=0 |
virtual bool | isDone () const |
Reports whether the client of this class needs to continue testing all intersections in an arrangement. More... | |
Processes possible intersections detected by a Noder.
The SegmentIntersector is passed to a Noder. The addIntersections method is called whenever the Noder detects that two SegmentStrings might intersect. This class may be used either to find all intersections, or to detect the presence of an intersection. In the latter case, Noders may choose to short-circuit their computation by calling the isDone method. This class is an example of the Strategy pattern.
|
inlinevirtual |
Reports whether the client of this class needs to continue testing all intersections in an arrangement.
The default implementation always return false (process all intersections).
Reimplemented in geos::noding::IntersectionAdder, geos::noding::IntersectionFinderAdder, geos::noding::NodingIntersectionFinder, geos::noding::SegmentIntersectionDetector, and geos::noding::snapround::SnapRoundingIntersectionAdder.
|
pure virtual |
This method is called by clients of the SegmentIntersector interface to process intersections for two segments of the SegmentStrings being intersected.
Implemented in geos::noding::SegmentIntersectionDetector, geos::noding::IntersectionAdder, geos::noding::IntersectionFinderAdder, geos::noding::NodingIntersectionFinder, and geos::noding::snapround::SnapRoundingIntersectionAdder.