GEOS  3.9.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 
57 class GEOS_DLL CoordinateSequenceFilter {
58 
59 public:
60 
61  virtual
63 
70  virtual void
71  filter_rw(CoordinateSequence& /*seq*/, std::size_t /*i*/)
72  {
73  assert(0);
74  }
75 
82  virtual void
83  filter_ro(const CoordinateSequence& /*seq*/, std::size_t /*i*/)
84  {
85  assert(0);
86  }
87 
96  virtual bool isDone() const = 0;
97 
98 
111  virtual bool isGeometryChanged() const = 0;
112 
113 };
114 
115 } // namespace geos::geom
116 } // namespace geos
117 
118 
119 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
120 
virtual void filter_rw(CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition: CoordinateSequenceFilter.h:71
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition: CoordinateSequenceFilter.h:57
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
virtual void filter_ro(const CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition: CoordinateSequenceFilter.h:83
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58