• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

ConnectedElementPointFilter.h

00001 /**********************************************************************
00002  * $Id: ConnectedElementPointFilter.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/ConnectedElementPointFilter.java rev. 1.7 (JTS-1.10)
00017  *
00018  **********************************************************************/
00019 
00020 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
00021 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_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 Coordinate;
00033                 class Geometry;
00034         }
00035 }
00036 
00037 
00038 namespace geos {
00039 namespace operation { // geos::operation
00040 namespace distance { // geos::operation::distance
00041 
00048 class GEOS_DLL ConnectedElementPointFilter: public geom::GeometryFilter {
00049 
00050 private:
00051         std::vector<const geom::Coordinate*> *pts;
00052 
00053 public:
00059         static std::vector<const geom::Coordinate*>* getCoordinates(const geom::Geometry *geom);
00060 
00061         ConnectedElementPointFilter(std::vector<const geom::Coordinate*> *newPts)
00062                 :
00063                 pts(newPts)
00064         {}
00065 
00066         void filter_ro(const geom::Geometry *geom);
00067 
00068         //void filter_rw(geom::Geometry * /*geom*/) {};
00069 };
00070 
00071 
00072 } // namespace geos::operation::distance
00073 } // namespace geos::operation
00074 } // namespace geos
00075 
00076 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
00077 
00078 /**********************************************************************
00079  * $Log$
00080  * Revision 1.2  2006/06/12 17:15:29  strk
00081  * Removed unused parameters warning
00082  *
00083  * Revision 1.1  2006/03/21 17:55:01  strk
00084  * opDistance.h header split
00085  *
00086  **********************************************************************/
00087 

Generated on Thu Jul 22 2010 for GEOS by  doxygen 1.7.1