GEOS  3.11.0
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 <vector>
24 
25 // Forward declarations
26 namespace geos {
27 namespace geom {
28 class IntersectionMatrix;
29 class Coordinate;
30 }
31 namespace geomgraph {
32 class Edge;
33 class EdgeIntersection;
34 class EdgeEnd;
35 }
36 }
37 
38 
39 namespace geos {
40 namespace operation { // geos::operation
41 namespace relate { // geos::operation::relate
42 
47 class GEOS_DLL EdgeEndBuilder {
48 public:
49  EdgeEndBuilder() {}
50 
51  std::vector<geomgraph::EdgeEnd*> computeEdgeEnds(std::vector<geomgraph::Edge*>* edges);
52  void computeEdgeEnds(geomgraph::Edge* edge, std::vector<geomgraph::EdgeEnd*>* l);
53 
54 protected:
55 
56  void createEdgeEndForPrev(geomgraph::Edge* edge,
57  std::vector<geomgraph::EdgeEnd*>* l,
58  const geomgraph::EdgeIntersection* eiCurr,
59  const geomgraph::EdgeIntersection* eiPrev);
60 
61  void createEdgeEndForNext(geomgraph::Edge* edge,
62  std::vector<geomgraph::EdgeEnd*>* l,
63  const geomgraph::EdgeIntersection* eiCurr,
64  const geomgraph::EdgeIntersection* eiNext);
65 };
66 
67 } // namespace geos:operation:relate
68 } // namespace geos:operation
69 } // 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:47
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25