GEOS 3.6.2
noding/SegmentIntersector.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#ifndef GEOS_NODING_SEGMENTINTERSECTOR_H
16#define GEOS_NODING_SEGMENTINTERSECTOR_H
17
18#include <geos/export.h>
19
20#include <geos/inline.h>
21
22// Forward declarations
23namespace geos {
24 namespace noding {
25 class SegmentString;
26 }
27}
28
29namespace geos {
30namespace noding { // geos.noding
31
47class GEOS_DLL SegmentIntersector {
48
49public:
50
58 SegmentString* e0, int segIndex0,
59 SegmentString* e1, int segIndex1)=0;
60
70 virtual bool isDone() const {
71 return false;
72 }
73
74 virtual ~SegmentIntersector()
75 { }
76
77protected:
78
79 SegmentIntersector() {}
80
81};
82
85
86} // namespace geos.noding
87} // namespace geos
88
89#endif // GEOS_NODING_SEGMENTINTERSECTOR_H
Processes possible intersections detected by a Noder.
Definition noding/SegmentIntersector.h:47
virtual void processIntersections(SegmentString *e0, int segIndex0, SegmentString *e1, int segIndex1)=0
virtual bool isDone() const
Reports whether the client of this class needs to continue testing all intersections in an arrangemen...
Definition noding/SegmentIntersector.h:70
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:46
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition PreparedLineString.h:27
SegmentIntersector nodingSegmentIntersector
Temporary typedef for namespace transition.
Definition noding/SegmentIntersector.h:84
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25