00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GEOS_GEOM_UTIL_GEOMETRYEDITOR_H
00018 #define GEOS_GEOM_UTIL_GEOMETRYEDITOR_H
00019
00020 #include <geos/export.h>
00021
00022
00023 namespace geos {
00024 namespace geom {
00025 class Geometry;
00026 class GeometryFactory;
00027 class GeometryCollection;
00028 class Polygon;
00029 namespace util {
00030 class GeometryEditorOperation;
00031 }
00032 }
00033 }
00034
00035
00036 namespace geos {
00037 namespace geom {
00038 namespace util {
00039
00074 class GEOS_DLL GeometryEditor {
00075 private:
00079 const GeometryFactory* factory;
00080
00081 Polygon* editPolygon(const Polygon *polygon,
00082 GeometryEditorOperation *operation);
00083
00084 GeometryCollection* editGeometryCollection(
00085 const GeometryCollection *collection,
00086 GeometryEditorOperation *operation);
00087
00088 public:
00089
00095 GeometryEditor();
00096
00104 GeometryEditor(const GeometryFactory *newFactory);
00105
00116 Geometry* edit(const Geometry *geometry,
00117 GeometryEditorOperation *operation);
00118 };
00119
00120 }
00121 }
00122 }
00123
00124
00125
00126
00127
00128 #endif
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138