GEOS: ConsistentAreaTester.h Source File

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

# ConsistentAreaTester.h

    00001 /**********************************************************************
    00002  * $Id: ConsistentAreaTester.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) 2005-2006 Refractions Research Inc.
    00008  * Copyright (C) 2001-2002 Vivid Solutions Inc.
    00009  *
    00010  * This is free software; you can redistribute and/or modify it under
    00011  * the terms of the GNU Lesser General Public Licence as published
    00012  * by the Free Software Foundation.
    00013  * See the COPYING file for more information.
    00014  *
    00015  **********************************************************************/
    00016
    00017 #ifndef GEOS_OP_CONSISTENTAREATESTER_H
    00018 #define GEOS_OP_CONSISTENTAREATESTER_H
    00019
    00020 #include <geos/geom/Coordinate.h> // for composition
    00021 #include <geos/algorithm/LineIntersector.h> // for composition
    00022 #include <geos/operation/relate/RelateNodeGraph.h> // for composition
    00023
    00024 // Forward declarations
    00025 namespace geos {
    00026         namespace algorithm {
    00027                 class LineIntersector;
    00028         }
    00029         namespace geomgraph {
    00030                 class GeometryGraph;
    00031         }
    00032         namespace operation {
    00033                 namespace relate {
    00034                         class RelateNodeGraph;
    00035                 }
    00036         }
    00037 }
    00038
    00039 namespace geos {
    00040 namespace operation { // geos::operation
    00041 namespace valid { // geos::operation::valid
    00042
    00057 class ConsistentAreaTester {
    00058 private:
    00059
    00060         algorithm::LineIntersector li;
    00061
    00063         geomgraph::GeometryGraph *geomGraph;
    00064
    00065         relate::RelateNodeGraph nodeGraph;
    00066
    00068         geom::Coordinate invalidPoint;
    00069
    00074         bool isNodeEdgeAreaLabelsConsistent();
    00075
    00076 public:
    00077
    00079         ConsistentAreaTester(geomgraph::GeometryGraph *newGeomGraph);
    00080
    00081         ~ConsistentAreaTester();
    00082
    00086         geom::Coordinate& getInvalidPoint();
    00087
    00088         bool isNodeConsistentArea();
    00089
    00105         bool hasDuplicateRings();
    00106 };
    00107
    00108
    00109
    00110 } // namespace geos::operation::valid
    00111 } // namespace geos::operation
    00112 } // namespace geos
    00113
    00114 #endif // GEOS_OP_CONSISTENTAREATESTER_H
    00115
    00116 /**********************************************************************
    00117  * $Log$
    00118  * Revision 1.2  2006/03/27 10:37:58  strk
    00119  * Reduced heap allocations and probability of error by making LineIntersector
    00120  * and RelateNodeGraph part of ConsistentAreaTester class .
    00121  *
    00122  * Revision 1.1  2006/03/20 16:57:44  strk
    00123  * spatialindex.h and opValid.h headers split
    00124  *
    00125  **********************************************************************/
    00126