GEOS 3.11.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#pragma once
17
18#include <geos/export.h>
19#include <geos/geom/GeometryFilter.h>
20#include <geos/geom/Point.h>
21#include <vector>
22
23namespace geos {
24namespace geom { // geos.geom
25namespace util { // geos.geom.util
26
30class GEOS_DLL PointExtracter: public GeometryFilter {
31
32public:
39 static void getPoints(const Geometry& geom, Point::ConstVect& ret);
40
46
47 void filter_rw(Geometry* geom) override;
48
49 void filter_ro(const Geometry* geom) override;
50
51private:
52
53 Point::ConstVect& comps;
54
55 // Declare type as noncopyable
56 PointExtracter(const PointExtracter& other) = delete;
57 PointExtracter& operator=(const PointExtracter& rhs) = delete;
58};
59
60} // namespace geos.geom.util
61} // namespace geos.geom
62} // namespace geos
63
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:45
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
std::vector< const Point * > ConstVect
A vector of const Point pointers.
Definition: Point.h:70
Definition: PointExtracter.h:30
static void getPoints(const Geometry &geom, Point::ConstVect &ret)
PointExtracter(Point::ConstVect &newComps)
Basic namespace for all GEOS functionalities.
Definition: geos.h:39