00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
00020 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
00021
00022 #include <geos/export.h>
00023
00024 #include <geos/geom/GeometryFilter.h>
00025
00026 #include <vector>
00027
00028
00029 namespace geos {
00030 namespace geom {
00031 class Geometry;
00032 }
00033 namespace operation {
00034 namespace distance {
00035 class GeometryLocation;
00036 }
00037 }
00038 }
00039
00040
00041 namespace geos {
00042 namespace operation {
00043 namespace distance {
00044
00052 class GEOS_DLL ConnectedElementLocationFilter: public geom::GeometryFilter {
00053 private:
00054
00055 std::vector<GeometryLocation*> *locations;
00056
00057 public:
00064 static std::vector<GeometryLocation*>* getLocations(const geom::Geometry *geom);
00065
00066 ConnectedElementLocationFilter(std::vector<GeometryLocation*> *newLocations)
00067 :
00068 locations(newLocations)
00069 {}
00070
00071 void filter_ro(const geom::Geometry *geom);
00072 void filter_rw(geom::Geometry *geom);
00073 };
00074
00075
00076 }
00077 }
00078 }
00079
00080 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
00081