GEOS 3.9.1
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.
11 * See the COPYING file for more information.
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
29namespace geos {
30namespace algorithm {
31class BoundaryNodeRule;
32}
33namespace geom {
34class IntersectionMatrix;
35}
36}
37
38
39namespace geos {
40namespace operation { // geos::operation
41namespace relate { // geos::operation::relate
42
47class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd {
48public:
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
62
63 std::string print() const override;
64protected:
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
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition BoundaryNodeRule.h:51
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
A collection of geomgraph::EdgeEnd objects which originate at the same point and have the same direct...
Definition EdgeEndBundle.h:47
void updateIM(geom::IntersectionMatrix &im)
Update the IM with the contribution for the computed label for the EdgeStubs.
void computeLabelOn(int geomIndex, const algorithm::BoundaryNodeRule &boundaryNodeRule)
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26