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_PREPAREDLINESTRING_H
00022 #define GEOS_GEOM_PREP_PREPAREDLINESTRING_H
00023
00024 #include <geos/geom/prep/BasicPreparedGeometry.h>
00025 #include <geos/noding/SegmentString.h>
00026
00027 namespace geos {
00028 namespace noding {
00029 class FastSegmentSetIntersectionFinder;
00030 }
00031 }
00032
00033 namespace geos {
00034 namespace geom {
00035 namespace prep {
00036
00044 class PreparedLineString : public BasicPreparedGeometry
00045 {
00046 private:
00047 noding::FastSegmentSetIntersectionFinder * segIntFinder;
00048 mutable noding::SegmentString::ConstVect segStrings;
00049
00050 protected:
00051 public:
00052 PreparedLineString(const Geometry * geom)
00053 :
00054 BasicPreparedGeometry( geom),
00055 segIntFinder( NULL)
00056 { }
00057
00058 ~PreparedLineString();
00059
00060 noding::FastSegmentSetIntersectionFinder * getIntersectionFinder();
00061
00062 bool intersects(const geom::Geometry * g) const;
00063
00064 };
00065
00066 }
00067 }
00068 }
00069
00070 #endif // GEOS_GEOM_PREP_PREPAREDLINESTRING_H
00071
00072
00073
00074
00075