GEOS 3.9.1
RelateNodeGraph.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/relate/RelateNodeGraph.java rev. 1.11 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_OP_RELATE_RELATENODEGRAPH_H
20#define GEOS_OP_RELATE_RELATENODEGRAPH_H
21
22#include <geos/export.h>
23#include <geos/geomgraph/NodeMap.h>
24
25#include <map>
26#include <vector>
27
28// Forward declarations
29namespace geos {
30namespace geom {
31class Coordinate;
32struct CoordinateLessThen;
33}
34namespace geomgraph {
35//class EdgeEndStar;
36class Node;
37class GeometryGraph;
38class EdgeEnd;
39}
40}
41
42
43namespace geos {
44namespace operation { // geos::operation
45namespace relate { // geos::operation::relate
46
68class GEOS_DLL RelateNodeGraph {
69
70public:
71
73
74 virtual ~RelateNodeGraph();
75
76 geomgraph::NodeMap::container& getNodeMap();
77
78 void build(geomgraph::GeometryGraph* geomGraph);
79
80 void computeIntersectionNodes(geomgraph::GeometryGraph* geomGraph,
81 int argIndex);
82
83 void copyNodesAndLabels(geomgraph::GeometryGraph* geomGraph, int argIndex);
84
85 void insertEdgeEnds(std::vector<geomgraph::EdgeEnd*>* ee);
86
87private:
88
89 geomgraph::NodeMap* nodes;
90
91 RelateNodeGraph(const RelateNodeGraph&) = delete;
92 RelateNodeGraph& operator=(const RelateNodeGraph&) = delete;
93
94};
95
96
97} // namespace geos:operation:relate
98} // namespace geos:operation
99} // namespace geos
100
101#endif // GEOS_OP_RELATE_RELATENODEGRAPH_H
A GeometryGraph is a graph that models a given Geometry.
Definition GeometryGraph.h:74
Implements the simple graph of Nodes and geomgraph::EdgeEnd which is all that is required to determin...
Definition RelateNodeGraph.h:68
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26