GEOS 3.6.2
SubgraphDepthLocater.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/buffer/SubgraphDepthLocater.java r320 (JTS-1.12)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H
20#define GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H
21
22#include <geos/export.h>
23
24#include <vector>
25
26#include <geos/geom/LineSegment.h> // for composition
27
28// Forward declarations
29namespace geos {
30 namespace geom {
31 class Coordinate;
32 }
33 namespace geomgraph {
34 class DirectedEdge;
35 }
36 namespace operation {
37 namespace buffer {
38 class BufferSubgraph;
39 class DepthSegment;
40 }
41 }
42}
43
44namespace geos {
45namespace operation { // geos.operation
46namespace buffer { // geos.operation.buffer
47
59class GEOS_DLL SubgraphDepthLocater {
60
61public:
62
63 SubgraphDepthLocater(std::vector<BufferSubgraph*> *newSubgraphs)
64 :
65 subgraphs(newSubgraphs)
66 {}
67
68 ~SubgraphDepthLocater() {}
69
70 int getDepth(const geom::Coordinate &p);
71
72private:
73
74 std::vector<BufferSubgraph*> *subgraphs;
75
77
86 void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,
87 std::vector<DepthSegment*>& stabbedSegments);
88
98 void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,
99 std::vector<geomgraph::DirectedEdge*> *dirEdges,
100 std::vector<DepthSegment*>& stabbedSegments);
101
111 void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,
113 std::vector<DepthSegment*>& stabbedSegments);
114
115};
116
117
118} // namespace geos::operation::buffer
119} // namespace geos::operation
120} // namespace geos
121
122#endif // ndef GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H
123
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Definition LineSegment.h:57
A directed EdgeEnd.
Definition geomgraph/DirectedEdge.h:44
A connected subset of the graph of DirectedEdge and geomgraph::Node.
Definition BufferSubgraph.h:61
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Provides classes for computing buffers of geometries.
Definition opBuffer.h:23
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25