00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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>
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 {
00038 namespace 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 }
00089 }
00090 }
00091
00092 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H