19 #ifndef GEOS_NODING_INTERSECTIONADDER_H
20 #define GEOS_NODING_INTERSECTIONADDER_H
22 #include <geos/export.h>
28 #include <geos/inline.h>
30 #include <geos/geom/Coordinate.h>
31 #include <geos/noding/SegmentIntersector.h>
42 class LineIntersector;
66 bool hasIntersectionVar;
68 bool hasProperInterior;
75 bool isSelfIntersection;
84 bool isTrivialIntersection(
const SegmentString* e0,
int segIndex0,
94 int numInteriorIntersections;
95 int numProperIntersections;
102 hasIntersectionVar(
false),
104 hasProperInterior(
false),
106 properIntersectionPoint(NULL),
109 numInteriorIntersections(0),
110 numProperIntersections(0),
121 return properIntersectionPoint;
124 bool hasIntersection() {
return hasIntersectionVar; }
159 void processIntersections(
164 static bool isAdjacentSegments(
int i1,
int i2) {
165 return std::abs(i1 - i2) == 1;
182 #endif // GEOS_NODING_INTERSECTIONADDER_H
bool hasProperIntersection()
Definition: IntersectionAdder.h:134
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:46
bool hasInteriorIntersection()
Definition: IntersectionAdder.h:147
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:49
Definition: IntersectionAdder.h:58
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:47
bool hasProperInteriorIntersection()
Definition: IntersectionAdder.h:141
const geom::Coordinate * getProperIntersectionPoint()
Definition: IntersectionAdder.h:120
virtual bool isDone() const
Definition: IntersectionAdder.h:173