- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# IntersectionFinderAdder.h

    00001 /**********************************************************************
    00002  * $Id: IntersectionFinderAdder.h 1820 2006-09-06 16:54:23Z 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 #ifndef GEOS_NODING_INTERSECTIONFINDERADDER_H
    00017 #define GEOS_NODING_INTERSECTIONFINDERADDER_H
    00018
    00019 #include <vector>
    00020 #include <iostream>
    00021
    00022 #include <geos/inline.h>
    00023
    00024 #include <geos/geom/Coordinate.h> // for use in vector
    00025 #include <geos/noding/SegmentIntersector.h> // for inheritance
    00026
    00027 // Forward declarations
    00028 namespace geos {
    00029         namespace geom {
    00030                 class Coordinate;
    00031         }
    00032         namespace noding {
    00033                 class SegmentString;
    00034         }
    00035         namespace algorithm {
    00036                 class LineIntersector;
    00037         }
    00038 }
    00039
    00040 namespace geos {
    00041 namespace noding { // geos.noding
    00042
    00050 class IntersectionFinderAdder: public SegmentIntersector {
    00051
    00052 private:
    00053         algorithm::LineIntersector& li;
    00054         std::vector<geom::Coordinate>& interiorIntersections;
    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
    00090 };
    00091
    00092 } // namespace geos.noding
    00093 } // namespace geos
    00094
    00095 //#ifdef GEOS_INLINE
    00096 //# include "geos/noding/IntersectionFinderAdder.inl"
    00097 //#endif
    00098
    00099 #endif // GEOS_NODING_INTERSECTIONFINDERADDER_H
    00100
    00101 /**********************************************************************
    00102  * $Log$
    00103  * Revision 1.4  2006/05/03 15:06:30  strk
    00104  * Better doxygen comment
    00105  *
    00106  * Revision 1.3  2006/03/24 09:52:41  strk
    00107  * USE_INLINE => GEOS_INLINE
    00108  *
    00109  * Revision 1.2  2006/03/14 12:55:56  strk
    00110  * Headers split: geomgraphindex.h, nodingSnapround.h
    00111  *
    00112  * Revision 1.1  2006/03/09 16:46:49  strk
    00113  * geos::geom namespace definition, first pass at headers split
    00114  *
    00115  **********************************************************************/
    00116