GEOS  3.8.0dev
CoordinateSequenceFilter.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************
14  *
15  * Last port: geom/CoordinateSequenceFilter.java rev. 1.3 (JTS-1.9)
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
20 #define GEOS_GEOM_COORDINATESEQUENCEFILTER_H
21 
22 #include <geos/export.h>
23 #include <geos/inline.h>
24 
25 #include <cassert>
26 
27 // Forward declarations
28 namespace geos {
29 namespace geom {
30 class CoordinateSequence;
31 }
32 }
33 
34 namespace geos {
35 namespace geom { // geos::geom
36 
58 class GEOS_DLL CoordinateSequenceFilter {
59 
60 public:
61 
62  virtual
64 
72  virtual void
73  filter_rw(CoordinateSequence& /*seq*/, std::size_t /*i*/)
74  {
75  assert(0);
76  }
77 
85  virtual void
86  filter_ro(const CoordinateSequence& /*seq*/, std::size_t /*i*/)
87  {
88  assert(0);
89  }
90 
98  virtual bool isDone() const = 0;
99 
100 
112  virtual bool isGeometryChanged() const = 0;
113 
114 };
115 
116 } // namespace geos::geom
117 } // namespace geos
118 
119 
120 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
121 
virtual void filter_rw(CoordinateSequence &, std::size_t)
Definition: CoordinateSequenceFilter.h:73
Definition: CoordinateSequenceFilter.h:58
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
virtual void filter_ro(const CoordinateSequence &, std::size_t)
Definition: CoordinateSequenceFilter.h:86
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58