GEOS  3.11.0rc0
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 
21 namespace geos {
22 namespace geom { // geos::geom
23 
24 class Coordinate;
25 
41 class GEOS_DLL CoordinateFilter {
42 public:
43  virtual
44  ~CoordinateFilter() {}
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: Angle.h:25