GEOS
3.9.1dev
|
A sweepline implements a sorted index on a set of intervals. More...
#include <SweepLineIndex.h>
Public Member Functions | |
SweepLineIndex () | |
~SweepLineIndex () | |
void | add (SweepLineInterval *sweepInt) |
void | computeOverlaps (SweepLineOverlapAction *action) |
Private Member Functions | |
void | buildIndex () |
void | processOverlaps (std::size_t start, std::size_t end, SweepLineInterval *s0, SweepLineOverlapAction *action) |
Private Attributes | |
std::vector< SweepLineEvent * > | events |
bool | indexBuilt |
int | nOverlaps |
A sweepline implements a sorted index on a set of intervals.
It is used to compute all overlaps between the interval in the index.
Definition at line 47 of file SweepLineIndex.h.
geos::index::sweepline::SweepLineIndex::SweepLineIndex | ( | ) |
geos::index::sweepline::SweepLineIndex::~SweepLineIndex | ( | ) |
void geos::index::sweepline::SweepLineIndex::add | ( | SweepLineInterval * | sweepInt | ) |
|
private |
Because Delete Events have a link to their corresponding Insert event, it is possible to compute exactly the range of events which must be compared to a given Insert event object.
void geos::index::sweepline::SweepLineIndex::computeOverlaps | ( | SweepLineOverlapAction * | action | ) |
|
private |
|
private |
Definition at line 62 of file SweepLineIndex.h.
|
private |
Definition at line 64 of file SweepLineIndex.h.
|
private |
Definition at line 67 of file SweepLineIndex.h.