GEOS 3.6.2
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
29namespace geos {
30 namespace geom {
31 class Geometry;
32 }
33 namespace operation {
34 namespace distance {
35 class GeometryLocation;
36 }
37 }
38}
39
40
41namespace geos {
42namespace operation { // geos::operation
43namespace distance { // geos::operation::distance
44
52class GEOS_DLL ConnectedElementLocationFilter: public geom::GeometryFilter {
53private:
54
55 std::vector<GeometryLocation*> *locations;
56
57public:
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);
72 void filter_rw(geom::Geometry *geom);
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:48
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
static std::vector< GeometryLocation * > * getLocations(const geom::Geometry *geom)
Represents the location of a point on a Geometry.
Definition GeometryLocation.h:50
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