00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GEOS_OP_VALID_OFFSETCURVEVERTEXLIST_H
00021 #define GEOS_OP_VALID_OFFSETCURVEVERTEXLIST_H
00022
00023 #include <vector>
00024
00025
00026 namespace geos {
00027 namespace geom {
00028
00029 class Coordinate;
00030 class LinearRing;
00031 }
00032 namespace index {
00033 class SpatialIndex;
00034 }
00035 namespace geomgraph {
00036 class GeometryGraph;
00037 }
00038 }
00039
00040 namespace geos {
00041 namespace operation {
00042 namespace valid {
00043
00050 class IndexedNestedRingTester
00051 {
00052 public:
00053
00054 IndexedNestedRingTester(geomgraph::GeometryGraph* newGraph)
00055 :
00056 graph(newGraph),
00057
00058 index(0),
00059 nestedPt(0)
00060 {
00061 }
00062
00063 ~IndexedNestedRingTester();
00064
00065
00066
00067
00068
00069
00070
00071 const geom::Coordinate* getNestedPoint() const
00072 {
00073 return nestedPt;
00074 }
00075
00077 void add(const geom::LinearRing* ring)
00078 {
00079 rings.push_back(ring);
00080 }
00081
00082 bool isNonNested();
00083
00084 private:
00085
00087 geomgraph::GeometryGraph* graph;
00088
00090 std::vector<const geom::LinearRing*> rings;
00091
00092
00093
00094
00095
00096 geos::index::SpatialIndex* index;
00097
00098
00099 const geom::Coordinate *nestedPt;
00100
00101 void buildIndex();
00102 };
00103
00104 }
00105 }
00106 }
00107
00108 #endif // GEOS_OP_VALID_OFFSETCURVEVERTEXLIST_H
00109
00110
00111
00112
00113