# ConnectedElementPointFilter.h

    00001 /**********************************************************************
    00002  * $Id: ConnectedElementPointFilter.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_CONNECTEDELEMENTPOINTFILTER_H
    00017 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_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 Coordinate;
    00027                 class Geometry;
    00028         }
    00029 }
    00030
    00031
    00032 namespace geos {
    00033 namespace operation { // geos::operation
    00034 namespace distance { // geos::operation::distance
    00035
    00042 class ConnectedElementPointFilter: public geom::GeometryFilter {
    00043
    00044 private:
    00045         std::vector<const geom::Coordinate*> *pts;
    00046
    00047 public:
    00053         static std::vector<const geom::Coordinate*>* getCoordinates(const geom::Geometry *geom);
    00054
    00055         ConnectedElementPointFilter(std::vector<const geom::Coordinate*> *newPts)
    00056                 :
    00057                 pts(newPts)
    00058         {}
    00059
    00060         void filter_ro(const geom::Geometry *geom);
    00061
    00062         //void filter_rw(geom::Geometry * /*geom*/) {};
    00063 };
    00064
    00065
    00066 } // namespace geos::operation::distance
    00067 } // namespace geos::operation
    00068 } // namespace geos
    00069
    00070 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTPOINTFILTER_H
    00071
    00072 /**********************************************************************
    00073  * $Log$
    00074  * Revision 1.2  2006/06/12 17:15:29  strk
    00075  * Removed unused parameters warning
    00076  *
    00077  * Revision 1.1  2006/03/21 17:55:01  strk
    00078  * opDistance.h header split
    00079  *
    00080  **********************************************************************/
    00081