17 #ifndef GEOS_GEOM_PREP_SEGMENTINTERSECTIONDETECTOR_H
18 #define GEOS_GEOM_PREP_SEGMENTINTERSECTIONDETECTOR_H
20 #include <geos/noding/SegmentIntersector.h>
21 #include <geos/algorithm/LineIntersector.h>
22 #include <geos/geom/Coordinate.h>
23 #include <geos/geom/CoordinateSequence.h>
24 #include <geos/noding/SegmentString.h>
26 using namespace geos::algorithm;
52 bool _hasIntersection;
53 bool _hasProperIntersection;
54 bool _hasNonProperIntersection;
66 _hasIntersection(
false),
67 _hasProperIntersection(
false),
68 _hasNonProperIntersection(
false),
80 void setFindProper(
bool findProper)
82 this->findProper = findProper;
85 void setFindAllIntersectionTypes(
bool findAllTypes)
87 this->findAllTypes = findAllTypes;
97 return _hasIntersection;
107 return _hasProperIntersection;
117 return _hasNonProperIntersection;
147 return _hasProperIntersection && _hasNonProperIntersection;
151 return _hasProperIntersection;
153 return _hasIntersection;
172 #endif // GEOS_GEOM_PREP_SEGMENTINTERSECTIONDETECTOR_H
Detects and records an intersection between two SegmentStrings, if one exists.
Definition: SegmentIntersectionDetector.h:44
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:61
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:46
bool hasNonProperIntersection() const
Definition: SegmentIntersectionDetector.h:115
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:50
const geom::CoordinateSequence * getIntersectionSegments() const
Definition: SegmentIntersectionDetector.h:137
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:48
const geom::Coordinate *const getIntersection() const
Definition: SegmentIntersectionDetector.h:126
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:60
bool hasIntersection() const
Definition: SegmentIntersectionDetector.h:95
bool isDone() const
Reports whether the client of this class needs to continue testing all intersections in an arrangemen...
Definition: SegmentIntersectionDetector.h:142
bool hasProperIntersection() const
Definition: SegmentIntersectionDetector.h:105