00001 /********************************************************************** 00002 * $Id: PreparedPolygonContainsProperly.h 2159 2008-08-18 16:27:02Z mloskot $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2006 Refractions Research 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 00017 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H 00018 #define GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H 00019 00020 #include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited 00021 00022 namespace geos { 00023 namespace geom { 00024 class Geometry; 00025 00026 namespace prep { 00027 class PreparedPolygon; 00028 } 00029 } 00030 } 00031 00032 namespace geos { 00033 namespace geom { // geos::geom 00034 namespace prep { // geos::geom::prep 00035 00055 class PreparedPolygonContainsProperly : public PreparedPolygonPredicate 00056 { 00057 private: 00058 protected: 00059 public: 00068 static 00069 bool 00070 containsProperly( const PreparedPolygon * const prep, const geom::Geometry * geom) 00071 { 00072 PreparedPolygonContainsProperly polyInt( prep); 00073 return polyInt.containsProperly( geom); 00074 } 00075 00081 PreparedPolygonContainsProperly( const PreparedPolygon * const prep) 00082 : PreparedPolygonPredicate( prep) 00083 { } 00084 00091 bool 00092 containsProperly( const geom::Geometry * geom); 00093 00094 }; 00095 00096 } // geos::geom::prep 00097 } // geos::geom 00098 } // geos 00099 00100 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H 00101 /********************************************************************** 00102 * $Log$ 00103 **********************************************************************/ 00104