GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 ********************************************************************** 00014 * 00015 * Last port: operation/relate/RelateNodeGraph.java rev. 1.11 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_OP_RELATE_RELATENODEGRAPH_H 00020 #define GEOS_OP_RELATE_RELATENODEGRAPH_H 00021 00022 #include <geos/export.h> 00023 00024 #include <map> 00025 #include <vector> 00026 00027 // Forward declarations 00028 namespace geos { 00029 namespace geom { 00030 class Coordinate; 00031 struct CoordinateLessThen; 00032 } 00033 namespace geomgraph { 00034 //class EdgeEndStar; 00035 class Node; 00036 class GeometryGraph; 00037 class EdgeEnd; 00038 class NodeMap; 00039 } 00040 } 00041 00042 00043 namespace geos { 00044 namespace operation { // geos::operation 00045 namespace relate { // geos::operation::relate 00046 00068 class GEOS_DLL RelateNodeGraph { 00069 00070 public: 00071 00072 RelateNodeGraph(); 00073 00074 virtual ~RelateNodeGraph(); 00075 00076 std::map<geom::Coordinate*, geomgraph::Node*, 00077 geom::CoordinateLessThen> &getNodeMap(); 00078 00079 void build(geomgraph::GeometryGraph *geomGraph); 00080 00081 void computeIntersectionNodes(geomgraph::GeometryGraph *geomGraph, 00082 int argIndex); 00083 00084 void copyNodesAndLabels(geomgraph::GeometryGraph *geomGraph,int argIndex); 00085 00086 void insertEdgeEnds(std::vector<geomgraph::EdgeEnd*> *ee); 00087 00088 private: 00089 00090 geomgraph::NodeMap *nodes; 00091 }; 00092 00093 00094 } // namespace geos:operation:relate 00095 } // namespace geos:operation 00096 } // namespace geos 00097 00098 #endif // GEOS_OP_RELATE_RELATENODEGRAPH_H