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 SegmentString;
26}
27}
28
29namespace geos {
30namespace noding { // geos.noding
31
32
44class GEOS_DLL Noder {
45public:
56 virtual void computeNodes(const std::vector<SegmentString*>& segStrings) = 0;
57
66 virtual std::vector<std::unique_ptr<SegmentString>> getNodedSubstrings() = 0;
67
68 virtual
69 ~Noder() {}
70
71protected:
72 Noder() {}
73};
74
75} // namespace geos.noding
76} // namespace geos
77
Computes all intersections between segments in a set of SegmentString.
Definition Noder.h:44
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