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 #ifndef GEOS_NODING_SINGLEPASSNODER_H 00016 #define GEOS_NODING_SINGLEPASSNODER_H 00017 00018 #include <geos/export.h> 00019 00020 #include <vector> 00021 00022 #include <geos/inline.h> 00023 00024 #include <geos/noding/Noder.h> 00025 00026 // Forward declarations 00027 namespace geos { 00028 namespace noding { 00029 class SegmentString; 00030 class SegmentIntersector; 00031 } 00032 } 00033 00034 namespace geos { 00035 namespace noding { // geos.noding 00036 00037 00050 class GEOS_DLL SinglePassNoder : public Noder { // implements Noder 00051 00052 protected: 00053 00055 SegmentIntersector* segInt; 00056 00057 public: 00058 00059 SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {} 00060 00061 virtual ~SinglePassNoder() {} 00062 00072 virtual void setSegmentIntersector(SegmentIntersector* newSegInt) { 00073 segInt = newSegInt; 00074 } 00075 00081 virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0; 00082 00089 virtual std::vector<SegmentString*>* getNodedSubstrings() const=0; 00090 00091 }; 00092 00093 } // namespace geos.noding 00094 } // namespace geos 00095 00096 #endif // GEOS_NODING_SINGLEPASSNODER_H