GEOS
3.3.1
|
00001 /********************************************************************** 00002 * $Id: SimpleNoder.h 2556 2009-06-06 22:22:28Z 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: noding/SimpleNoder.java rev. 1.7 (JTS-1.9) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_NODING_SIMPLENODER_H 00021 #define GEOS_NODING_SIMPLENODER_H 00022 00023 #include <geos/export.h> 00024 00025 #include <vector> 00026 00027 #include <geos/inline.h> 00028 00029 #include <geos/noding/SinglePassNoder.h> 00030 #include <geos/noding/NodedSegmentString.h> // for inlined (FIXME) 00031 00032 // Forward declarations 00033 namespace geos { 00034 namespace noding { 00035 //class SegmentString; 00036 } 00037 } 00038 00039 namespace geos { 00040 namespace noding { // geos.noding 00041 00042 00052 class GEOS_DLL SimpleNoder: public SinglePassNoder { 00053 private: 00054 std::vector<SegmentString*>* nodedSegStrings; 00055 virtual void computeIntersects(SegmentString *e0, SegmentString *e1); 00056 00057 public: 00058 SimpleNoder(SegmentIntersector* nSegInt=NULL) 00059 : 00060 SinglePassNoder(nSegInt) 00061 {}; 00062 00063 void computeNodes(std::vector<SegmentString*>* inputSegmentStrings); 00064 00065 std::vector<SegmentString*>* getNodedSubstrings() const { 00066 return NodedSegmentString::getNodedSubstrings(*nodedSegStrings); 00067 } 00068 }; 00069 00070 } // namespace geos.noding 00071 } // namespace geos 00072 00073 //#ifdef GEOS_INLINE 00074 //# include "geos/noding/SimpleNoder.inl" 00075 //#endif 00076 00077 #endif // GEOS_NODING_SIMPLENODER_H 00078 00079 /********************************************************************** 00080 * $Log$ 00081 * Revision 1.3 2006/03/24 09:52:41 strk 00082 * USE_INLINE => GEOS_INLINE 00083 * 00084 * Revision 1.2 2006/03/15 09:51:49 strk 00085 * streamlined header usage 00086 * 00087 * Revision 1.1 2006/03/09 16:46:49 strk 00088 * geos::geom namespace definition, first pass at headers split 00089 * 00090 **********************************************************************/ 00091