00001 /********************************************************************** 00002 * $Id: SimplePointInRing.h 2556 2009-06-06 22:22:28Z strk $ 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_SIMPLEPOINTINRING_H 00018 #define GEOS_ALGORITHM_SIMPLEPOINTINRING_H 00019 00020 #include <geos/export.h> 00021 #include <geos/algorithm/PointInRing.h> // for inheritance 00022 00023 // Forward declarations 00024 namespace geos { 00025 namespace geom { 00026 class Coordinate; 00027 class LinearRing; 00028 class CoordinateSequence; 00029 } 00030 } 00031 00032 namespace geos { 00033 namespace algorithm { // geos::algorithm 00034 00035 class GEOS_DLL SimplePointInRing: public PointInRing { 00036 public: 00037 SimplePointInRing(geom::LinearRing *ring); 00038 virtual ~SimplePointInRing(); 00039 bool isInside(const geom::Coordinate& pt); 00040 private: 00041 const geom::CoordinateSequence* pts; 00042 }; 00043 00044 } // namespace geos::algorithm 00045 } // namespace geos 00046 00047 00048 #endif // GEOS_ALGORITHM_SIMPLEPOINTINRING_H 00049 00050 /********************************************************************** 00051 * $Log$ 00052 * Revision 1.1 2006/03/09 16:46:48 strk 00053 * geos::geom namespace definition, first pass at headers split 00054 * 00055 **********************************************************************/ 00056