00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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>
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 {
00039 namespace 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 }
00090 }
00091 }
00092
00093 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
00094
00095
00096
00097