00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEOS_OP_LINEMERGE_EDGESTRING_H
00023 #define GEOS_OP_LINEMERGE_EDGESTRING_H
00024
00025 #include <geos/export.h>
00026 #include <vector>
00027
00028 #ifdef _MSC_VER
00029 #pragma warning(push)
00030 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
00031 #endif
00032
00033
00034 namespace geos {
00035 namespace geom {
00036 class GeometryFactory;
00037 class CoordinateSequence;
00038 class LineString;
00039 }
00040 namespace operation {
00041 namespace linemerge {
00042 class LineMergeDirectedEdge;
00043 }
00044 }
00045 }
00046
00047 namespace geos {
00048 namespace operation {
00049 namespace linemerge {
00050
00056 class GEOS_DLL EdgeString {
00057 private:
00058 const geom::GeometryFactory *factory;
00059 std::vector<LineMergeDirectedEdge*> directedEdges;
00060 geom::CoordinateSequence *coordinates;
00061 geom::CoordinateSequence* getCoordinates();
00062 public:
00063
00064
00065
00066
00067
00068 EdgeString(const geom::GeometryFactory *newFactory);
00069
00070 ~EdgeString();
00071
00075 void add(LineMergeDirectedEdge *directedEdge);
00076
00077
00078
00079
00080 geom::LineString* toLineString();
00081 };
00082
00083 }
00084 }
00085 }
00086
00087 #ifdef _MSC_VER
00088 #pragma warning(pop)
00089 #endif
00090
00091 #endif // GEOS_OP_LINEMERGE_EDGESTRING_H
00092
00093
00094
00095
00096
00097
00098