GEOS 3.9.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 <cstddef>
19#include <geos/export.h>
20
21#include <geos/inline.h>
22
23// Forward declarations
24namespace geos {
25namespace noding {
26class SegmentString;
27}
28}
29
30namespace geos {
31namespace noding { // geos.noding
32
48class GEOS_DLL SegmentIntersector {
49
50public:
51
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
81protected:
82
83 SegmentIntersector() {}
84
85};
86
89
90} // namespace geos.noding
91} // namespace geos
92
93#endif // GEOS_NODING_SEGMENTINTERSECTOR_H
Processes possible intersections detected by a Noder.
Definition noding/SegmentIntersector.h:48
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
virtual void processIntersections(SegmentString *e0, size_t segIndex0, SegmentString *e1, size_t segIndex1)=0
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:46
SegmentIntersector nodingSegmentIntersector
Temporary typedef for namespace transition.
Definition noding/SegmentIntersector.h:88
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26