GEOS  3.3.3
ConnectedElementPointFilter.h
1 /**********************************************************************
2  * $Id: ConnectedElementPointFilter.h 2557 2009-06-08 09:30:55Z strk $
3  *
4  * GEOS - Geometry Engine Open Source
5  * http://geos.refractions.net
6  *
7  * Copyright (C) 2006 Refractions Research Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************
15  *
16  * Last port: operation/distance/ConnectedElementPointFilter.java rev. 1.7 (JTS-1.10)
17  *
18  **********************************************************************/
19 
20 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
21 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
22 
23 #include <geos/export.h>
24 
25 #include <geos/geom/GeometryFilter.h> // for inheritance
26 
27 #include <vector>
28 
29 // Forward declarations
30 namespace geos {
31  namespace geom {
32  class Coordinate;
33  class Geometry;
34  }
35 }
36 
37 
38 namespace geos {
39 namespace operation { // geos::operation
40 namespace distance { // geos::operation::distance
41 
49 
50 private:
51  std::vector<const geom::Coordinate*> *pts;
52 
53 public:
59  static std::vector<const geom::Coordinate*>* getCoordinates(const geom::Geometry *geom);
60 
61  ConnectedElementPointFilter(std::vector<const geom::Coordinate*> *newPts)
62  :
63  pts(newPts)
64  {}
65 
66  void filter_ro(const geom::Geometry *geom);
67 
68  //void filter_rw(geom::Geometry * /*geom*/) {};
69 };
70 
71 
72 } // namespace geos::operation::distance
73 } // namespace geos::operation
74 } // namespace geos
75 
76 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
77 
78 /**********************************************************************
79  * $Log$
80  * Revision 1.2 2006/06/12 17:15:29 strk
81  * Removed unused parameters warning
82  *
83  * Revision 1.1 2006/03/21 17:55:01 strk
84  * opDistance.h header split
85  *
86  **********************************************************************/
87