#include <SingleInteriorIntersectionFinder.h>
Public Member Functions | |
SingleInteriorIntersectionFinder (algorithm::LineIntersector &newLi) | |
Creates an intersection finder which finds an interior intersection if one exists. | |
bool | hasIntersection () const |
Tests whether an intersection was found. | |
const geom::Coordinate & | getInteriorIntersection () const |
Gets the computed location of the intersection. Due to round-off, the location may not be exact. | |
const std::vector < geom::Coordinate > & | getIntersectionSegments () const |
Gets the endpoints of the intersecting segments. | |
void | processIntersections (SegmentString *e0, int segIndex0, SegmentString *e1, int segIndex1) |
This method is called by clients of the SegmentIntersector class to process intersections for two segments of the SegmentStrings being intersected. | |
bool | isDone () const |
Reports whether the client of this class needs to continue testing all intersections in an arrangement. |
geos::noding::SingleInteriorIntersectionFinder::SingleInteriorIntersectionFinder | ( | algorithm::LineIntersector & | newLi | ) | [inline] |
Creates an intersection finder which finds an interior intersection if one exists.
li | the LineIntersector to use |
bool geos::noding::SingleInteriorIntersectionFinder::hasIntersection | ( | ) | const [inline] |
Tests whether an intersection was found.
const geom::Coordinate& geos::noding::SingleInteriorIntersectionFinder::getInteriorIntersection | ( | ) | const [inline] |
Gets the computed location of the intersection. Due to round-off, the location may not be exact.
const std::vector<geom::Coordinate>& geos::noding::SingleInteriorIntersectionFinder::getIntersectionSegments | ( | ) | const [inline] |
Gets the endpoints of the intersecting segments.
void geos::noding::SingleInteriorIntersectionFinder::processIntersections | ( | SegmentString * | e0, | |
int | segIndex0, | |||
SegmentString * | e1, | |||
int | segIndex1 | |||
) | [virtual] |
This method is called by clients of the SegmentIntersector class to process intersections for two segments of the SegmentStrings being intersected.
Note that some clients (such as 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.
bool geos::noding::SingleInteriorIntersectionFinder::isDone | ( | ) | const [inline, virtual] |
Reports whether the client of this class needs to continue testing all intersections in an arrangement.
Reimplemented from geos::noding::SegmentIntersector.