GEOS 3.14.0dev
|
Detects and records an intersection between two SegmentString
s, if one exists.
More...
#include <SegmentIntersectionDetector.h>
Public Member Functions | |
SegmentIntersectionDetector (algorithm::LineIntersector *p_li) | |
void | setFindProper (bool p_findProper) |
void | setFindAllIntersectionTypes (bool p_findAllTypes) |
bool | hasIntersection () const |
Tests whether an intersection was found. | |
bool | hasProperIntersection () const |
Tests whether a proper intersection was found. | |
bool | hasNonProperIntersection () const |
Tests whether a non-proper intersection was found. | |
const geom::Coordinate * | getIntersection () const |
Gets the computed location of the intersection. Due to round-off, the location may not be exact. | |
const geom::CoordinateSequence * | getIntersectionSegments () const |
Gets the endpoints of the intersecting segments. | |
bool | isDone () const override |
Reports whether the client of this class needs to continue testing all intersections in an arrangement. | |
void | processIntersections (noding::SegmentString *e0, std::size_t segIndex0, noding::SegmentString *e1, std::size_t segIndex1) override |
This method is called by clients of the SegmentIntersector class to process intersections for two segments of the SegmentString s being intersected. | |
Detects and records an intersection between two SegmentString
s, if one exists.
This strategy can be configured to search for proper intersections. In this case, the presence of any intersection will still be recorded, but searching will continue until either a proper intersection has been found or no intersections are detected.
Only a single intersection is recorded.
|
inline |
Gets the computed location of the intersection. Due to round-off, the location may not be exact.
|
inline |
Gets the endpoints of the intersecting segments.
|
inline |
Tests whether an intersection was found.
|
inline |
Tests whether a non-proper intersection was found.
|
inline |
Tests whether a proper intersection was found.
true
if a proper intersection was found
|
inlineoverridevirtual |
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 from geos::noding::SegmentIntersector.
|
overridevirtual |
This method is called by clients of the SegmentIntersector class to process intersections for two segments of the SegmentString
s being intersected.
MonotoneChains
) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test). Implements geos::noding::SegmentIntersector.