PreparedPolygonContainsProperly.h

00001 /**********************************************************************
00002  *
00003  * GEOS - Geometry Engine Open Source
00004  * http://geos.osgeo.org
00005  *
00006  * Copyright (C) 2006 Refractions Research Inc.
00007  *
00008  * This is free software; you can redistribute and/or modify it under
00009  * the terms of the GNU Lesser General Public Licence as published
00010  * by the Free Software Foundation. 
00011  * See the COPYING file for more information.
00012  *
00013  *
00014  **********************************************************************
00015  *
00016  * Last port: geom/prep/PreparedPolygonContainsProperly.java rev 1.5 (JTS-1.10)
00017  * (2007-12-12)
00018  *
00019  **********************************************************************/
00020 
00021 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H
00022 #define GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H
00023 
00024 #include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
00025 
00026 namespace geos {
00027         namespace geom { 
00028                 class Geometry;
00029 
00030                 namespace prep { 
00031                         class PreparedPolygon;
00032                 }
00033         }
00034 }
00035 
00036 namespace geos {
00037 namespace geom { // geos::geom
00038 namespace prep { // geos::geom::prep
00039 
00059 class PreparedPolygonContainsProperly : public PreparedPolygonPredicate
00060 {
00061 private:
00062 protected:
00063 public:
00072         static 
00073         bool 
00074         containsProperly( const PreparedPolygon * const prep, const geom::Geometry * geom)
00075         {
00076                 PreparedPolygonContainsProperly polyInt( prep);
00077                 return polyInt.containsProperly( geom);
00078         }
00079 
00085         PreparedPolygonContainsProperly( const PreparedPolygon * const prep)
00086         :       PreparedPolygonPredicate( prep)
00087         { }
00088         
00095         bool 
00096         containsProperly( const geom::Geometry * geom);
00097 
00098 };
00099 
00100 } // geos::geom::prep
00101 } // geos::geom
00102 } // geos
00103 
00104 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H

Generated on 23 Sep 2013 for GEOS by  doxygen 1.4.7