GEOS  3.6.1
PointExtracter.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2001-2002 Vivid Solutions Inc.
7  * Copyright (C) 2006 Refractions Research Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************/
15 
16 #ifndef GEOS_GEOM_UTIL_POINTEXTRACTER_H
17 #define GEOS_GEOM_UTIL_POINTEXTRACTER_H
18 
19 #include <geos/export.h>
20 #include <geos/geom/GeometryFilter.h>
21 #include <geos/geom/Point.h>
22 #include <geos/platform.h>
23 #include <vector>
24 
25 namespace geos {
26 namespace geom { // geos.geom
27 namespace util { // geos.geom.util
28 
32 class GEOS_DLL PointExtracter: public GeometryFilter {
33 
34 public:
41  static void getPoints(const Geometry &geom, Point::ConstVect &ret);
42 
48 
49  void filter_rw(Geometry *geom);
50 
51  void filter_ro(const Geometry *geom);
52 
53 private:
54 
55  Point::ConstVect& comps;
56 
57  // Declare type as noncopyable
58  PointExtracter(const PointExtracter& other);
59  PointExtracter& operator=(const PointExtracter& rhs);
60 };
61 
62 } // namespace geos.geom.util
63 } // namespace geos.geom
64 } // namespace geos
65 
66 #endif
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:48
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
std::vector< const Point * > ConstVect
A vector of const Point pointers.
Definition: Point.h:75
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Definition: PointExtracter.h:32