GEOS 3.4.2

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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 #ifndef GEOS_OP_RELATE_EDGEENDBUILDER_H
20 #define GEOS_OP_RELATE_EDGEENDBUILDER_H
21
22 #include <geos/export.h>
23
24 #include <vector>
25
26 // Forward declarations
27 namespace geos {
28 namespace geom {
29 class IntersectionMatrix;
30 class Coordinate;
31 }
32 namespace geomgraph {
33 class Edge;
34 class EdgeIntersection;
35 class EdgeEnd;
36 }
37 }
38
39
40 namespace geos {
41 namespace operation { // geos::operation
42 namespace relate { // geos::operation::relate
43
48 class GEOS_DLL EdgeEndBuilder {
49 public:
50 EdgeEndBuilder() {}
51
52 std::vector<geomgraph::EdgeEnd*> *computeEdgeEnds(std::vector<geomgraph::Edge*> *edges);
53 void computeEdgeEnds(geomgraph::Edge *edge,std::vector<geomgraph::EdgeEnd*> *l);
54
55 protected:
56
57 void createEdgeEndForPrev(geomgraph::Edge *edge,
58 std::vector<geomgraph::EdgeEnd*> *l,
59 geomgraph::EdgeIntersection *eiCurr,
60 geomgraph::EdgeIntersection *eiPrev);
61
62 void createEdgeEndForNext(geomgraph::Edge *edge,
63 std::vector<geomgraph::EdgeEnd*> *l,
64 geomgraph::EdgeIntersection *eiCurr,
65 geomgraph::EdgeIntersection *eiNext);
66 };
67
68 } // namespace geos:operation:relate
69 } // namespace geos:operation
70 } // namespace geos
71
72 #endif // GEOS_OP_RELATE_EDGEENDBUILDER_H