GEOS 3.6.2
SimpleEdgeSetIntersector.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#ifndef GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
17#define GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
18
19#include <geos/export.h>
20#include <vector>
21
22#include <geos/geomgraph/index/EdgeSetIntersector.h> // for inheritance
23
24// Forward declarations
25namespace geos {
26 namespace geomgraph {
27 class Edge;
28 namespace index {
29 class SegmentIntersector;
30 }
31 }
32}
33
34namespace geos {
35namespace geomgraph { // geos::geomgraph
36namespace index { // geos::geomgraph::index
37
38class GEOS_DLL SimpleEdgeSetIntersector: public EdgeSetIntersector {
39
40public:
41
42 SimpleEdgeSetIntersector();
43
44 void computeIntersections(std::vector<Edge*> *edges,
45 SegmentIntersector *si, bool testAllSegments);
46
47 void computeIntersections(std::vector<Edge*> *edges0,
48 std::vector<Edge*> *edges1, SegmentIntersector *si);
49
50private:
51
52 int nOverlaps;
53
54 void computeIntersects(Edge *e0, Edge *e1, SegmentIntersector *si);
55};
56
57} // namespace geos.geomgraph.index
58} // namespace geos.geomgraph
59} // namespace geos
60
61#endif // GEOS_GEOMGRAPH_INDEX_SIMPLEEDGESETINTERSECTOR_H
62
Definition geomgraph/Edge.h:66
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25