• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

PreparedPolygonIntersects.h

00001 /**********************************************************************
00002  * $Id: PreparedPolygonIntersects.h 2420 2009-04-29 08:56:14Z strk $
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  * Last port: geom/prep/PreparedPolygonIntersects.java rev 1.6 (JTS-1.10)
00018  * (2007-12-12)
00019  *
00020  **********************************************************************/
00021 
00022 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
00023 #define GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
00024 
00025 #include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
00026 
00027 namespace geos {
00028         namespace geom { 
00029                 class Geometry;
00030 
00031                 namespace prep { 
00032                         class PreparedPolygon;
00033                 }
00034         }
00035 }
00036 
00037 namespace geos {
00038 namespace geom { // geos::geom
00039 namespace prep { // geos::geom::prep
00040 
00051 class PreparedPolygonIntersects : public PreparedPolygonPredicate
00052 {
00053 private:
00054 protected:
00055 public:
00064         static bool intersects( const PreparedPolygon * const prep, const geom::Geometry * geom)
00065         {
00066                 PreparedPolygonIntersects polyInt(prep);
00067                 return polyInt.intersects( geom);
00068         }
00069         
00075         PreparedPolygonIntersects( const PreparedPolygon * const prep)
00076         :       PreparedPolygonPredicate( prep)
00077         { }
00078         
00085         bool intersects( const geom::Geometry * geom);
00086 
00087 };
00088 
00089 } // geos::geom::prep
00090 } // geos::geom
00091 } // geos
00092 
00093 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
00094 /**********************************************************************
00095  * $Log$
00096  **********************************************************************/
00097 

Generated on Thu Jul 22 2010 for GEOS by  doxygen 1.7.1