GEOS 3.11.1
EdgeString.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2011 Sandro Santilli <strk@kbt.io>
7 * Copyright (C) 2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: operation/linemerge/EdgeString.java r378 (JTS-1.12)
18 *
19 **********************************************************************/
20
21#pragma once
22
23#include <geos/export.h>
24#include <vector>
25
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
29#endif
30
31// Forward declarations
32namespace geos {
33namespace geom {
34class GeometryFactory;
35class CoordinateSequence;
36class LineString;
37}
38namespace operation {
39namespace linemerge {
40class LineMergeDirectedEdge;
41}
42}
43}
44
45namespace geos {
46namespace operation { // geos::operation
47namespace linemerge { // geos::operation::linemerge
48
54class GEOS_DLL EdgeString {
55private:
56 const geom::GeometryFactory* factory;
57 std::vector<LineMergeDirectedEdge*> directedEdges;
58 geom::CoordinateSequence* getCoordinates();
59public:
66
67 ~EdgeString() = default;
68
72 void add(LineMergeDirectedEdge* directedEdge);
73
78};
79
80} // namespace geos::operation::linemerge
81} // namespace geos::operation
82} // namespace geos
83
84#ifdef _MSC_VER
85#pragma warning(pop)
86#endif
87
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Definition: LineString.h:66
A sequence of LineMergeDirectedEdge forming one of the lines that will be output by the line-merging ...
Definition: EdgeString.h:54
EdgeString(const geom::GeometryFactory *newFactory)
Constructs an EdgeString with the given factory used to convert this EdgeString to a LineString.
void add(LineMergeDirectedEdge *directedEdge)
A DirectedEdge of a LineMergeGraph.
Definition: LineMergeDirectedEdge.h:46
Basic namespace for all GEOS functionalities.
Definition: geos.h:39