GEOS  3.8.0dev
ConnectedElementLocationFilter.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2006 Refractions Research Inc.
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  * Last port: operation/distance/ConnectedElementLocationFilter.java rev. 1.4 (JTS-1.10)
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
20 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
21 
22 #include <geos/export.h>
23 
24 #include <geos/geom/GeometryFilter.h> // for inheritance
25 #include <geos/operation/distance/GeometryLocation.h>
26 
27 #include <memory>
28 #include <vector>
29 
30 // Forward declarations
31 namespace geos {
32 namespace geom {
33 class Geometry;
34 }
35 }
36 
37 
38 namespace geos {
39 namespace operation { // geos::operation
40 namespace distance { // geos::operation::distance
41 
50 private:
51 
52  std::vector<std::unique_ptr<GeometryLocation>> locations;
54 
55 public:
64  static std::vector<std::unique_ptr<GeometryLocation>> getLocations(const geom::Geometry* geom);
65 
66  void filter_ro(const geom::Geometry* geom) override;
67  void filter_rw(geom::Geometry* geom) override;
68 };
69 
70 
71 } // namespace geos::operation::distance
72 } // namespace geos::operation
73 } // namespace geos
74 
75 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
76 
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:47
A ConnectedElementPointFilter extracts a single point from each connected element in a Geometry (e...
Definition: ConnectedElementLocationFilter.h:49
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25