GEOS 3.3.8

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

- File List

MCIndexPointSnapper.h
1 /**********************************************************************
2 * $Id: MCIndexPointSnapper.h 3240 2011-02-23 14:37:39Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************
15 *
16 * Last port: noding/snapround/MCIndexPointSnapper.java r320 (JTS-1.12)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
21 #define GEOS_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
22
23 #include <geos/export.h>
24
25 #include <geos/inline.h>
26
27 // Forward declarations
28 namespace geos {
29 namespace index {
30 class SpatialIndex;
31 }
32 namespace noding {
33 class SegmentString;
34 namespace snapround {
35 class HotPixel;
36 }
37 }
38 }
39
40 namespace geos {
41 namespace noding { // geos::noding
42 namespace snapround { // geos::noding::snapround
43
49 class GEOS_DLL MCIndexPointSnapper {
50
51 public:
52
53
54 MCIndexPointSnapper(index::SpatialIndex& nIndex)
55 :
56 index(nIndex)
57 {}
58
71 bool snap(HotPixel& hotPixel, SegmentString* parentEdge,
72 unsigned int vertexIndex);
73
74 bool snap(HotPixel& hotPixel) {
75 return snap(hotPixel, 0, 0);
76 }
77
78
79 private:
80
81 index::SpatialIndex& index;
82
83 // Declare type as noncopyable
84 MCIndexPointSnapper(const MCIndexPointSnapper& other);
85 MCIndexPointSnapper& operator=(const MCIndexPointSnapper& rhs);
86 };
87
88
89 } // namespace geos::noding::snapround
90 } // namespace geos::noding
91 } // namespace geos
92
93 //#ifdef GEOS_INLINE
94 //# include "geos/noding/snapround/MCIndexPointSnapper.inl"
95 //#endif
96
97 #endif // GEOS_NODING_SNAPROUND_MCINDEXPOINTSNAPPER_H
98
99 /**********************************************************************
100 * $Log$
101 * Revision 1.3 2006/03/24 09:52:41 strk
102 * USE_INLINE => GEOS_INLINE
103 *
104 * Revision 1.2 2006/03/22 18:12:31 strk
105 * indexChain.h header split.
106 *
107 * Revision 1.1 2006/03/14 12:55:56 strk
108 * Headers split: geomgraphindex.h, nodingSnapround.h
109 *
110 **********************************************************************/
111