# InteriorPointPoint.h

    00001 /**********************************************************************
    00002  * $Id: InteriorPointPoint.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_ALGORITHM_INTERIORPOINTPOINT_H
    00018 #define GEOS_ALGORITHM_INTERIORPOINTPOINT_H
    00019
    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 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
    00077 /**********************************************************************
    00078  * $Log$
    00079  * Revision 1.1  2006/03/09 16:46:48  strk
    00080  * geos::geom namespace definition, first pass at headers split
    00081  *
    00082  **********************************************************************/
    00083