- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# EdgeSetNoder.h

    00001 /**********************************************************************
    00002  * $Id: EdgeSetNoder.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_EDGESETNODER_H
    00017 #define GEOS_OP_OVERLAY_EDGESETNODER_H
    00018
    00019 #include <vector>
    00020
    00021 // Forward declarations
    00022 namespace geos {
    00023         namespace geomgraph {
    00024                 class Edge;
    00025         }
    00026         namespace algorithm {
    00027                 class LineIntersector;
    00028         }
    00029 }
    00030
    00031 namespace geos {
    00032 namespace operation { // geos::operation
    00033 namespace overlay { // geos::operation::overlay
    00034
    00042 class EdgeSetNoder {
    00043 private:
    00044         algorithm::LineIntersector *li;
    00045         std::vector<geomgraph::Edge*>* inputEdges;
    00046 public:
    00047         EdgeSetNoder(algorithm::LineIntersector *newLi)
    00048                 :
    00049                 li(newLi),
    00050                 inputEdges(new std::vector<geomgraph::Edge*>())
    00051         {}
    00052
    00053         ~EdgeSetNoder() {
    00054                 delete inputEdges; // TODO: avoid heap allocation
    00055         }
    00056
    00057         void addEdges(std::vector<geomgraph::Edge*> *edges);
    00058         std::vector<geomgraph::Edge*>* getNodedEdges();
    00059 };
    00060
    00061
    00062 } // namespace geos::operation::overlay
    00063 } // namespace geos::operation
    00064 } // namespace geos
    00065
    00066 #endif // ndef GEOS_OP_OVERLAY_EDGESETNODER_H
    00067
    00068 /**********************************************************************
    00069  * $Log$
    00070  * Revision 1.1  2006/03/17 13:24:59  strk
    00071  * 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).
    00072  *
    00073  **********************************************************************/
    00074