GEOS 3.11.1
CoordinateFilter.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
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#pragma once
16
17#include <geos/export.h>
18
19#include <cassert>
20
21namespace geos {
22namespace geom { // geos::geom
23
24class Coordinate;
25
41class GEOS_DLL CoordinateFilter {
42public:
43 virtual
45
51 virtual void
52 filter_rw(Coordinate* /*coord*/) const
53 {
54 assert(0);
55 }
56
62 virtual void
63 filter_ro(const Coordinate* /*coord*/)
64 {
65 assert(0);
66 }
67};
68
69} // namespace geos::geom
70} // namespace geos
71
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:41
virtual void filter_rw(Coordinate *) const
Performs an operation on coord.
Definition: CoordinateFilter.h:52
virtual void filter_ro(const Coordinate *)
Performs an operation with coord.
Definition: CoordinateFilter.h:63
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Basic namespace for all GEOS functionalities.
Definition: geos.h:39