00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GEOS_NODING_SINGLEPASSNODER_H
00017 #define GEOS_NODING_SINGLEPASSNODER_H
00018
00019 #include <vector>
00020
00021 #include <geos/inline.h>
00022
00023 #include <geos/noding/Noder.h>
00024
00025
00026 namespace geos {
00027 namespace noding {
00028 class SegmentString;
00029 class SegmentIntersector;
00030 }
00031 }
00032
00033 namespace geos {
00034 namespace noding {
00035
00036
00049 class SinglePassNoder : public Noder {
00050
00051 protected:
00052
00054 SegmentIntersector* segInt;
00055
00056 public:
00057
00058 SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {}
00059
00060 virtual ~SinglePassNoder() {}
00061
00071 virtual void setSegmentIntersector(SegmentIntersector* newSegInt) {
00072 segInt = newSegInt;
00073 }
00074
00080 virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0;
00081
00088 virtual std::vector<SegmentString*>* getNodedSubstrings() const=0;
00089
00090 };
00091
00092 }
00093 }
00094
00095
00096
00097
00098
00099 #endif // GEOS_NODING_SINGLEPASSNODER_H
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110