# MinimalEdgeRing.h

    00001 /**********************************************************************
    00002  * $Id: MinimalEdgeRing.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_OVERLAY_MINIMALEDGERING_H
    00017 #define GEOS_OP_OVERLAY_MINIMALEDGERING_H
    00018
    00019 #include <geos/geomgraph/EdgeRing.h> // for inheritance
    00020 #include <geos/geomgraph/DirectedEdge.h> // for inlines
    00021
    00022 #include <vector>
    00023
    00024 #include <geos/inline.h>
    00025
    00026 // Forward declarations
    00027 namespace geos {
    00028         namespace geom {
    00029                 class GeometryFactory;
    00030         }
    00031         namespace geomgraph {
    00032                 class DirectedEdge;
    00033                 class EdgeRing;
    00034         }
    00035 }
    00036
    00037 namespace geos {
    00038 namespace operation { // geos::operation
    00039 namespace overlay { // geos::operation::overlay
    00040
    00051 class MinimalEdgeRing: public geomgraph::EdgeRing {
    00052
    00053 public:
    00054
    00055         // CGAlgorithms argument obsoleted
    00056         MinimalEdgeRing(geomgraph::DirectedEdge *start,
    00057                 const geom::GeometryFactory *geometryFactory);
    00058
    00059         virtual ~MinimalEdgeRing();
    00060
    00061         geomgraph::DirectedEdge* getNext(geomgraph::DirectedEdge *de);
    00062
    00063         void setEdgeRing(geomgraph::DirectedEdge *de,
    00064                         geomgraph::EdgeRing *er);
    00065 };
    00066
    00067
    00068 } // namespace geos::operation::overlay
    00069 } // namespace geos::operation
    00070 } // namespace geos
    00071
    00072 #ifdef GEOS_INLINE
    00073 #include <geos/operation/overlay/MinimalEdgeRing.inl>
    00074 #endif
    00075
    00076 #endif // ndef GEOS_OP_OVERLAY_MINIMALEDGERING_H
    00077
    00078 /**********************************************************************
    00079  * $Log$
    00080  * Revision 1.2  2006/03/27 16:02:34  strk
    00081  * Added INL file for MinimalEdgeRing, added many debugging blocks,
    00082  * fixed memory leak in ConnectedInteriorTester (bug #59)
    00083  *
    00084  * Revision 1.1  2006/03/17 13:24:59  strk
    00085  * opOverlay.h header splitted. Reduced header inclusions in operation/overlay implementation files. ElevationMatrixFilter code moved from own file to ElevationMatrix.cpp (ideally a class-private).
    00086  *
    00087  **********************************************************************/
    00088