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