GEOS 3.6.2
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 {
30 namespace geom {
31 class Coordinate;
32 class Geometry;
33 }
34}
35
36
37namespace geos {
38namespace operation { // geos::operation
39namespace distance { // geos::operation::distance
40
47class GEOS_DLL ConnectedElementPointFilter: public geom::GeometryFilter {
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);
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
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition GeometryFilter.h:48
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
static std::vector< const geom::Coordinate * > * getCoordinates(const geom::Geometry *geom)
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for computing the distance between geometries.
Definition opDistance.h:23
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25