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
23 namespace geos {
24 namespace noding {
25 class SegmentString;
26 }
27 }
28 
29 namespace geos {
30 namespace noding { // geos.noding
31 
32 
46 class GEOS_DLL Noder {
47 public:
58  virtual void computeNodes(std::vector<SegmentString*>* segStrings) = 0;
59 
68  virtual std::vector<SegmentString*>* getNodedSubstrings() const = 0;
69 
70  virtual
71  ~Noder() {}
72 
73 protected:
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: Angle.h:25