GEOS 3.3.4

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

- File List

EdgeSetNoder.h
1 /**********************************************************************
2 * $Id: EdgeSetNoder.h 2564 2009-06-08 16:09:51Z 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/overlay/EdgeSetNoder.java rev. 1.12 (JTS-1.10)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_OP_OVERLAY_EDGESETNODER_H
21 #define GEOS_OP_OVERLAY_EDGESETNODER_H
22
23 #include <geos/export.h>
24
25 #include <vector>
26
27 // Forward declarations
28 namespace geos {
29 namespace geomgraph {
30 class Edge;
31 }
32 namespace algorithm {
33 class LineIntersector;
34 }
35 }
36
37 namespace geos {
38 namespace operation { // geos::operation
39 namespace overlay { // geos::operation::overlay
40
48 class GEOS_DLL EdgeSetNoder {
49 private:
50 algorithm::LineIntersector *li;
51 std::vector<geomgraph::Edge*>* inputEdges;
52 public:
53 EdgeSetNoder(algorithm::LineIntersector *newLi)
54 :
55 li(newLi),
56 inputEdges(new std::vector<geomgraph::Edge*>())
57 {}
58
59 ~EdgeSetNoder() {
60 delete inputEdges; // TODO: avoid heap allocation
61 }
62
63 void addEdges(std::vector<geomgraph::Edge*> *edges);
64 std::vector<geomgraph::Edge*>* getNodedEdges();
65 };
66
67
68 } // namespace geos::operation::overlay
69 } // namespace geos::operation
70 } // namespace geos
71
72 #endif // ndef GEOS_OP_OVERLAY_EDGESETNODER_H
73
74 /**********************************************************************
75 * $Log$
76 * Revision 1.1 2006/03/17 13:24:59 strk
77 * opOverlay.h header splitted. Reduced header inclusions in operation/overlay implementation files. ElevationMatrixFilter code moved from own file to ElevationMatrix.cpp (ideally a class-private).
78 *
79 **********************************************************************/
80