GEOS
3.9.1dev
|
Finds if two sets of SegmentStrings intersect. More...
#include <FastSegmentSetIntersectionFinder.h>
Public Member Functions | |
FastSegmentSetIntersectionFinder (SegmentString::ConstVect *baseSegStrings) | |
~FastSegmentSetIntersectionFinder ()=default | |
const SegmentSetMutualIntersector * | getSegmentSetIntersector () const |
bool | intersects (SegmentString::ConstVect *segStrings) |
bool | intersects (SegmentString::ConstVect *segStrings, SegmentIntersectionDetector *intDetector) |
Private Attributes | |
std::unique_ptr< MCIndexSegmentSetMutualIntersector > | segSetMutInt |
std::unique_ptr< geos::algorithm::LineIntersector > | lineIntersector |
Finds if two sets of SegmentStrings intersect.
Uses indexing for fast performance and to optimize repeated tests against a target set of lines. Short-circuited to return as soon an intersection is found.
Definition at line 51 of file FastSegmentSetIntersectionFinder.h.
geos::noding::FastSegmentSetIntersectionFinder::FastSegmentSetIntersectionFinder | ( | SegmentString::ConstVect * | baseSegStrings | ) |
|
default |
|
inline |
Gets the segment set intersector used by this class. This allows other uses of the same underlying indexed structure.
Definition at line 69 of file FastSegmentSetIntersectionFinder.h.
bool geos::noding::FastSegmentSetIntersectionFinder::intersects | ( | SegmentString::ConstVect * | segStrings | ) |
bool geos::noding::FastSegmentSetIntersectionFinder::intersects | ( | SegmentString::ConstVect * | segStrings, |
SegmentIntersectionDetector * | intDetector | ||
) |
|
private |
Definition at line 54 of file FastSegmentSetIntersectionFinder.h.
|
private |
Definition at line 53 of file FastSegmentSetIntersectionFinder.h.