GEOS: SimplePointInAreaLocator.h Source File

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

# SimplePointInAreaLocator.h

    00001 /**********************************************************************
    00002  * $Id: SimplePointInAreaLocator.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_SIMPLEPOINTINAREALOCATOR_H
    00018 #define GEOS_ALGORITHM_SIMPLEPOINTINAREALOCATOR_H
    00019
    00020
    00021 // Forward declarations
    00022 namespace geos {
    00023         namespace geom {
    00024                 class Geometry;
    00025                 class Coordinate;
    00026                 class Polygon;
    00027         }
    00028 }
    00029
    00030 namespace geos {
    00031 namespace algorithm { // geos::algorithm
    00032
    00033 class SimplePointInAreaLocator {
    00034
    00035 public:
    00036
    00037         static int locate(const geom::Coordinate& p,
    00038                         const geom::Geometry *geom);
    00039
    00040         static bool containsPointInPolygon(const geom::Coordinate& p,
    00041                         const geom::Polygon *poly);
    00042
    00043 private:
    00044
    00045         static bool containsPoint(const geom::Coordinate& p,
    00046                         const geom::Geometry *geom);
    00047 };
    00048
    00049 } // namespace geos::algorithm
    00050 } // namespace geos
    00051
    00052
    00053 #endif // GEOS_ALGORITHM_SIMPLEPOINTINAREALOCATOR_H
    00054
    00055 /**********************************************************************
    00056  * $Log$
    00057  * Revision 1.1  2006/03/09 16:46:48  strk
    00058  * geos::geom namespace definition, first pass at headers split
    00059  *
    00060  **********************************************************************/
    00061