GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * Copyright (C) 2001-2002 Vivid Solutions 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/polygonize/PolygonizeEdge.java rev. 1.3 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 00021 #ifndef GEOS_OP_POLYGONIZE_POLYGONIZEEDGE_H 00022 #define GEOS_OP_POLYGONIZE_POLYGONIZEEDGE_H 00023 00024 #include <geos/export.h> 00025 00026 #include <geos/planargraph/Edge.h> // for inheritance 00027 00028 // Forward declarations 00029 namespace geos { 00030 namespace geom { 00031 class LineString; 00032 } 00033 } 00034 00035 namespace geos { 00036 namespace operation { // geos::operation 00037 namespace polygonize { // geos::operation::polygonize 00038 00039 /* \brief 00040 * An edge of a polygonization graph. 00041 * 00042 * @version 1.4 00043 */ 00044 class GEOS_DLL PolygonizeEdge: public planargraph::Edge { 00045 private: 00046 // Externally owned 00047 const geom::LineString *line; 00048 public: 00049 00050 // Keep the given pointer (won't do anything to it) 00051 PolygonizeEdge(const geom::LineString *newLine); 00052 00053 // Just return what it was given initially 00054 const geom::LineString* getLine(); 00055 }; 00056 00057 } // namespace geos::operation::polygonize 00058 } // namespace geos::operation 00059 } // namespace geos 00060 00061 #endif // GEOS_OP_POLYGONIZE_POLYGONIZEEDGE_H