# MCIndexPointSnapper.h

    00001 /**********************************************************************
    00002  * $Id: MCIndexPointSnapper.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) 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_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
    00017 #define GEOS_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
    00018
    00019 #include <geos/inline.h>
    00020
    00021 // Forward declarations
    00022 namespace geos {
    00023         namespace index {
    00024                 class SpatialIndex;
    00025         }
    00026         namespace noding {
    00027                 class SegmentString;
    00028                 namespace snapround {
    00029                         class HotPixel;
    00030                 }
    00031         }
    00032 }
    00033
    00034 namespace geos {
    00035 namespace noding { // geos::noding
    00036 namespace snapround { // geos::noding::snapround
    00037
    00044 class MCIndexPointSnapper {
    00045
    00046 private:
    00047
    00048         index::SpatialIndex& index;
    00049
    00050 public:
    00051
    00052
    00053         MCIndexPointSnapper(index::SpatialIndex& nIndex)
    00054                 :
    00055                 index(nIndex)
    00056         {}
    00057
    00058
    00071         bool snap(const HotPixel& hotPixel, SegmentString* parentEdge,
    00072                         unsigned int vertexIndex);
    00073
    00074         bool snap(const HotPixel& hotPixel) {
    00075                 return snap(hotPixel, 0, 0);
    00076         }
    00077
    00078 };
    00079
    00080
    00081 } // namespace geos::noding::snapround
    00082 } // namespace geos::noding
    00083 } // namespace geos
    00084
    00085 //#ifdef GEOS_INLINE
    00086 //# include "geos/noding/snapround/MCIndexPointSnapper.inl"
    00087 //#endif
    00088
    00089 #endif // GEOS_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
    00090
    00091 /**********************************************************************
    00092  * $Log$
    00093  * Revision 1.3  2006/03/24 09:52:41  strk
    00094  * USE_INLINE => GEOS_INLINE
    00095  *
    00096  * Revision 1.2  2006/03/22 18:12:31  strk
    00097  * indexChain.h header split.
    00098  *
    00099  * Revision 1.1  2006/03/14 12:55:56  strk
    00100  * Headers split: geomgraphindex.h, nodingSnapround.h
    00101  *
    00102  **********************************************************************/
    00103