Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

TopologyPreservingSimplifier.h

00001 /**********************************************************************
00002  * $Id: TopologyPreservingSimplifier.h 2556 2009-06-06 22:22:28Z 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 rev. 1.4 (JTS-1.7)
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 <memory> // for auto_ptr
00029 #include <map> 
00030 
00031 // Forward declarations
00032 namespace geos {
00033         namespace simplify {
00034                 class TaggedLinesSimplifier;
00035         }
00036         namespace geom {
00037                 class Geometry;
00038         }
00039 }
00040 
00041 namespace geos {
00042 namespace simplify { // geos::simplify
00043 
00062 class GEOS_DLL TopologyPreservingSimplifier
00063 {
00064 
00065 public:
00066 
00067         static std::auto_ptr<geom::Geometry> simplify(
00068                         const geom::Geometry* geom,
00069                         double tolerance);
00070 
00071         TopologyPreservingSimplifier(const geom::Geometry* geom);
00072 
00083         void setDistanceTolerance(double tolerance);
00084 
00085         std::auto_ptr<geom::Geometry> getResultGeometry();
00086 
00087 private:
00088 
00089         const geom::Geometry* inputGeom;
00090 
00091         std::auto_ptr<TaggedLinesSimplifier> lineSimplifier;
00092 
00093 };
00094 
00095 
00096 
00097 } // namespace geos::simplify
00098 } // namespace geos
00099 
00100 #endif // _GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H_ 
00101 
00102 /**********************************************************************
00103  * $Log$
00104  * Revision 1.3  2006/04/13 16:04:10  strk
00105  * Made TopologyPreservingSimplifier implementation successfully build
00106  *
00107  * Revision 1.2  2006/04/13 14:25:17  strk
00108  * TopologyPreservingSimplifier initial port
00109  *
00110  **********************************************************************/

Generated on Thu Jun 11 06:17:02 2009 for GEOS by  doxygen 1.4.4