GEOS 3.14.0dev
EdgeEndBuilder.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/EdgeEndBuilder.java rev. 1.12 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#pragma once
20
21#include <geos/export.h>
22
23#include <memory>
24#include <vector>
25
26// Forward declarations
27namespace geos {
28namespace geom {
29class IntersectionMatrix;
30class Coordinate;
31}
32namespace geomgraph {
33class Edge;
34class EdgeIntersection;
35class EdgeEnd;
36}
37}
38
39
40namespace geos {
41namespace operation { // geos::operation
42namespace relate { // geos::operation::relate
43
48class GEOS_DLL EdgeEndBuilder {
49public:
51
52 std::vector<std::unique_ptr<geomgraph::EdgeEnd>> computeEdgeEnds(std::vector<geomgraph::Edge*>* edges);
53 void computeEdgeEnds(geomgraph::Edge* edge, std::vector<std::unique_ptr<geomgraph::EdgeEnd>>& l);
54
55protected:
56
57 void createEdgeEndForPrev(geomgraph::Edge* edge,
58 std::vector<std::unique_ptr<geomgraph::EdgeEnd>>& l,
59 const geomgraph::EdgeIntersection* eiCurr,
60 const geomgraph::EdgeIntersection* eiPrev);
61
62 void createEdgeEndForNext(geomgraph::Edge* edge,
63 std::vector<std::unique_ptr<geomgraph::EdgeEnd>>& l,
64 const geomgraph::EdgeIntersection* eiCurr,
65 const geomgraph::EdgeIntersection* eiNext);
66};
67
68} // namespace geos:operation:relate
69} // namespace geos:operation
70} // namespace geos
Represents a point on an edge which intersects with another edge.
Definition EdgeIntersection.h:42
Definition geomgraph/Edge.h:63
Computes the geomgraph::EdgeEnd objects which arise from a noded geomgraph::Edge.
Definition EdgeEndBuilder.h:48
Basic namespace for all GEOS functionalities.
Definition geos.h:39