GEOS: LineMergeGraph.h Source File

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

- File List

# LineMergeGraph.h

    00001 /**********************************************************************
    00002  * $Id: LineMergeGraph.h 2562 2009-06-08 15:28:27Z 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/linemerge/LineMergeGraph.java rev. 1.5 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_OP_LINEMERGE_LINEMERGEGRAPH_H
    00021 #define GEOS_OP_LINEMERGE_LINEMERGEGRAPH_H
    00022
    00023 #include <geos/export.h>
    00024
    00025 #include <geos/planargraph/PlanarGraph.h> // for inheritance
    00026
    00027 #include <vector>
    00028
    00029 // Forward declarations
    00030 namespace geos {
    00031         namespace geom {
    00032                 class LineString;
    00033                 class Coordinate;
    00034         }
    00035         namespace planargraph {
    00036                 class Node;
    00037                 class Edge;
    00038                 class DirectedEdge;
    00039         }
    00040 }
    00041
    00042
    00043 namespace geos {
    00044 namespace operation { // geos::operation
    00045 namespace linemerge { // geos::operation::linemerge
    00046
    00054 class GEOS_DLL LineMergeGraph: public planargraph::PlanarGraph {
    00055
    00056 private:
    00057
    00058         planargraph::Node* getNode(const geom::Coordinate &coordinate);
    00059
    00060         std::vector<planargraph::Node*> newNodes;
    00061
    00062         std::vector<planargraph::Edge*> newEdges;
    00063
    00064         std::vector<planargraph::DirectedEdge*> newDirEdges;
    00065
    00066 public:
    00067
    00072         void addEdge(const geom::LineString *lineString);
    00073
    00074         ~LineMergeGraph();
    00075 };
    00076 } // namespace geos::operation::linemerge
    00077 } // namespace geos::operation
    00078 } // namespace geos
    00079
    00080 #endif // GEOS_OP_LINEMERGE_LINEMERGEGRAPH_H
    00081
    00082 /**********************************************************************
    00083  * $Log$
    00084  * Revision 1.1  2006/03/22 10:13:53  strk
    00085  * opLinemerge.h split
    00086  *
    00087  **********************************************************************/