GEOS: SegmentIntersector.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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
84 typedef SegmentIntersector nodingSegmentIntersector;
85
86 } // namespace geos.noding
87 } // namespace geos
88
89 #endif // GEOS_NODING_SEGMENTINTERSECTOR_H
geos::noding::SegmentString
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:46
geos::noding::SegmentIntersector::isDone
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
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::noding::SegmentIntersector
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:47
geos::noding::nodingSegmentIntersector
SegmentIntersector nodingSegmentIntersector
Temporary typedef for namespace transition.
Definition: noding/SegmentIntersector.h:84