00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_GEOM_UTIL_GEOMETRYEDITOR_H
00022 #define GEOS_GEOM_UTIL_GEOMETRYEDITOR_H
00023
00024 #include <geos/export.h>
00025
00026
00027 namespace geos {
00028 namespace geom {
00029 class Geometry;
00030 class GeometryFactory;
00031 class GeometryCollection;
00032 class Polygon;
00033 namespace util {
00034 class GeometryEditorOperation;
00035 }
00036 }
00037 }
00038
00039
00040 namespace geos {
00041 namespace geom {
00042 namespace util {
00043
00078 class GEOS_DLL GeometryEditor {
00079 private:
00083 const GeometryFactory* factory;
00084
00085 Polygon* editPolygon(const Polygon *polygon,
00086 GeometryEditorOperation *operation);
00087
00088 GeometryCollection* editGeometryCollection(
00089 const GeometryCollection *collection,
00090 GeometryEditorOperation *operation);
00091
00092 public:
00093
00099 GeometryEditor();
00100
00108 GeometryEditor(const GeometryFactory *newFactory);
00109
00120 Geometry* edit(const Geometry *geometry,
00121 GeometryEditorOperation *operation);
00122 };
00123
00124 }
00125 }
00126 }
00127
00128 #endif