GEOS 3.9.1
ConnectedElementPointFilter.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/ConnectedElementPointFilter.java rev. 1.7 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
20#define GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
21
22#include <geos/export.h>
23
24#include <geos/geom/GeometryFilter.h> // for inheritance
25
26#include <vector>
27
28// Forward declarations
29namespace geos {
30namespace geom {
31class Coordinate;
32class Geometry;
33}
34}
35
36
37namespace geos {
38namespace operation { // geos::operation
39namespace distance { // geos::operation::distance
40
48
49private:
50 std::vector<const geom::Coordinate*>* pts;
51
52public:
58 static std::vector<const geom::Coordinate*>* getCoordinates(const geom::Geometry* geom);
59
60 ConnectedElementPointFilter(std::vector<const geom::Coordinate*>* newPts)
61 :
62 pts(newPts)
63 {}
64
65 void filter_ro(const geom::Geometry* geom) override;
66
67 //void filter_rw(geom::Geometry * /*geom*/) {};
68};
69
70
71} // namespace geos::operation::distance
72} // namespace geos::operation
73} // namespace geos
74
75#endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
76
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:47
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Extracts a single point from each connected element in a Geometry (e.g. a polygon,...
Definition: ConnectedElementPointFilter.h:47
static std::vector< const geom::Coordinate * > * getCoordinates(const geom::Geometry *geom)
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26