Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

PreparedPolygonIntersects.h

00001 /**********************************************************************
00002  * $Id: PreparedPolygonIntersects.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_PREPAREDPOLYGONINTERSECTS_H
00018 #define GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_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 
00046 class PreparedPolygonIntersects : public PreparedPolygonPredicate
00047 {
00048 private:
00049 protected:
00050 public:
00059         static bool intersects( const PreparedPolygon * const prep, const geom::Geometry * geom)
00060         {
00061                 PreparedPolygonIntersects polyInt(prep);
00062                 return polyInt.intersects( geom);
00063         }
00064         
00070         PreparedPolygonIntersects( const PreparedPolygon * const prep)
00071         :       PreparedPolygonPredicate( prep)
00072         { }
00073         
00080         bool intersects( const geom::Geometry * geom);
00081 
00082 };
00083 
00084 } // geos::geom::prep
00085 } // geos::geom
00086 } // geos
00087 
00088 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
00089 /**********************************************************************
00090  * $Log$
00091  **********************************************************************/
00092 

Generated on Thu Jan 8 06:17:01 2009 for GEOS by  doxygen 1.4.4