GEOS  3.13.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 #pragma once
20 
21 #include <geos/export.h>
22 
23 #include <cassert>
24 
25 // Forward declarations
26 namespace geos {
27 namespace geom {
28 class CoordinateSequence;
29 }
30 }
31 
32 namespace geos {
33 namespace geom { // geos::geom
34 
55 class GEOS_DLL CoordinateSequenceFilter {
56 
57 public:
58 
59  virtual
61 
68  virtual void
69  filter_rw(CoordinateSequence& /*seq*/, std::size_t /*i*/)
70  {
71  assert(0);
72  }
73 
80  virtual void
81  filter_ro(const CoordinateSequence& /*seq*/, std::size_t /*i*/)
82  {
83  assert(0);
84  }
85 
94  virtual bool isDone() const = 0;
95 
96 
109  virtual bool isGeometryChanged() const = 0;
110 
111 };
112 
113 } // namespace geos::geom
114 } // namespace geos
115 
116 
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition: CoordinateSequenceFilter.h:55
virtual bool isDone() const =0
Reports whether the application of this filter can be terminated.
virtual void filter_ro(const CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition: CoordinateSequenceFilter.h:81
virtual void filter_rw(CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition: CoordinateSequenceFilter.h:69
virtual bool isGeometryChanged() const =0
Reports whether the execution of this filter has modified the coordinates of the geometry.
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25