GEOS  3.3.3
EdgeEndBuilder.h
1 /**********************************************************************
2  * $Id: EdgeEndBuilder.h 2557 2009-06-08 09:30:55Z strk $
3  *
4  * GEOS - Geometry Engine Open Source
5  * http://geos.refractions.net
6  *
7  * Copyright (C) 2006 Refractions Research Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************
15  *
16  * Last port: operation/relate/EdgeEndBuilder.java rev. 1.12 (JTS-1.10)
17  *
18  **********************************************************************/
19 
20 #ifndef GEOS_OP_RELATE_EDGEENDBUILDER_H
21 #define GEOS_OP_RELATE_EDGEENDBUILDER_H
22 
23 #include <geos/export.h>
24 
25 #include <vector>
26 
27 // Forward declarations
28 namespace geos {
29  namespace geom {
30  class IntersectionMatrix;
31  class Coordinate;
32  }
33  namespace geomgraph {
34  class Edge;
35  class EdgeIntersection;
36  class EdgeEnd;
37  }
38 }
39 
40 
41 namespace geos {
42 namespace operation { // geos::operation
43 namespace relate { // geos::operation::relate
44 
49 class GEOS_DLL EdgeEndBuilder {
50 public:
51  EdgeEndBuilder() {}
52 
53  std::vector<geomgraph::EdgeEnd*> *computeEdgeEnds(std::vector<geomgraph::Edge*> *edges);
54  void computeEdgeEnds(geomgraph::Edge *edge,std::vector<geomgraph::EdgeEnd*> *l);
55 
56 protected:
57 
58  void createEdgeEndForPrev(geomgraph::Edge *edge,
59  std::vector<geomgraph::EdgeEnd*> *l,
62 
63  void createEdgeEndForNext(geomgraph::Edge *edge,
64  std::vector<geomgraph::EdgeEnd*> *l,
67 };
68 
69 } // namespace geos:operation:relate
70 } // namespace geos:operation
71 } // namespace geos
72 
73 #endif // GEOS_OP_RELATE_EDGEENDBUILDER_H
74 
75 /**********************************************************************
76  * $Log$
77  * Revision 1.1 2006/03/21 13:11:29 strk
78  * opRelate.h header split
79  *
80  **********************************************************************/
81