GEOS  3.9.1dev
Public Member Functions | Private Attributes | List of all members
geos::noding::FastSegmentSetIntersectionFinder Class Reference

Finds if two sets of SegmentStrings intersect. More...

#include <FastSegmentSetIntersectionFinder.h>

Public Member Functions

 FastSegmentSetIntersectionFinder (SegmentString::ConstVect *baseSegStrings)
 
 ~FastSegmentSetIntersectionFinder ()=default
 
const SegmentSetMutualIntersectorgetSegmentSetIntersector () const
 
bool intersects (SegmentString::ConstVect *segStrings)
 
bool intersects (SegmentString::ConstVect *segStrings, SegmentIntersectionDetector *intDetector)
 

Private Attributes

std::unique_ptr< MCIndexSegmentSetMutualIntersectorsegSetMutInt
 
std::unique_ptr< geos::algorithm::LineIntersectorlineIntersector
 

Detailed Description

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.

Version
1.7

Definition at line 51 of file FastSegmentSetIntersectionFinder.h.

Constructor & Destructor Documentation

geos::noding::FastSegmentSetIntersectionFinder::FastSegmentSetIntersectionFinder ( SegmentString::ConstVect baseSegStrings)
geos::noding::FastSegmentSetIntersectionFinder::~FastSegmentSetIntersectionFinder ( )
default

Member Function Documentation

const SegmentSetMutualIntersector* geos::noding::FastSegmentSetIntersectionFinder::getSegmentSetIntersector ( ) const
inline

Gets the segment set intersector used by this class. This allows other uses of the same underlying indexed structure.

Returns
the segment set intersector used

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 
)

Member Data Documentation

std::unique_ptr<geos::algorithm::LineIntersector> geos::noding::FastSegmentSetIntersectionFinder::lineIntersector
private

Definition at line 54 of file FastSegmentSetIntersectionFinder.h.

std::unique_ptr<MCIndexSegmentSetMutualIntersector> geos::noding::FastSegmentSetIntersectionFinder::segSetMutInt
private

Definition at line 53 of file FastSegmentSetIntersectionFinder.h.


The documentation for this class was generated from the following file: