RepeatedPointTester.h

00001 /**********************************************************************
00002  * $Id: RepeatedPointTester.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_REPEATEDPOINTTESTER_H
00018 #define GEOS_OP_REPEATEDPOINTTESTER_H
00019 
00020 #include <geos/geom/Coordinate.h> // for composition
00021 
00022 // Forward declarations
00023 namespace geos {
00024         namespace geom {
00025                 //class Coordinate;
00026                 class CoordinateSequence;
00027                 class Geometry;
00028                 class Polygon;
00029                 class MultiPolygon;
00030                 class MultiLineString;
00031                 class GeometryCollection;
00032         }
00033 }
00034 
00035 namespace geos {
00036 namespace operation { // geos::operation
00037 namespace valid { // geos::operation::valid
00038 
00044 class RepeatedPointTester {
00045 public:
00046         RepeatedPointTester() {};
00047         geom::Coordinate& getCoordinate();
00048         bool hasRepeatedPoint(const geom::Geometry *g);
00049         bool hasRepeatedPoint(const geom::CoordinateSequence *coord);
00050 private:
00051         geom::Coordinate repeatedCoord;
00052         bool hasRepeatedPoint(const geom::Polygon *p);
00053         bool hasRepeatedPoint(const geom::GeometryCollection *gc);
00054         bool hasRepeatedPoint(const geom::MultiPolygon *gc);
00055         bool hasRepeatedPoint(const geom::MultiLineString *gc);
00056 };
00057 
00058 
00059 } // namespace geos.operation.valid
00060 } // namespace geos.operation
00061 } // namespace geos
00062 
00063 #endif // GEOS_OP_REPEATEDPOINTTESTER_H
00064 
00065 /**********************************************************************
00066  * $Log$
00067  * Revision 1.1  2006/03/20 16:57:44  strk
00068  * spatialindex.h and opValid.h headers split
00069  *
00070  **********************************************************************/
00071 

Generated on Fri Mar 27 04:52:59 2009 for GEOS by  doxygen 1.5.4