GEOS  3.8.0dev
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 <cstddef>
19 #include <geos/export.h>
20 
21 #include <geos/inline.h>
22 
23 // Forward declarations
24 namespace geos {
25 namespace noding {
26 class SegmentString;
27 }
28 }
29 
30 namespace geos {
31 namespace noding { // geos.noding
32 
48 class GEOS_DLL SegmentIntersector {
49 
50 public:
51 
58  virtual void processIntersections(
59  SegmentString* e0, size_t segIndex0,
60  SegmentString* e1, size_t segIndex1) = 0;
61 
71  virtual bool
72  isDone() const
73  {
74  return false;
75  }
76 
77  virtual
79  { }
80 
81 protected:
82 
83  SegmentIntersector() {}
84 
85 };
86 
89 
90 } // namespace geos.noding
91 } // namespace geos
92 
93 #endif // GEOS_NODING_SEGMENTINTERSECTOR_H
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:46
virtual bool isDone() const
Reports whether the client of this class needs to continue testing all intersections in an arrangemen...
Definition: noding/SegmentIntersector.h:72
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:48
SegmentIntersector nodingSegmentIntersector
Temporary typedef for namespace transition.
Definition: noding/SegmentIntersector.h:88