GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net> 00007 * Copyright (C) 2006 Refractions Research Inc. 00008 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00009 * 00010 * This is free software; you can redistribute and/or modify it under 00011 * the terms of the GNU Lesser General Public Licence as published 00012 * by the Free Software Foundation. 00013 * See the COPYING file for more information. 00014 * 00015 ********************************************************************** 00016 * 00017 * Last port: geom/util/GeometryEditor.java r320 (JTS-1.12) 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 // Forward declarations 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 { // geos.geom 00042 namespace util { // geos.geom.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); // final 00122 }; 00123 00124 } // namespace geos.geom.util 00125 } // namespace geos.geom 00126 } // namespace geos 00127 00128 #endif