Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

IntersectionFinderAdder.h

00001 /**********************************************************************
00002  * $Id: IntersectionFinderAdder.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/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 private:
00057         algorithm::LineIntersector& li;
00058         std::vector<geom::Coordinate>& interiorIntersections;
00059 
00060 public:
00061 
00069         IntersectionFinderAdder(algorithm::LineIntersector& newLi,
00070                         std::vector<geom::Coordinate>& v)
00071                 :
00072                 li(newLi),
00073                 interiorIntersections(v)
00074         {}
00075 
00086         void processIntersections(
00087                 SegmentString* e0,  int segIndex0,
00088                 SegmentString* e1,  int segIndex1);
00089 
00090         std::vector<geom::Coordinate>& getInteriorIntersections() {
00091                 return interiorIntersections;
00092         }
00093         
00099         virtual bool isDone() const {
00100                 return false;
00101         }
00102 };
00103 
00104 } // namespace geos.noding
00105 } // namespace geos
00106 
00107 //#ifdef GEOS_INLINE
00108 //# include "geos/noding/IntersectionFinderAdder.inl"
00109 //#endif
00110 
00111 #endif // GEOS_NODING_INTERSECTIONFINDERADDER_H
00112 
00113 /**********************************************************************
00114  * $Log$
00115  * Revision 1.4  2006/05/03 15:06:30  strk
00116  * Better doxygen comment
00117  *
00118  * Revision 1.3  2006/03/24 09:52:41  strk
00119  * USE_INLINE => GEOS_INLINE
00120  *
00121  * Revision 1.2  2006/03/14 12:55:56  strk
00122  * Headers split: geomgraphindex.h, nodingSnapround.h
00123  *
00124  * Revision 1.1  2006/03/09 16:46:49  strk
00125  * geos::geom namespace definition, first pass at headers split
00126  *
00127  **********************************************************************/
00128 

Generated on Thu Jun 11 06:17:01 2009 for GEOS by  doxygen 1.4.4