GEOS 3.4.2

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

CoordinateOperation.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) 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_UTIL_COORDINATEOPERATION_H
17 #define GEOS_GEOM_UTIL_COORDINATEOPERATION_H
18
19 #include <geos/export.h>
20 #include <geos/geom/util/GeometryEditorOperation.h> // for inheritance
21
22 // Forward declarations
23 namespace geos {
24 namespace geom {
25 class Geometry;
26 class CoordinateSequence;
27 class GeometryFactory;
28 }
29 }
30
31
32 namespace geos {
33 namespace geom { // geos.geom
34 namespace util { // geos.geom.util
35
41 class GEOS_DLL CoordinateOperation: public GeometryEditorOperation {
42
43 public:
44
48 virtual Geometry* edit(const Geometry *geometry,
49 const GeometryFactory *factory);
50
59 virtual CoordinateSequence* edit(const CoordinateSequence* coordinates,
60 const Geometry *geometry)=0;
61
62
63 virtual ~CoordinateOperation() {}
64 };
65
66
67
68 } // namespace geos.geom.util
69 } // namespace geos.geom
70 } // namespace geos
71
72 #endif