GEOS
3.3.5
|
00001 /********************************************************************** 00002 * $Id: IntersectionFinderAdder.h 2778 2009-12-03 19:44:00Z mloskot $ 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/IntersectionFinderAdder.java rev. 1.5 (JTS-1.9) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_NODING_INTERSECTIONFINDERADDER_H 00021 #define GEOS_NODING_INTERSECTIONFINDERADDER_H 00022 00023 #include <geos/export.h> 00024 00025 #include <vector> 00026 #include <iostream> 00027 00028 #include <geos/inline.h> 00029 00030 #include <geos/geom/Coordinate.h> // for use in vector 00031 #include <geos/noding/SegmentIntersector.h> // for inheritance 00032 00033 // Forward declarations 00034 namespace geos { 00035 namespace geom { 00036 class Coordinate; 00037 } 00038 namespace noding { 00039 class SegmentString; 00040 } 00041 namespace algorithm { 00042 class LineIntersector; 00043 } 00044 } 00045 00046 namespace geos { 00047 namespace noding { // geos.noding 00048 00054 class GEOS_DLL IntersectionFinderAdder: public SegmentIntersector { 00055 00056 public: 00057 00065 IntersectionFinderAdder(algorithm::LineIntersector& newLi, 00066 std::vector<geom::Coordinate>& v) 00067 : 00068 li(newLi), 00069 interiorIntersections(v) 00070 {} 00071 00082 void processIntersections( 00083 SegmentString* e0, int segIndex0, 00084 SegmentString* e1, int segIndex1); 00085 00086 std::vector<geom::Coordinate>& getInteriorIntersections() { 00087 return interiorIntersections; 00088 } 00089 00095 virtual bool isDone() const { 00096 return false; 00097 } 00098 00099 private: 00100 algorithm::LineIntersector& li; 00101 std::vector<geom::Coordinate>& interiorIntersections; 00102 00103 // Declare type as noncopyable 00104 IntersectionFinderAdder(const IntersectionFinderAdder& other); 00105 IntersectionFinderAdder& operator=(const IntersectionFinderAdder& rhs); 00106 }; 00107 00108 } // namespace geos.noding 00109 } // namespace geos 00110 00111 //#ifdef GEOS_INLINE 00112 //# include "geos/noding/IntersectionFinderAdder.inl" 00113 //#endif 00114 00115 #endif // GEOS_NODING_INTERSECTIONFINDERADDER_H 00116 00117 /********************************************************************** 00118 * $Log$ 00119 * Revision 1.4 2006/05/03 15:06:30 strk 00120 * Better doxygen comment 00121 * 00122 * Revision 1.3 2006/03/24 09:52:41 strk 00123 * USE_INLINE => GEOS_INLINE 00124 * 00125 * Revision 1.2 2006/03/14 12:55:56 strk 00126 * Headers split: geomgraphindex.h, nodingSnapround.h 00127 * 00128 * Revision 1.1 2006/03/09 16:46:49 strk 00129 * geos::geom namespace definition, first pass at headers split 00130 * 00131 **********************************************************************/ 00132