GEOS  3.9.1dev
CommonBitsRemover.h
Go to the documentation of this file.
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 #ifndef GEOS_PRECISION_COMMONBITSREMOVER_H
16 #define GEOS_PRECISION_COMMONBITSREMOVER_H
17 
18 #include <geos/export.h>
19 #include <geos/geom/Coordinate.h> // for composition
20 
21 // Forward declarations
22 namespace geos {
23 namespace geom {
24 class Geometry;
25 }
26 namespace precision {
27 class CommonBitsRemover;
28 class CommonCoordinateFilter;
29 }
30 }
31 
32 namespace geos {
33 namespace precision { // geos.precision
34 
41 
42 private:
43 
45 
46  CommonCoordinateFilter* ccFilter;
47 
48  CommonBitsRemover(const CommonBitsRemover&) = delete;
49  CommonBitsRemover& operator=(const CommonBitsRemover&) = delete;
50 
51 public:
52 
54 
56 
65  void add(const geom::Geometry* geom);
66 
70  geom::Coordinate& getCommonCoordinate();
71 
80  void removeCommonBits(geom::Geometry* geom);
81 
89  geom::Geometry* addCommonBits(geom::Geometry* geom);
90 };
91 
92 } // namespace geos.precision
93 } // namespace geos
94 
95 #endif // GEOS_PRECISION_COMMONBITSREMOVER_H
Allow computing and removing common mantissa bits from one or more Geometries.
CommonCoordinateFilter * ccFilter
#define GEOS_DLL
Definition: export.h:28
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Basic namespace for all GEOS functionalities.