00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GEOS_NODING_INTERSECTIONFINDERADDER_H
00021 #define GEOS_NODING_INTERSECTIONFINDERADDER_H
00022
00023 #include <geos/export.h>
00024
00025 #include <vector>
00026 #include <iostream>
00027
00028 #include <geos/inline.h>
00029
00030 #include <geos/geom/Coordinate.h>
00031 #include <geos/noding/SegmentIntersector.h>
00032
00033
00034 namespace geos {
00035 namespace geom {
00036 class Coordinate;
00037 }
00038 namespace noding {
00039 class SegmentString;
00040 }
00041 namespace algorithm {
00042 class LineIntersector;
00043 }
00044 }
00045
00046 namespace geos {
00047 namespace noding {
00048
00054 class GEOS_DLL IntersectionFinderAdder: public SegmentIntersector {
00055
00056 private:
00057 algorithm::LineIntersector& li;
00058 std::vector<geom::Coordinate>& interiorIntersections;
00059
00060 public:
00061
00069 IntersectionFinderAdder(algorithm::LineIntersector& newLi,
00070 std::vector<geom::Coordinate>& v)
00071 :
00072 li(newLi),
00073 interiorIntersections(v)
00074 {}
00075
00086 void processIntersections(
00087 SegmentString* e0, int segIndex0,
00088 SegmentString* e1, int segIndex1);
00089
00090 std::vector<geom::Coordinate>& getInteriorIntersections() {
00091 return interiorIntersections;
00092 }
00093
00099 virtual bool isDone() const {
00100 return false;
00101 }
00102 };
00103
00104 }
00105 }
00106
00107
00108
00109
00110
00111 #endif // GEOS_NODING_INTERSECTIONFINDERADDER_H
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128