00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEOS_GEOMGRAPH_EDGENODINGVALIDATOR_H
00023 #define GEOS_GEOMGRAPH_EDGENODINGVALIDATOR_H
00024
00025 #include <geos/export.h>
00026 #include <vector>
00027
00028 #include <geos/noding/FastNodingValidator.h>
00029
00030 #include <geos/inline.h>
00031
00032 #ifdef _MSC_VER
00033 #pragma warning(push)
00034 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
00035 #endif
00036
00037
00038 namespace geos {
00039 namespace geom {
00040 class CoordinateSequence;
00041 }
00042 namespace noding {
00043 class SegmentString;
00044 }
00045 namespace geomgraph {
00046 class Edge;
00047 }
00048 }
00049
00050 namespace geos {
00051 namespace geomgraph {
00052
00058 class GEOS_DLL EdgeNodingValidator {
00059
00060 private:
00061 std::vector<noding::SegmentString*>& toSegmentStrings(std::vector<Edge*>& edges);
00062
00063
00064
00065
00066
00067 std::vector<noding::SegmentString*> segStr;
00068
00069
00070
00071
00072
00073 std::vector<geom::CoordinateSequence*> newCoordSeq;
00074
00075 noding::FastNodingValidator nv;
00076
00077 public:
00078
00090 static void checkValid(std::vector<Edge*>& edges)
00091 {
00092 EdgeNodingValidator validator(edges);
00093 validator.checkValid();
00094 }
00095
00096 EdgeNodingValidator(std::vector<Edge*>& edges)
00097 :
00098 segStr(),
00099 newCoordSeq(),
00100 nv(toSegmentStrings(edges))
00101 {}
00102
00103 ~EdgeNodingValidator();
00104
00105 void checkValid() { nv.checkValid(); }
00106 };
00107
00108
00109 }
00110 }
00111
00112 #ifdef _MSC_VER
00113 #pragma warning(pop)
00114 #endif
00115
00116
00117
00118
00119
00120 #endif // ifndef GEOS_GEOMGRAPH_EDGENODINGVALIDATOR_H
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131