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

# SimpleEdgeSetIntersector.h

    00001 /**********************************************************************
    00002  * $Id: SimpleEdgeSetIntersector.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) 2005-2006 Refractions Research Inc.
    00008  * Copyright (C) 2001-2002 Vivid Solutions Inc.
    00009  *
    00010  * This is free software; you can redistribute and/or modify it under
    00011  * the terms of the GNU Lesser General Public Licence as published
    00012  * by the Free Software Foundation.
    00013  * See the COPYING file for more information.
    00014  *
    00015  **********************************************************************/
    00016
    00017 #ifndef GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
    00018 #define GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
    00019
    00020 #include <vector>
    00021
    00022 #include <geos/geomgraph/index/EdgeSetIntersector.h> // for inheritance
    00023
    00024 // Forward declarations
    00025 namespace geos {
    00026         namespace geomgraph {
    00027                 class Edge;
    00028                 namespace index {
    00029                         class SegmentIntersector;
    00030                 }
    00031         }
    00032 }
    00033
    00034 namespace geos {
    00035 namespace geomgraph { // geos::geomgraph
    00036 namespace index { // geos::geomgraph::index
    00037
    00038 class SimpleEdgeSetIntersector: public EdgeSetIntersector {
    00039
    00040 public:
    00041
    00042         SimpleEdgeSetIntersector();
    00043
    00044         void computeIntersections(std::vector<Edge*> *edges,
    00045                         SegmentIntersector *si, bool testAllSegments);
    00046
    00047         void computeIntersections(std::vector<Edge*> *edges0,
    00048                         std::vector<Edge*> *edges1, SegmentIntersector *si);
    00049
    00050 private:
    00051
    00052         int nOverlaps;
    00053
    00054         void computeIntersects(Edge *e0, Edge *e1, SegmentIntersector *si);
    00055 };
    00056
    00057 } // namespace geos.geomgraph.index
    00058 } // namespace geos.geomgraph
    00059 } // namespace geos
    00060
    00061 #endif // GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
    00062
    00063 /**********************************************************************
    00064  * $Log$
    00065  * Revision 1.1  2006/03/14 12:55:55  strk
    00066  * Headers split: geomgraphindex.h, nodingSnapround.h
    00067  *
    00068  **********************************************************************/
    00069