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>
58class GEOS_DLL IntersectionAdder:
public SegmentIntersector {
66 bool hasIntersectionVar;
68 bool hasProperInterior;
75 bool isSelfIntersection;
84 bool isTrivialIntersection(
const SegmentString* e0,
int segIndex0,
88 IntersectionAdder(
const IntersectionAdder& other);
89 IntersectionAdder& operator=(
const IntersectionAdder& rhs);
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; }
164 static bool isAdjacentSegments(
int i1,
int i2) {
165 return std::abs(i1 - i2) == 1;
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:49
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
bool hasInteriorIntersection()
Definition IntersectionAdder.h:147
const geom::Coordinate * getProperIntersectionPoint()
Definition IntersectionAdder.h:120
void processIntersections(SegmentString *e0, int segIndex0, SegmentString *e1, int segIndex1)
virtual bool isDone() const
Definition IntersectionAdder.h:173
bool hasProperInteriorIntersection()
Definition IntersectionAdder.h:141
bool hasProperIntersection()
Definition IntersectionAdder.h:134
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:46
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition PreparedLineString.h:27
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25