GEOS: ConnectedElementPointFilter.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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
29 namespace geos {
30 namespace geom {
31 class Coordinate;
32 class Geometry;
33 }
34 }
35
36
37 namespace geos {
38 namespace operation { // geos::operation
39 namespace distance { // geos::operation::distance
40
47 class GEOS_DLL ConnectedElementPointFilter: public geom::GeometryFilter {
48
49 private:
50 std::vector<const geom::Coordinate*> *pts;
51
52 public:
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
geos::geom::GeometryFilter
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:48
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::operation::distance::ConnectedElementPointFilter
Extracts a single point from each connected element in a Geometry (e.g. a polygon, linestring or point) and returns them in a list.
Definition: ConnectedElementPointFilter.h:47