GEOS 3.6.2
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 {
30 namespace algorithm {
31 class BoundaryNodeRule;
32 }
33 namespace geom {
35 }
36}
37
38
39namespace geos {
40namespace operation { // geos::operation
41namespace relate { // geos::operation::relate
42
47class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd
48{
49public:
50 EdgeEndBundle(geomgraph::EdgeEnd *e);
51 virtual ~EdgeEndBundle();
52 std::vector<geomgraph::EdgeEnd*>* getEdgeEnds();
53 void insert(geomgraph::EdgeEnd *e);
54
55 void computeLabel(const algorithm::BoundaryNodeRule& bnr);
56
63
64 std::string print();
65protected:
66 std::vector<geomgraph::EdgeEnd*> *edgeEnds;
67
97 void computeLabelOn(int geomIndex,
98 const algorithm::BoundaryNodeRule& boundaryNodeRule);
99
100 void computeLabelSides(int geomIndex);
101 void computeLabelSide(int geomIndex,int side);
102};
103
104} // namespace geos:operation:relate
105} // namespace geos:operation
106} // namespace geos
107
108#endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H
Definition BoundaryNodeRule.h:50
Implementation of Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix.
Definition IntersectionMatrix.h:51
Models the end of an edge incident on a node.
Definition EdgeEnd.h:56
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)
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes to implement the computation of the spatial relationships of Geometrys.
Definition EdgeEndBuilder.h:42
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25