GEOS  3.9.1dev
EdgeString.h
Go to the documentation of this file.
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 #ifndef GEOS_OP_LINEMERGE_EDGESTRING_H
22 #define GEOS_OP_LINEMERGE_EDGESTRING_H
23 
24 #include <geos/export.h>
25 #include <vector>
26 
27 #ifdef _MSC_VER
28 #pragma warning(push)
29 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
30 #endif
31 
32 // Forward declarations
33 namespace geos {
34 namespace geom {
35 class GeometryFactory;
36 class CoordinateArraySequence;
37 class CoordinateSequence;
38 class LineString;
39 }
40 namespace operation {
41 namespace linemerge {
42 class LineMergeDirectedEdge;
43 }
44 }
45 }
46 
47 namespace geos {
48 namespace operation { // geos::operation
49 namespace linemerge { // geos::operation::linemerge
50 
57 private:
59  std::vector<LineMergeDirectedEdge*> directedEdges;
61  geom::CoordinateSequence* getCoordinates();
62 public:
68  EdgeString(const geom::GeometryFactory* newFactory);
69 
70  ~EdgeString() = default;
71 
75  void add(LineMergeDirectedEdge* directedEdge);
76 
80  geom::LineString* toLineString();
81 };
82 
83 } // namespace geos::operation::linemerge
84 } // namespace geos::operation
85 } // namespace geos
86 
87 #ifdef _MSC_VER
88 #pragma warning(pop)
89 #endif
90 
91 #endif // GEOS_OP_LINEMERGE_EDGESTRING_H
#define GEOS_DLL
Definition: export.h:28
The default implementation of CoordinateSequence.
A sequence of LineMergeDirectedEdge forming one of the lines that will be output by the line-merging ...
Definition: EdgeString.h:56
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Basic namespace for all GEOS functionalities.
std::vector< LineMergeDirectedEdge * > directedEdges
Definition: EdgeString.h:59
const geom::GeometryFactory * factory
Definition: EdgeString.h:58
The internal representation of a list of coordinates inside a Geometry.
geom::CoordinateArraySequence * coordinates
Definition: EdgeString.h:60