GEOS 3.11.1
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
26namespace geos {
27namespace geom {
28class IntersectionMatrix;
29class Coordinate;
30}
31namespace geomgraph {
32class Edge;
33class EdgeIntersection;
34class EdgeEnd;
35}
36}
37
38
39namespace geos {
40namespace operation { // geos::operation
41namespace relate { // geos::operation::relate
42
47class GEOS_DLL EdgeEndBuilder {
48public:
50
51 std::vector<geomgraph::EdgeEnd*> computeEdgeEnds(std::vector<geomgraph::Edge*>* edges);
52 void computeEdgeEnds(geomgraph::Edge* edge, std::vector<geomgraph::EdgeEnd*>* l);
53
54protected:
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: geos.h:39