PreparedPolygonIntersects.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/PreparedPolygonIntersects.java rev 1.6 (JTS-1.10)
00017  * (2007-12-12)
00018  *
00019  **********************************************************************/
00020 
00021 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
00022 #define GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_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 
00050 class PreparedPolygonIntersects : public PreparedPolygonPredicate
00051 {
00052 private:
00053 protected:
00054 public:
00063         static bool intersects( const PreparedPolygon * const prep, const geom::Geometry * geom)
00064         {
00065                 PreparedPolygonIntersects polyInt(prep);
00066                 return polyInt.intersects( geom);
00067         }
00068         
00074         PreparedPolygonIntersects( const PreparedPolygon * const prep)
00075         :       PreparedPolygonPredicate( prep)
00076         { }
00077         
00084         bool intersects( const geom::Geometry * geom);
00085 
00086 };
00087 
00088 } // geos::geom::prep
00089 } // geos::geom
00090 } // geos
00091 
00092 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H

Generated on 10 Sep 2013 for GEOS by  doxygen 1.4.7