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
27 namespace geos {
28 namespace geom {
29 class IntersectionMatrix;
30 class Coordinate;
31 }
32 namespace geomgraph {
33 class Edge;
34 class EdgeIntersection;
35 class EdgeEnd;
36 }
37 }
38 
39 
40 namespace geos {
41 namespace operation { // geos::operation
42 namespace relate { // geos::operation::relate
43 
48 class GEOS_DLL EdgeEndBuilder {
49 public:
50  EdgeEndBuilder() {}
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 
55 protected:
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: Angle.h:25