GEOS: SubgraphDepthLocater.h Source File

GEOS 3.3.8

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

- File List

SubgraphDepthLocater.h
1 /**********************************************************************
2 * $Id: SubgraphDepthLocater.h 3245 2011-02-23 16:46:10Z 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/buffer/SubgraphDepthLocater.java r320 (JTS-1.12)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H
21 #define GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H
22
23 #include <geos/export.h>
24
25 #include <vector>
26
27 #include <geos/geom/LineSegment.h> // for composition
28
29 // Forward declarations
30 namespace geos {
31 namespace geom {
32 class Coordinate;
33 }
34 namespace geomgraph {
35 class DirectedEdge;
36 }
37 namespace operation {
38 namespace buffer {
39 class BufferSubgraph;
40 class DepthSegment;
41 }
42 }
43 }
44
45 namespace geos {
46 namespace operation { // geos.operation
47 namespace buffer { // geos.operation.buffer
48
60 class GEOS_DLL SubgraphDepthLocater {
61
62 public:
63
64 SubgraphDepthLocater(std::vector<BufferSubgraph*> *newSubgraphs)
65 :
66 subgraphs(newSubgraphs)
67 {}
68
69 ~SubgraphDepthLocater() {}
70
71 int getDepth(const geom::Coordinate &p);
72
73 private:
74
75 std::vector<BufferSubgraph*> *subgraphs;
76
77 geom::LineSegment seg;
78
87 void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,
88 std::vector<DepthSegment*>& stabbedSegments);
89
99 void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,
100 std::vector<geomgraph::DirectedEdge*> *dirEdges,
101 std::vector<DepthSegment*>& stabbedSegments);
102
112 void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,
113 geomgraph::DirectedEdge *dirEdge,
114 std::vector<DepthSegment*>& stabbedSegments);
115
116 };
117
118
119 } // namespace geos::operation::buffer
120 } // namespace geos::operation
121 } // namespace geos
122
123 #endif // ndef GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H
124
125 /**********************************************************************
126 * $Log$
127 * Revision 1.2 2006/03/15 15:50:11 strk
128 * const correctness, cleanups
129 *
130 * Revision 1.1 2006/03/14 00:19:40 strk
131 * opBuffer.h split, streamlined headers in some (not all) files in operation/buffer/
132 *
133 **********************************************************************/
134