00001 /********************************************************************** 00002 * $Id: EdgeSetNoder.h 2564 2009-06-08 16:09:51Z 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/overlay/EdgeSetNoder.java rev. 1.12 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_OP_OVERLAY_EDGESETNODER_H 00021 #define GEOS_OP_OVERLAY_EDGESETNODER_H 00022 00023 #include <geos/export.h> 00024 00025 #include <vector> 00026 00027 // Forward declarations 00028 namespace geos { 00029 namespace geomgraph { 00030 class Edge; 00031 } 00032 namespace algorithm { 00033 class LineIntersector; 00034 } 00035 } 00036 00037 namespace geos { 00038 namespace operation { // geos::operation 00039 namespace overlay { // geos::operation::overlay 00040 00048 class GEOS_DLL EdgeSetNoder { 00049 private: 00050 algorithm::LineIntersector *li; 00051 std::vector<geomgraph::Edge*>* inputEdges; 00052 public: 00053 EdgeSetNoder(algorithm::LineIntersector *newLi) 00054 : 00055 li(newLi), 00056 inputEdges(new std::vector<geomgraph::Edge*>()) 00057 {} 00058 00059 ~EdgeSetNoder() { 00060 delete inputEdges; // TODO: avoid heap allocation 00061 } 00062 00063 void addEdges(std::vector<geomgraph::Edge*> *edges); 00064 std::vector<geomgraph::Edge*>* getNodedEdges(); 00065 }; 00066 00067 00068 } // namespace geos::operation::overlay 00069 } // namespace geos::operation 00070 } // namespace geos 00071 00072 #endif // ndef GEOS_OP_OVERLAY_EDGESETNODER_H 00073 00074 /********************************************************************** 00075 * $Log$ 00076 * Revision 1.1 2006/03/17 13:24:59 strk 00077 * 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). 00078 * 00079 **********************************************************************/ 00080