GEOS 3.15.0dev
Noder.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#pragma once
16
17#include <geos/export.h>
18
19#include <memory>
20#include <vector>
21
22// Forward declarations
23namespace geos {
24namespace noding {
25class PathString;
26class SegmentString;
27}
28}
29
30namespace geos {
31namespace noding { // geos.noding
32
33
45class GEOS_DLL Noder {
46public:
57 virtual void computeNodes(const std::vector<SegmentString*>& segStrings) = 0;
58
67 virtual std::vector<std::unique_ptr<SegmentString>> getNodedSubstrings() = 0;
68
69 virtual void computePathNodes(const std::vector<PathString*>& inputPaths);
70
71 virtual std::vector<std::unique_ptr<PathString>> getNodedPaths();
72
73
74 virtual
75 ~Noder() {}
76
77protected:
78 Noder() {}
79};
80
81} // namespace geos.noding
82} // namespace geos
83
Computes all intersections between segments in a set of SegmentString.
Definition Noder.h:45
virtual void computeNodes(const std::vector< SegmentString * > &segStrings)=0
Computes the noding for a collection of SegmentStrings.
virtual std::vector< std::unique_ptr< SegmentString > > getNodedSubstrings()=0
Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their...
Basic namespace for all GEOS functionalities.
Definition geos.h:38