GEOS  3.11.0rc0
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
32 namespace geos {
33 namespace geom {
34 class GeometryFactory;
35 class CoordinateSequence;
36 class LineString;
37 }
38 namespace operation {
39 namespace linemerge {
40 class LineMergeDirectedEdge;
41 }
42 }
43 }
44 
45 namespace geos {
46 namespace operation { // geos::operation
47 namespace linemerge { // geos::operation::linemerge
48 
54 class GEOS_DLL EdgeString {
55 private:
56  const geom::GeometryFactory* factory;
57  std::vector<LineMergeDirectedEdge*> directedEdges;
58  geom::CoordinateSequence* getCoordinates();
59 public:
65  EdgeString(const geom::GeometryFactory* newFactory);
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: Angle.h:25