GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 ********************************************************************** 00014 * 00015 * Last port: operation/distance/ConnectedElementLocationFilter.java rev. 1.4 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H 00020 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H 00021 00022 #include <geos/export.h> 00023 00024 #include <geos/geom/GeometryFilter.h> // for inheritance 00025 00026 #include <vector> 00027 00028 // Forward declarations 00029 namespace geos { 00030 namespace geom { 00031 class Geometry; 00032 } 00033 namespace operation { 00034 namespace distance { 00035 class GeometryLocation; 00036 } 00037 } 00038 } 00039 00040 00041 namespace geos { 00042 namespace operation { // geos::operation 00043 namespace distance { // geos::operation::distance 00044 00052 class GEOS_DLL ConnectedElementLocationFilter: public geom::GeometryFilter { 00053 private: 00054 00055 std::vector<GeometryLocation*> *locations; 00056 00057 public: 00064 static std::vector<GeometryLocation*>* getLocations(const geom::Geometry *geom); 00065 00066 ConnectedElementLocationFilter(std::vector<GeometryLocation*> *newLocations) 00067 : 00068 locations(newLocations) 00069 {} 00070 00071 void filter_ro(const geom::Geometry *geom); 00072 void filter_rw(geom::Geometry *geom); 00073 }; 00074 00075 00076 } // namespace geos::operation::distance 00077 } // namespace geos::operation 00078 } // namespace geos 00079 00080 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H 00081