00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
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 {
00036 namespace 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 }
00082 }
00083 }
00084
00085
00086
00087
00088
00089 #endif // GEOS_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103