SimpleEdgeSetIntersector.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <vector>
#include <geos/geomgraph/index/EdgeSetIntersector.h> // for inheritance
// Forward declarations
namespace geos {
namespace geomgraph {
class Edge;
namespace index {
class SegmentIntersector;
}
}
}
namespace geos {
namespace geomgraph { // geos::geomgraph
namespace index { // geos::geomgraph::index
class GEOS_DLL SimpleEdgeSetIntersector: public EdgeSetIntersector {
public:
SimpleEdgeSetIntersector();
void computeIntersections(std::vector<Edge*>* edges,
SegmentIntersector* si, bool testAllSegments) override;
void computeIntersections(std::vector<Edge*>* edges0,
std::vector<Edge*>* edges1, SegmentIntersector* si) override;
private:
int nOverlaps;
void computeIntersects(Edge* e0, Edge* e1, SegmentIntersector* si);
};
} // namespace geos.geomgraph.index
} // namespace geos.geomgraph
} // namespace geos
geos::geomgraph::Edge
Definition geomgraph/Edge.h:63
geos::geomgraph::index::EdgeSetIntersector
An EdgeSetIntersector computes all the intersections between the edges in the set.
Definition geomgraph/index/EdgeSetIntersector.h:40
geos::geomgraph::index::SegmentIntersector
Computes the intersection of line segments, and adds the intersection to the edges containing the seg...
Definition geomgraph/index/SegmentIntersector.h:46
geos::geomgraph::index::SimpleEdgeSetIntersector::computeIntersections
void computeIntersections(std::vector< Edge * > *edges0, std::vector< Edge * > *edges1, SegmentIntersector *si) override
Computes all mutual intersections between two sets of edges.
geos::geomgraph::index::SimpleEdgeSetIntersector::computeIntersections
void computeIntersections(std::vector< Edge * > *edges, SegmentIntersector *si, bool testAllSegments) override
Computes all self-intersections between edges in a set of edges, allowing client to choose whether se...
geos::geomgraph::index
Contains classes that implement indexes for performing noding on geometry graph edges.
Definition geomgraph/Edge.h:53
geos::geomgraph
Contains classes that implement topology graphs.
Definition Depth.h:31
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38