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

CoordinateSequenceFilter.h

00001 /**********************************************************************
00002  * $Id: CoordinateSequenceFilter.h 3255 2011-03-01 17:56:10Z mloskot $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2009  Sandro Santilli <strk@keybit.net>
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Public Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  **********************************************************************
00015  *
00016  * Last port: geom/CoordinateSequenceFilter.java rev. 1.3 (JTS-1.9)
00017  *
00018  **********************************************************************/
00019 
00020 #ifndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
00021 #define GEOS_GEOM_COORDINATESEQUENCEFILTER_H
00022 
00023 #include <geos/export.h>
00024 #include <geos/inline.h>
00025 
00026 #include <cassert>
00027 
00028 // Forward declarations
00029 namespace geos {
00030         namespace geom {
00031                 class CoordinateSequence;
00032         }
00033 }
00034 
00035 namespace geos {
00036 namespace geom { // geos::geom
00037 
00059 class GEOS_DLL CoordinateSequenceFilter {
00060 
00061 public:
00062 
00063   virtual ~CoordinateSequenceFilter() {}
00064 
00072   virtual void filter_rw(CoordinateSequence& /*seq*/, std::size_t /*i*/)
00073   { assert(0); }
00074 
00082   virtual void filter_ro(const CoordinateSequence& /*seq*/, std::size_t /*i*/)
00083   { assert(0); }
00084 
00092   virtual bool isDone() const = 0;
00093 
00094 
00106   virtual bool isGeometryChanged() const = 0;
00107 
00108 };
00109 
00110 } // namespace geos::geom
00111 } // namespace geos
00112 
00113 
00114 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
00115 

Generated on Sun Aug 21 22:58:54 2011 for GEOS by  doxygen 1.3.9.1