GEOS 3.3.8

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

- File List

ConsistentAreaTester.h
1 /**********************************************************************
2 * $Id: ConsistentAreaTester.h 2557 2009-06-08 09:30:55Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: operation/valid/ConsistentAreaTester.java rev. 1.14 (JTS-1.10)
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_OP_CONSISTENTAREATESTER_H
22 #define GEOS_OP_CONSISTENTAREATESTER_H
23
24 #include <geos/export.h>
25
26 #include <geos/geom/Coordinate.h> // for composition
27 #include <geos/algorithm/LineIntersector.h> // for composition
28 #include <geos/operation/relate/RelateNodeGraph.h> // for composition
29
30 // Forward declarations
31 namespace geos {
32 namespace algorithm {
33 class LineIntersector;
34 }
35 namespace geomgraph {
36 class GeometryGraph;
37 }
38 namespace operation {
39 namespace relate {
40 class RelateNodeGraph;
41 }
42 }
43 }
44
45 namespace geos {
46 namespace operation { // geos::operation
47 namespace valid { // geos::operation::valid
48
84 class GEOS_DLL ConsistentAreaTester {
85 private:
86
87 algorithm::LineIntersector li;
88
90 geomgraph::GeometryGraph *geomGraph;
91
92 relate::RelateNodeGraph nodeGraph;
93
95 geom::Coordinate invalidPoint;
96
101 bool isNodeEdgeAreaLabelsConsistent();
102
103 public:
104
111 ConsistentAreaTester(geomgraph::GeometryGraph *newGeomGraph);
112
113 ~ConsistentAreaTester();
114
119 geom::Coordinate& getInvalidPoint();
120
128 bool isNodeConsistentArea();
129
145 bool hasDuplicateRings();
146 };
147
148
149
150 } // namespace geos::operation::valid
151 } // namespace geos::operation
152 } // namespace geos
153
154 #endif // GEOS_OP_CONSISTENTAREATESTER_H
155
156 /**********************************************************************
157 * $Log$
158 * Revision 1.2 2006/03/27 10:37:58 strk
159 * Reduced heap allocations and probability of error by making LineIntersector
160 * and RelateNodeGraph part of ConsistentAreaTester class .
161 *
162 * Revision 1.1 2006/03/20 16:57:44 strk
163 * spatialindex.h and opValid.h headers split
164 *
165 **********************************************************************/
166