00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GEOS_GEOM_UTIL_POINTEXTRACTER_H
00017 #define GEOS_GEOM_UTIL_POINTEXTRACTER_H
00018
00019 #include <geos/export.h>
00020 #include <geos/geom/GeometryFilter.h>
00021 #include <geos/geom/Point.h>
00022 #include <geos/platform.h>
00023 #include <vector>
00024
00025 namespace geos {
00026 namespace geom {
00027 namespace util {
00028
00032 class GEOS_DLL PointExtracter: public GeometryFilter {
00033
00034 public:
00041 static void getPoints(const Geometry &geom, Point::ConstVect &ret);
00042
00047 PointExtracter(Point::ConstVect& newComps);
00048
00049 void filter_rw(Geometry *geom);
00050
00051 void filter_ro(const Geometry *geom);
00052
00053 private:
00054
00055 Point::ConstVect& comps;
00056
00057
00058 PointExtracter(const PointExtracter& other);
00059 PointExtracter& operator=(const PointExtracter& rhs);
00060 };
00061
00062 }
00063 }
00064 }
00065
00066 #endif