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 
26 #include <vector>
27 
28 // Forward declarations
29 namespace geos {
30 namespace geom {
31 class Geometry;
32 }
33 namespace operation {
34 namespace distance {
35 class GeometryLocation;
36 }
37 }
38 }
39 
40 
41 namespace geos {
42 namespace operation { // geos::operation
43 namespace distance { // geos::operation::distance
44 
53 private:
54 
55  std::vector<GeometryLocation*>* locations;
56 
57 public:
64  static std::vector<GeometryLocation*>* getLocations(const geom::Geometry* geom);
65 
66  ConnectedElementLocationFilter(std::vector<GeometryLocation*>* newLocations)
67  :
68  locations(newLocations)
69  {}
70 
71  void filter_ro(const geom::Geometry* geom) override;
72  void filter_rw(geom::Geometry* geom) override;
73 };
74 
75 
76 } // namespace geos::operation::distance
77 } // namespace geos::operation
78 } // namespace geos
79 
80 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
81 
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:52
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:187
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25