GEOS 3.14.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 <vector>
20#include <iostream>
21
22// Forward declarations
23namespace geos {
24namespace noding {
25class SegmentString;
26}
27}
28
29namespace geos {
30namespace noding { // geos.noding
31
32
46class GEOS_DLL Noder {
47public:
58 virtual void computeNodes(std::vector<SegmentString*>* segStrings) = 0;
59
68 virtual std::vector<SegmentString*>* getNodedSubstrings() const = 0;
69
70 virtual
71 ~Noder() {}
72
73protected:
74 Noder() {}
75};
76
77} // namespace geos.noding
78} // namespace geos
79
Computes all intersections between segments in a set of SegmentString.
Definition Noder.h:46
virtual void computeNodes(std::vector< SegmentString * > *segStrings)=0
Computes the noding for a collection of SegmentStrings.
virtual std::vector< SegmentString * > * getNodedSubstrings() const =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:39