GEOS: CommonBitsRemover.h Source File

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

# CommonBitsRemover.h

    00001 /**********************************************************************
    00002  * $Id: CommonBitsRemover.h 1820 2006-09-06 16:54:23Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2005-2006 Refractions Research Inc.
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  **********************************************************************/
    00015
    00016 #ifndef GEOS_PRECISION_COMMONBITSREMOVER_H
    00017 #define GEOS_PRECISION_COMMONBITSREMOVER_H
    00018
    00019 #include <geos/geom/Coordinate.h> // for composition
    00020
    00021 // Forward declarations
    00022 namespace geos {
    00023         namespace geom {
    00024                 class Geometry;
    00025         }
    00026         namespace precision {
    00027                 class CommonBitsRemover;
    00028                 class CommonCoordinateFilter;
    00029         }
    00030 }
    00031
    00032 namespace geos {
    00033 namespace precision { // geos.precision
    00034
    00040 class CommonBitsRemover {
    00041
    00042 private:
    00043
    00044         geom::Coordinate commonCoord;
    00045
    00046         CommonCoordinateFilter *ccFilter;
    00047
    00048 public:
    00049
    00050         CommonBitsRemover();
    00051
    00052         ~CommonBitsRemover();
    00053
    00062         void add(const geom::Geometry *geom);
    00063
    00067         geom::Coordinate& getCommonCoordinate();
    00068
    00077         geom::Geometry* removeCommonBits(geom::Geometry *geom);
    00078
    00086         geom::Geometry* addCommonBits(geom::Geometry *geom);
    00087 };
    00088
    00089 } // namespace geos.precision
    00090 } // namespace geos
    00091
    00092 #endif // GEOS_PRECISION_COMMONBITSREMOVER_H
    00093
    00094 /**********************************************************************
    00095  * $Log$
    00096  * Revision 1.3  2006/04/07 08:30:30  strk
    00097  * made addCommonBits/removeCommonBits interface consistent, doxygen comments
    00098  *
    00099  * Revision 1.2  2006/04/06 14:36:52  strk
    00100  * Cleanup in geos::precision namespace (leaks plugged, auto_ptr use, ...)
    00101  *
    00102  * Revision 1.1  2006/03/23 09:17:19  strk
    00103  * precision.h header split, minor optimizations
    00104  *
    00105  **********************************************************************/