GEOS  3.9.1dev
Public Member Functions | Protected Member Functions | List of all members
geos::noding::SegmentIntersector Class Referenceabstract

Processes possible intersections detected by a Noder. More...

#include <SegmentIntersector.h>

Inheritance diagram for geos::noding::SegmentIntersector:
[legend]

Public Member Functions

virtual void processIntersections (SegmentString *e0, size_t segIndex0, SegmentString *e1, 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...
 
virtual ~SegmentIntersector ()
 

Protected Member Functions

 SegmentIntersector ()
 

Detailed Description

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.

Version
1.7

Definition at line 48 of file noding/SegmentIntersector.h.

Constructor & Destructor Documentation

virtual geos::noding::SegmentIntersector::~SegmentIntersector ( )
inlinevirtual

Definition at line 78 of file noding/SegmentIntersector.h.

geos::noding::SegmentIntersector::SegmentIntersector ( )
inlineprotected

Definition at line 83 of file noding/SegmentIntersector.h.

Member Function Documentation

virtual bool geos::noding::SegmentIntersector::isDone ( ) const
inlinevirtual

Reports whether the client of this class needs to continue testing all intersections in an arrangement.

Returns
true if there is not need to continue testing segments

The default implementation always return false (process all intersections).

Reimplemented in geos::noding::IntersectionAdder, geos::noding::NodingIntersectionFinder, geos::noding::SegmentIntersectionDetector, geos::noding::snapround::SnapRoundingIntersectionAdder, geos::noding::IntersectionFinderAdder, and geos::noding::snap::SnappingIntersectionAdder.

Definition at line 72 of file noding/SegmentIntersector.h.

virtual void geos::noding::SegmentIntersector::processIntersections ( SegmentString e0,
size_t  segIndex0,
SegmentString e1,
size_t  segIndex1 
)
pure virtual

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