GEOS: SinglePassNoder.h Source File

GEOS 3.5.0

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

- File List

SinglePassNoder.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_SINGLEPASSNODER_H
16 #define GEOS_NODING_SINGLEPASSNODER_H
17
18 #include <geos/export.h>
19
20 #include <vector>
21
22 #include <geos/inline.h>
23
24 #include <geos/noding/Noder.h>
25
26 // Forward declarations
27 namespace geos {
28 namespace noding {
29 class SegmentString;
30 class SegmentIntersector;
31 }
32 }
33
34 namespace geos {
35 namespace noding { // geos.noding
36
37
50 class GEOS_DLL SinglePassNoder : public Noder { // implements Noder
51
52 protected:
53
55 SegmentIntersector* segInt;
56
57 public:
58
59 SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {}
60
61 virtual ~SinglePassNoder() {}
62
72 virtual void setSegmentIntersector(SegmentIntersector* newSegInt) {
73 segInt = newSegInt;
74 }
75
81 virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0;
82
89 virtual std::vector<SegmentString*>* getNodedSubstrings() const=0;
90
91 };
92
93 } // namespace geos.noding
94 } // namespace geos
95
96 #endif // GEOS_NODING_SINGLEPASSNODER_H
geos::noding::SinglePassNoder::setSegmentIntersector
virtual void setSegmentIntersector(SegmentIntersector *newSegInt)
Definition: SinglePassNoder.h:72
geos::noding::SinglePassNoder::segInt
SegmentIntersector * segInt
Externally owned.
Definition: SinglePassNoder.h:55
geos::noding::SinglePassNoder
Definition: SinglePassNoder.h:50
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::noding::Noder
Computes all intersections between segments in a set of SegmentString.
Definition: Noder.h:49
geos::noding::SegmentIntersector
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:47