00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GEOS_NODING_SINGLEPASSNODER_H
00016 #define GEOS_NODING_SINGLEPASSNODER_H
00017
00018 #include <geos/export.h>
00019
00020 #include <vector>
00021
00022 #include <geos/inline.h>
00023
00024 #include <geos/noding/Noder.h>
00025
00026
00027 namespace geos {
00028 namespace noding {
00029 class SegmentString;
00030 class SegmentIntersector;
00031 }
00032 }
00033
00034 namespace geos {
00035 namespace noding {
00036
00037
00050 class GEOS_DLL SinglePassNoder : public Noder {
00051
00052 protected:
00053
00055 SegmentIntersector* segInt;
00056
00057 public:
00058
00059 SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {}
00060
00061 virtual ~SinglePassNoder() {}
00062
00072 virtual void setSegmentIntersector(SegmentIntersector* newSegInt) {
00073 segInt = newSegInt;
00074 }
00075
00081 virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0;
00082
00089 virtual std::vector<SegmentString*>* getNodedSubstrings() const=0;
00090
00091 };
00092
00093 }
00094 }
00095
00096 #endif // GEOS_NODING_SINGLEPASSNODER_H