GEOS  3.13.0dev
EdgeSetIntersector.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 #pragma once
17 
18 #include <geos/export.h>
19 #include <vector>
20 
21 // Forward declarations
22 namespace geos {
23 namespace geomgraph {
24 class Edge;
25 namespace index {
26 class SegmentIntersector;
27 }
28 }
29 }
30 
31 namespace geos {
32 namespace geomgraph { // geos::geomgraph
33 namespace index { // geos::geomgraph::index
34 
40 class GEOS_DLL EdgeSetIntersector {
41 public:
50  virtual void computeIntersections(std::vector<Edge*>* edges,
51  SegmentIntersector* si, bool testAllSegments) = 0;
52 
56  virtual void computeIntersections(std::vector<Edge*>* edges0,
57  std::vector<Edge*>* edges1,
58  SegmentIntersector* si) = 0;
59 
60  virtual
61  ~EdgeSetIntersector() {}
62 };
63 
64 
65 } // namespace geos.geomgraph.index
66 } // namespace geos.geomgraph
67 } // namespace geos
68 
An EdgeSetIntersector computes all the intersections between the edges in the set.
Definition: EdgeSetIntersector.h:40
virtual void computeIntersections(std::vector< Edge * > *edges0, std::vector< Edge * > *edges1, SegmentIntersector *si)=0
Computes all mutual intersections between two sets of edges.
virtual void computeIntersections(std::vector< Edge * > *edges, SegmentIntersector *si, bool testAllSegments)=0
Computes all self-intersections between edges in a set of edges, allowing client to choose whether se...
Computes the intersection of line segments, and adds the intersection to the edges containing the seg...
Definition: geomgraph/index/SegmentIntersector.h:46
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25