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

- File List

# SimpleEdgeSetIntersector.h

    00001 /**********************************************************************
    00002  * $Id: SimpleEdgeSetIntersector.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) 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 <geos/export.h>
    00021 #include <vector>
    00022
    00023 #include <geos/geomgraph/index/EdgeSetIntersector.h> // for inheritance
    00024
    00025 // Forward declarations
    00026 namespace geos {
    00027         namespace geomgraph {
    00028                 class Edge;
    00029                 namespace index {
    00030                         class SegmentIntersector;
    00031                 }
    00032         }
    00033 }
    00034
    00035 namespace geos {
    00036 namespace geomgraph { // geos::geomgraph
    00037 namespace index { // geos::geomgraph::index
    00038
    00039 class GEOS_DLL SimpleEdgeSetIntersector: public EdgeSetIntersector {
    00040
    00041 public:
    00042
    00043         SimpleEdgeSetIntersector();
    00044
    00045         void computeIntersections(std::vector<Edge*> *edges,
    00046                         SegmentIntersector *si, bool testAllSegments);
    00047
    00048         void computeIntersections(std::vector<Edge*> *edges0,
    00049                         std::vector<Edge*> *edges1, SegmentIntersector *si);
    00050
    00051 private:
    00052
    00053         int nOverlaps;
    00054
    00055         void computeIntersects(Edge *e0, Edge *e1, SegmentIntersector *si);
    00056 };
    00057
    00058 } // namespace geos.geomgraph.index
    00059 } // namespace geos.geomgraph
    00060 } // namespace geos
    00061
    00062 #endif // GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
    00063
    00064 /**********************************************************************
    00065  * $Log$
    00066  * Revision 1.1  2006/03/14 12:55:55  strk
    00067  * Headers split: geomgraphindex.h, nodingSnapround.h
    00068  *
    00069  **********************************************************************/
    00070