InteriorPointPoint.h

00001 /**********************************************************************
00002  *
00003  * GEOS - Geometry Engine Open Source
00004  * http://geos.osgeo.org
00005  *
00006  * Copyright (C) 2005-2006 Refractions Research Inc.
00007  * Copyright (C) 2001-2002 Vivid Solutions Inc.
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Public Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  **********************************************************************/
00015 
00016 #ifndef GEOS_ALGORITHM_INTERIORPOINTPOINT_H
00017 #define GEOS_ALGORITHM_INTERIORPOINTPOINT_H
00018 
00019 #include <geos/export.h>
00020 #include <geos/geom/Coordinate.h>
00021 
00022 // Forward declarations
00023 namespace geos {
00024         namespace geom {
00025                 class Geometry;
00026         }
00027 }
00028 
00029 namespace geos {
00030 namespace algorithm { // geos::algorithm
00031 
00041 class GEOS_DLL InteriorPointPoint {
00042 private:
00043 
00044         bool hasInterior;
00045 
00046         geom::Coordinate centroid;
00047 
00048         double minDistance;
00049 
00050         geom::Coordinate interiorPoint;
00051 
00057         void add(const geom::Geometry *geom);
00058 
00059         void add(const geom::Coordinate *point);
00060 
00061 public:
00062 
00063         InteriorPointPoint(const geom::Geometry *g);
00064 
00065         ~InteriorPointPoint() {}
00066 
00067         bool getInteriorPoint(geom::Coordinate& ret) const;
00068 
00069 };
00070 
00071 } // namespace geos::algorithm
00072 } // namespace geos
00073 
00074 
00075 #endif // GEOS_ALGORITHM_INTERIORPOINTPOINT_H
00076 

Generated on 23 Sep 2013 for GEOS by  doxygen 1.4.7