GEOS 3.11.1
EdgeSetNoder.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 * Last port: operation/overlay/EdgeSetNoder.java rev. 1.12 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#pragma once
20
21#include <geos/export.h>
22
23#include <vector>
24
25// Forward declarations
26namespace geos {
27namespace geomgraph {
28class Edge;
29}
30namespace algorithm {
31class LineIntersector;
32}
33}
34
35namespace geos {
36namespace operation { // geos::operation
37namespace overlay { // geos::operation::overlay
38
46class GEOS_DLL EdgeSetNoder {
47private:
49 std::vector<geomgraph::Edge*>* inputEdges;
50
51 EdgeSetNoder(const EdgeSetNoder&) = delete;
52 EdgeSetNoder& operator=(const EdgeSetNoder&) = delete;
53
54public:
56 :
57 li(newLi),
58 inputEdges(new std::vector<geomgraph::Edge*>())
59 {}
60
62 {
63 delete inputEdges; // TODO: avoid heap allocation
64 }
65
66 void addEdges(std::vector<geomgraph::Edge*>* edges);
67 std::vector<geomgraph::Edge*>* getNodedEdges();
68};
69
70
71} // namespace geos::operation::overlay
72} // namespace geos::operation
73} // namespace geos
74
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:50
Nodes a set of edges.
Definition: EdgeSetNoder.h:46
Basic namespace for all GEOS functionalities.
Definition: geos.h:39