GEOS 3.9.1
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
27namespace geos {
28namespace noding {
29class SegmentString;
30class SegmentIntersector;
31}
32}
33
34namespace geos {
35namespace noding { // geos.noding
36
37
51class GEOS_DLL SinglePassNoder : public Noder { // implements Noder
52
53protected:
54
57
58public:
59
60 SinglePassNoder(SegmentIntersector* nSegInt = nullptr): segInt(nSegInt) {}
61
62 ~SinglePassNoder() override {}
63
74 virtual void
76 {
77 segInt = newSegInt;
78 }
79
85 void computeNodes(std::vector<SegmentString*>* segStrings) override = 0;
86
94 std::vector<SegmentString*>* getNodedSubstrings() const override = 0;
95
96};
97
98} // namespace geos.noding
99} // namespace geos
100
101#endif // GEOS_NODING_SINGLEPASSNODER_H
Computes all intersections between segments in a set of SegmentString.
Definition: Noder.h:49
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:48
Base class for Noders which make a single pass to find intersections.
Definition: SinglePassNoder.h:51
void computeNodes(std::vector< SegmentString * > *segStrings) override=0
Computes the noding for a collection of SegmentStrings.
std::vector< SegmentString * > * getNodedSubstrings() const override=0
Returns a Collection of fully noded SegmentStrings.
SegmentIntersector * segInt
Externally owned.
Definition: SinglePassNoder.h:56
virtual void setSegmentIntersector(SegmentIntersector *newSegInt)
Sets the SegmentIntersector to use with this noder.
Definition: SinglePassNoder.h:75
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26