TopologyPreservingSimplifier.h

00001 /**********************************************************************
00002  * $Id: TopologyPreservingSimplifier.h 3626 2012-05-09 18:02:09Z strk $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2006 Refractions Research Inc.
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  **********************************************************************
00015  *
00016  * Last port: simplify/TopologyPreservingSimplifier.java r536 (JTS-1.12+)
00017  *
00018  **********************************************************************
00019  *
00020  * NOTES:
00021  *
00022  **********************************************************************/
00023 
00024 #ifndef GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H
00025 #define GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H
00026 
00027 #include <geos/export.h>
00028 #include <geos/geom/Geometry.h>
00029 #include <geos/simplify/TaggedLinesSimplifier.h>
00030 #include <memory> // for auto_ptr
00031 #include <map> 
00032 
00033 #ifdef _MSC_VER
00034 #pragma warning(push)
00035 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
00036 #endif
00037 
00038 namespace geos {
00039 namespace simplify { // geos::simplify
00040 
00059 class GEOS_DLL TopologyPreservingSimplifier
00060 {
00061 
00062 public:
00063 
00064         static std::auto_ptr<geom::Geometry> simplify(
00065                         const geom::Geometry* geom,
00066                         double tolerance);
00067 
00068         TopologyPreservingSimplifier(const geom::Geometry* geom);
00069 
00080         void setDistanceTolerance(double tolerance);
00081 
00082         std::auto_ptr<geom::Geometry> getResultGeometry();
00083 
00084 private:
00085 
00086         const geom::Geometry* inputGeom;
00087 
00088         std::auto_ptr<TaggedLinesSimplifier> lineSimplifier;
00089 
00090 };
00091 
00092 } // namespace geos::simplify
00093 } // namespace geos
00094 
00095 #ifdef _MSC_VER
00096 #pragma warning(pop)
00097 #endif
00098 
00099 #endif // GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H
00100 
00101 /**********************************************************************
00102  * $Log$
00103  * Revision 1.3  2006/04/13 16:04:10  strk
00104  * Made TopologyPreservingSimplifier implementation successfully build
00105  *
00106  * Revision 1.2  2006/04/13 14:25:17  strk
00107  * TopologyPreservingSimplifier initial port
00108  *
00109  **********************************************************************/

Generated on 16 Sep 2013 for GEOS by  doxygen 1.4.7