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

- File List

# CommonBitsRemover.h

    00001 /**********************************************************************
    00002  * $Id: CommonBitsRemover.h 2556 2009-06-06 22:22:28Z strk $
    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/export.h>
    00020 #include <geos/geom/Coordinate.h> // for composition
    00021
    00022 // Forward declarations
    00023 namespace geos {
    00024         namespace geom {
    00025                 class Geometry;
    00026         }
    00027         namespace precision {
    00028                 class CommonBitsRemover;
    00029                 class CommonCoordinateFilter;
    00030         }
    00031 }
    00032
    00033 namespace geos {
    00034 namespace precision { // geos.precision
    00035
    00041 class GEOS_DLL CommonBitsRemover {
    00042
    00043 private:
    00044
    00045         geom::Coordinate commonCoord;
    00046
    00047         CommonCoordinateFilter *ccFilter;
    00048
    00049 public:
    00050
    00051         CommonBitsRemover();
    00052
    00053         ~CommonBitsRemover();
    00054
    00063         void add(const geom::Geometry *geom);
    00064
    00068         geom::Coordinate& getCommonCoordinate();
    00069
    00078         geom::Geometry* removeCommonBits(geom::Geometry *geom);
    00079
    00087         geom::Geometry* addCommonBits(geom::Geometry *geom);
    00088 };
    00089
    00090 } // namespace geos.precision
    00091 } // namespace geos
    00092
    00093 #endif // GEOS_PRECISION_COMMONBITSREMOVER_H
    00094
    00095 /**********************************************************************
    00096  * $Log$
    00097  * Revision 1.3  2006/04/07 08:30:30  strk
    00098  * made addCommonBits/removeCommonBits interface consistent, doxygen comments
    00099  *
    00100  * Revision 1.2  2006/04/06 14:36:52  strk
    00101  * Cleanup in geos::precision namespace (leaks plugged, auto_ptr use, ...)
    00102  *
    00103  * Revision 1.1  2006/03/23 09:17:19  strk
    00104  * precision.h header split, minor optimizations
    00105  *
    00106  **********************************************************************/