GEOS  3.6.1
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
23 namespace geos {
24  namespace noding {
25  class SegmentString;
26  }
27 }
28 
29 namespace geos {
30 namespace noding { // geos.noding
31 
47 class GEOS_DLL SegmentIntersector {
48 
49 public:
50 
57  virtual void processIntersections(
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 
77 protected:
78 
79  SegmentIntersector() {}
80 
81 };
82 
85 
86 } // namespace geos.noding
87 } // namespace geos
88 
89 #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:70
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:47
SegmentIntersector nodingSegmentIntersector
Temporary typedef for namespace transition.
Definition: noding/SegmentIntersector.h:84