00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GEOS_NODING_SIMPLENODER_H
00017 #define GEOS_NODING_SIMPLENODER_H
00018
00019 #include <vector>
00020
00021 #include <geos/inline.h>
00022
00023 #include <geos/noding/SinglePassNoder.h>
00024 #include <geos/noding/SegmentString.h>
00025
00026
00027 namespace geos {
00028 namespace noding {
00029
00030 }
00031 }
00032
00033 namespace geos {
00034 namespace noding {
00035
00036
00046 class SimpleNoder: public SinglePassNoder {
00047 private:
00048 std::vector<SegmentString*>* nodedSegStrings;
00049 virtual void computeIntersects(SegmentString *e0, SegmentString *e1);
00050
00051 public:
00052 SimpleNoder(SegmentIntersector* nSegInt=NULL)
00053 :
00054 SinglePassNoder(nSegInt)
00055 {};
00056
00057 void computeNodes(std::vector<SegmentString*>* inputSegmentStrings);
00058
00059 std::vector<SegmentString*>* getNodedSubstrings() const {
00060 return SegmentString::getNodedSubstrings(*nodedSegStrings);
00061 }
00062 };
00063
00064 }
00065 }
00066
00067
00068
00069
00070
00071 #endif // GEOS_NODING_SIMPLENODER_H
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085