GEOS 3.6.2
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#ifndef GEOS_OP_OVERLAY_EDGESETNODER_H
20#define GEOS_OP_OVERLAY_EDGESETNODER_H
21
22#include <geos/export.h>
23
24#include <vector>
25
26// Forward declarations
27namespace geos {
28 namespace geomgraph {
29 class Edge;
30 }
31 namespace algorithm {
32 class LineIntersector;
33 }
34}
35
36namespace geos {
37namespace operation { // geos::operation
38namespace overlay { // geos::operation::overlay
39
47class GEOS_DLL EdgeSetNoder {
48private:
50 std::vector<geomgraph::Edge*>* inputEdges;
51public:
52 EdgeSetNoder(algorithm::LineIntersector *newLi)
53 :
54 li(newLi),
55 inputEdges(new std::vector<geomgraph::Edge*>())
56 {}
57
58 ~EdgeSetNoder() {
59 delete inputEdges; // TODO: avoid heap allocation
60 }
61
62 void addEdges(std::vector<geomgraph::Edge*> *edges);
63 std::vector<geomgraph::Edge*>* getNodedEdges();
64};
65
66
67} // namespace geos::operation::overlay
68} // namespace geos::operation
69} // namespace geos
70
71#endif // ndef GEOS_OP_OVERLAY_EDGESETNODER_H
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:49
Definition geomgraph/Edge.h:66
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Contains classes that perform a topological overlay to compute boolean spatial functions.
Definition BufferBuilder.h:62
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25