GEOS 3.9.1
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 {
30namespace geom {
31class Coordinate;
32}
33namespace geomgraph {
34class DirectedEdge;
35}
36namespace operation {
37namespace buffer {
38class BufferSubgraph;
39class 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
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:59
A directed EdgeEnd.
Definition geomgraph/DirectedEdge.h:45
Locates a subgraph inside a set of subgraphs, in order to determine the outside depth of the subgraph...
Definition SubgraphDepthLocater.h:59
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26