CommonBitsRemover.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Coordinate.h> // for composition
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
}
namespace precision {
class CommonBitsRemover;
class CommonCoordinateFilter;
}
}
namespace geos {
namespace precision { // geos.precision
class GEOS_DLL CommonBitsRemover {
private:
geom::Coordinate commonCoord;
CommonCoordinateFilter* ccFilter;
CommonBitsRemover(const CommonBitsRemover&) = delete;
CommonBitsRemover& operator=(const CommonBitsRemover&) = delete;
public:
CommonBitsRemover();
~CommonBitsRemover();
void add(const geom::Geometry* geom);
geom::Coordinate& getCommonCoordinate();
void removeCommonBits(geom::Geometry* geom);
geom::Geometry* addCommonBits(geom::Geometry* geom);
};
} // namespace geos.precision
} // namespace geos
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::precision::CommonBitsRemover
Allow computing and removing common mantissa bits from one or more Geometries.
Definition CommonBitsRemover.h:39
geos::precision::CommonBitsRemover::getCommonCoordinate
geom::Coordinate & getCommonCoordinate()
geos::precision::CommonBitsRemover::addCommonBits
geom::Geometry * addCommonBits(geom::Geometry *geom)
Adds the common coordinate bits back into a Geometry. The coordinates of the Geometry are changed.
geos::precision::CommonBitsRemover::removeCommonBits
void removeCommonBits(geom::Geometry *geom)
Removes the common coordinate bits from a Geometry. The coordinates of the Geometry are changed.
geos::precision::CommonBitsRemover::add
void add(const geom::Geometry *geom)
geos::geom
Definition Angle.h:26
geos::precision
Provides classes for manipulating the precision model of Geometries.
Definition namespaces.h:300
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38