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_PREPAREDLINESTRINGINTERSECTS_H
00022 #define GEOS_GEOM_PREP_PREPAREDLINESTRINGINTERSECTS_H
00023
00024 #include <geos/geom/prep/PreparedLineString.h>
00025 #include <geos/algorithm/PointLocator.h>
00026 #include <geos/geom/util/ComponentCoordinateExtracter.h>
00027 #include <geos/geom/Coordinate.h>
00028 #include <geos/noding/SegmentStringUtil.h>
00029
00030 using namespace geos::algorithm;
00031 using namespace geos::geom::util;
00032
00033 namespace geos {
00034 namespace geom {
00035 namespace prep {
00036
00048 class PreparedLineStringIntersects
00049 {
00050 public:
00051
00060 static bool intersects( PreparedLineString & prep, const geom::Geometry * geom )
00061 {
00062 PreparedLineStringIntersects op( prep);
00063 return op.intersects( geom);
00064 }
00065
00069 PreparedLineStringIntersects(PreparedLineString & prep)
00070 : prepLine( prep)
00071 { }
00072
00079 bool intersects(const geom::Geometry * g) const;
00080
00081 protected:
00082 PreparedLineString & prepLine;
00083
00084
00093 bool isAnyTestPointInTarget(const geom::Geometry * testGeom) const;
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114 PreparedLineStringIntersects(const PreparedLineStringIntersects& other);
00115 PreparedLineStringIntersects& operator=(const PreparedLineStringIntersects& rhs);
00116 };
00117
00118 }
00119 }
00120 }
00121
00122 #endif // GEOS_GEOM_PREP_PREPAREDLINESTRINGINTERSECTS_H
00123
00124
00125
00126