EdgeSetNoder.h

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/overlay/EdgeSetNoder.java rev. 1.12 (JTS-1.10)
00016  *
00017  **********************************************************************/
00018 
00019 #ifndef GEOS_OP_OVERLAY_EDGESETNODER_H
00020 #define GEOS_OP_OVERLAY_EDGESETNODER_H
00021 
00022 #include <geos/export.h>
00023 
00024 #include <vector>
00025 
00026 // Forward declarations
00027 namespace geos {
00028         namespace geomgraph {
00029                 class Edge;
00030         }
00031         namespace algorithm {
00032                 class LineIntersector;
00033         }
00034 }
00035 
00036 namespace geos {
00037 namespace operation { // geos::operation
00038 namespace overlay { // geos::operation::overlay
00039 
00047 class GEOS_DLL EdgeSetNoder {
00048 private:
00049         algorithm::LineIntersector *li;
00050         std::vector<geomgraph::Edge*>* inputEdges;
00051 public:
00052         EdgeSetNoder(algorithm::LineIntersector *newLi)
00053                 :
00054                 li(newLi),
00055                 inputEdges(new std::vector<geomgraph::Edge*>())
00056         {}
00057 
00058         ~EdgeSetNoder() {
00059                 delete inputEdges; // TODO: avoid heap allocation
00060         }
00061 
00062         void addEdges(std::vector<geomgraph::Edge*> *edges);
00063         std::vector<geomgraph::Edge*>* getNodedEdges();
00064 };
00065 
00066 
00067 } // namespace geos::operation::overlay
00068 } // namespace geos::operation
00069 } // namespace geos
00070 
00071 #endif // ndef GEOS_OP_OVERLAY_EDGESETNODER_H

Generated on 15 May 2014 for GEOS by  doxygen 1.4.7