GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
geos::geomgraph::index::SimpleEdgeSetIntersector Class Reference

Finds all intersections in one or two sets of edges, using the straightforward method of comparing all segments. More...

#include <SimpleEdgeSetIntersector.h>

Inheritance diagram for geos::geomgraph::index::SimpleEdgeSetIntersector:
[legend]
Collaboration diagram for geos::geomgraph::index::SimpleEdgeSetIntersector:
[legend]

Public Member Functions

 SimpleEdgeSetIntersector ()
 
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 self-intersections are computed. More...
 
void computeIntersections (std::vector< Edge * > *edges0, std::vector< Edge * > *edges1, SegmentIntersector *si) override
 Computes all mutual intersections between two sets of edges. More...
 
- Public Member Functions inherited from geos::geomgraph::index::EdgeSetIntersector
virtual ~EdgeSetIntersector ()
 

Private Member Functions

void computeIntersects (Edge *e0, Edge *e1, SegmentIntersector *si)
 

Private Attributes

int nOverlaps
 

Detailed Description

Finds all intersections in one or two sets of edges, using the straightforward method of comparing all segments.

Note
This algorithm is too slow for production use, but is useful for testing purposes.

Definition at line 43 of file SimpleEdgeSetIntersector.h.

Constructor & Destructor Documentation

geos::geomgraph::index::SimpleEdgeSetIntersector::SimpleEdgeSetIntersector ( )

Member Function Documentation

void geos::geomgraph::index::SimpleEdgeSetIntersector::computeIntersections ( std::vector< Edge * > *  edges,
SegmentIntersector si,
bool  testAllSegments 
)
overridevirtual

Computes all self-intersections between edges in a set of edges, allowing client to choose whether self-intersections are computed.

Parameters
edgesa list of edges to test for intersections
sithe SegmentIntersector to use
testAllSegmentstrue if self-intersections are to be tested as well

Implements geos::geomgraph::index::EdgeSetIntersector.

void geos::geomgraph::index::SimpleEdgeSetIntersector::computeIntersections ( std::vector< Edge * > *  edges0,
std::vector< Edge * > *  edges1,
SegmentIntersector si 
)
overridevirtual

Computes all mutual intersections between two sets of edges.

Implements geos::geomgraph::index::EdgeSetIntersector.

void geos::geomgraph::index::SimpleEdgeSetIntersector::computeIntersects ( Edge e0,
Edge e1,
SegmentIntersector si 
)
private

Member Data Documentation

int geos::geomgraph::index::SimpleEdgeSetIntersector::nOverlaps
private

Definition at line 57 of file SimpleEdgeSetIntersector.h.


The documentation for this class was generated from the following file: