ConnectedElementLocationFilter.h

00001 /**********************************************************************
00002  * $Id: ConnectedElementLocationFilter.h 1820 2006-09-06 16:54:23Z mloskot $
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 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
00017 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
00018 
00019 #include <geos/geom/GeometryFilter.h> // for inheritance
00020 
00021 #include <vector>
00022 
00023 // Forward declarations
00024 namespace geos {
00025         namespace geom { 
00026                 class Geometry;
00027         }
00028         namespace operation { 
00029                 namespace distance {
00030                         class GeometryLocation;
00031                 }
00032         }
00033 }
00034 
00035 
00036 namespace geos {
00037 namespace operation { // geos::operation
00038 namespace distance { // geos::operation::distance
00039 
00047 class ConnectedElementLocationFilter: public geom::GeometryFilter {
00048 private:
00049 
00050         std::vector<GeometryLocation*> *locations;
00051 
00052 public:
00059         static std::vector<GeometryLocation*>* getLocations(const geom::Geometry *geom);
00060 
00061         ConnectedElementLocationFilter(std::vector<GeometryLocation*> *newLocations)
00062                 :
00063                 locations(newLocations)
00064         {}
00065 
00066         void filter_ro(const geom::Geometry *geom);
00067         void filter_rw(geom::Geometry *geom);
00068 };
00069 
00070 
00071 } // namespace geos::operation::distance
00072 } // namespace geos::operation
00073 } // namespace geos
00074 
00075 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
00076 
00077 /**********************************************************************
00078  * $Log$
00079  * Revision 1.1  2006/03/21 17:55:01  strk
00080  * opDistance.h header split
00081  *
00082  **********************************************************************/
00083 

Generated on Fri Mar 27 04:52:36 2009 for GEOS by  doxygen 1.5.4