GEOS 3.9.1
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
28namespace geos {
29namespace geom {
30class CoordinateSequence;
31}
32}
33
34namespace geos {
35namespace geom { // geos::geom
36
58
59public:
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
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition CoordinateSequenceFilter.h:57
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:83
virtual void filter_rw(CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition CoordinateSequenceFilter.h:71
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:58
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26