GEOS  3.9.0dev
EdgeEndBundle.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.
12  *
13  **********************************************************************
14  *
15  * Last port: operation/relate/EdgeEndBundle.java rev. 1.17 (JTS-1.10)
16  *
17  **********************************************************************/
18
19 #ifndef GEOS_OP_RELATE_EDGEENDBUNDLE_H
20 #define GEOS_OP_RELATE_EDGEENDBUNDLE_H
21
22 #include <geos/export.h>
23
24 #include <geos/geomgraph/EdgeEnd.h> // for EdgeEndBundle inheritance
25
26 #include <string>
27
28 // Forward declarations
29 namespace geos {
30 namespace algorithm {
31 class BoundaryNodeRule;
32 }
33 namespace geom {
34 class IntersectionMatrix;
35 }
36 }
37
38
39 namespace geos {
40 namespace operation { // geos::operation
41 namespace relate { // geos::operation::relate
42
47 class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd {
48 public:
50  ~EdgeEndBundle() override;
51  const std::vector<geomgraph::EdgeEnd*>& getEdgeEnds();
52  void insert(geomgraph::EdgeEnd* e);
53
54  void computeLabel(const algorithm::BoundaryNodeRule& bnr) override;
55
61  void updateIM(geom::IntersectionMatrix& im);
62
63  std::string print() const override;
64 protected:
65  std::vector<geomgraph::EdgeEnd*> edgeEnds;
66
96  void computeLabelOn(int geomIndex,
97  const algorithm::BoundaryNodeRule& boundaryNodeRule);
98
99  void computeLabelSides(int geomIndex);
100  void computeLabelSide(int geomIndex, int side);
101 };
102
103 } // namespace geos:operation:relate
104 } // namespace geos:operation
105 } // namespace geos
106
107 #endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H
Implementation of Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix. ...
Definition: IntersectionMatrix.h:54
Models the end of an edge incident on a node.
Definition: EdgeEnd.h:56
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition: BoundaryNodeRule.h:51
A collection of geomgraph::EdgeEnd objects which originate at the same point and have the same direct...
Definition: EdgeEndBundle.h:47
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26