GEOS
3.9.0
include
geos
geom
GeometryFilter.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2001-2002 Vivid Solutions Inc.
7
* Copyright (C) 2005 2006 Refractions Research Inc.
8
*
9
* This is free software; you can redistribute and/or modify it under
10
* the terms of the GNU Lesser General Public Licence as published
11
* by the Free Software Foundation.
12
* See the COPYING file for more information.
13
*
14
**********************************************************************/
15
16
#ifndef GEOS_GEOM_GEOMETRYFILTER_H
17
#define GEOS_GEOM_GEOMETRYFILTER_H
18
19
#include <geos/export.h>
20
#include <geos/inline.h>
21
22
#include <string>
23
#include <vector>
24
#include <cassert>
25
26
namespace
geos
{
27
namespace
geom {
// geos::geom
28
class
Geometry;
29
}
30
}
31
32
namespace
geos
{
33
namespace
geom {
// geos::geom
34
35
47
class
GEOS_DLL
GeometryFilter
{
48
public
:
49
/*
50
* Performs an operation with or on <code>geom</code>.
51
*
52
* @param geom a <code>Geometry</code> to which the filter
53
* is applied.
54
*
55
* NOTE: this are not pure abstract to allow read-only
56
* or read-write-only filters to avoid defining a fake
57
* version of the not-implemented kind.
58
*/
59
virtual
void
60
filter_ro(
const
Geometry
*
/*geom*/
)
61
{
62
assert(0);
63
}
64
virtual
void
65
filter_rw(
Geometry
*
/*geom*/
)
66
{
67
assert(0);
68
}
69
70
virtual
71
~
GeometryFilter
() {}
72
};
73
74
}
// namespace geos::geom
75
}
// namespace geos
76
77
#endif // ndef GEOS_GEOM_GEOMETRYFILTER_H
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:26
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition:
Geometry.h:188
geos::geom::GeometryFilter
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition:
GeometryFilter.h:47
Generated by
1.8.20