GEOS: RelateNodeGraph.h Source File

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

# RelateNodeGraph.h

    00001 /**********************************************************************
    00002  * $Id: RelateNodeGraph.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_RELATE_RELATENODEGRAPH_H
    00017 #define GEOS_OP_RELATE_RELATENODEGRAPH_H
    00018
    00019 #include <map>
    00020 #include <vector>
    00021
    00022 // Forward declarations
    00023 namespace geos {
    00024         namespace geom {
    00025                 class Coordinate;
    00026                 struct CoordinateLessThen;
    00027         }
    00028         namespace geomgraph {
    00029                 //class EdgeEndStar;
    00030                 class Node;
    00031                 class GeometryGraph;
    00032                 class EdgeEnd;
    00033                 class NodeMap;
    00034         }
    00035 }
    00036
    00037
    00038 namespace geos {
    00039 namespace operation { // geos::operation
    00040 namespace relate { // geos::operation::relate
    00041
    00063 class RelateNodeGraph {
    00064
    00065 public:
    00066
    00067         RelateNodeGraph();
    00068
    00069         virtual ~RelateNodeGraph();
    00070
    00071         std::map<geom::Coordinate*, geomgraph::Node*,
    00072                         geom::CoordinateLessThen> &getNodeMap();
    00073
    00074         void build(geomgraph::GeometryGraph *geomGraph);
    00075
    00076         void computeIntersectionNodes(geomgraph::GeometryGraph *geomGraph,
    00077                         int argIndex);
    00078
    00079         void copyNodesAndLabels(geomgraph::GeometryGraph *geomGraph,int argIndex);
    00080
    00081         void insertEdgeEnds(std::vector<geomgraph::EdgeEnd*> *ee);
    00082
    00083 private:
    00084
    00085         geomgraph::NodeMap *nodes;
    00086 };
    00087
    00088
    00089 } // namespace geos:operation:relate
    00090 } // namespace geos:operation
    00091 } // namespace geos
    00092
    00093 #endif // GEOS_OP_RELATE_RELATENODEGRAPH_H
    00094
    00095 /**********************************************************************
    00096  * $Log$
    00097  * Revision 1.1  2006/03/21 13:11:29  strk
    00098  * opRelate.h header split
    00099  *
    00100  **********************************************************************/
    00101