GEOS 3.15.0dev
SurfaceExtracter.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2026 ISciences LLC
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#pragma once
16
17#include <geos/export.h>
18#include <geos/geom/GeometryFilter.h>
19#include <vector>
20
21namespace geos::geom {
22class Surface;
23}
24
25namespace geos::geom::util {
26
30class GEOS_DLL SurfaceExtracter: public GeometryFilter {
31
32public:
33
38 static void getSurfaces(const Geometry& geom, std::vector<const Surface*>& ret);
39
44 SurfaceExtracter(std::vector<const Surface*>& newComps);
45
46 void filter_rw(Geometry* geom) override;
47
48 void filter_ro(const Geometry* geom) override;
49
50private:
51
52 std::vector<const Surface*>& comps;
53
54 // Declare type as noncopyable
55 SurfaceExtracter(const SurfaceExtracter& other) = delete;
56 SurfaceExtracter& operator=(const SurfaceExtracter& rhs) = delete;
57};
58
59} // namespace geos.geom.util
60
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:196
Definition SurfaceExtracter.h:30
static void getSurfaces(const Geometry &geom, std::vector< const Surface * > &ret)
SurfaceExtracter(std::vector< const Surface * > &newComps)
Provides classes that parse and modify Geometry objects.
Definition ComponentCoordinateExtracter.h:28
Definition Angle.h:26