SegmentSetMutualIntersectorpublic class MCIndexSegmentSetMutualIntersector extends java.lang.Object implements SegmentSetMutualIntersector
SegmentStrings using a index based
on MonotoneChains and a SpatialIndex.
Thread-safe and immutable.| Modifier and Type | Class | Description |
|---|---|---|
static class |
MCIndexSegmentSetMutualIntersector.SegmentOverlapAction |
| Constructor | Description |
|---|---|
MCIndexSegmentSetMutualIntersector(java.util.Collection baseSegStrings) |
Constructs a new intersector for a given set of
SegmentStrings. |
| Modifier and Type | Method | Description |
|---|---|---|
SpatialIndex |
getIndex() |
Gets the index constructed over the base segment strings.
|
void |
process(java.util.Collection segStrings,
SegmentIntersector segInt) |
Calls
SegmentIntersector.processIntersections(SegmentString, int, SegmentString, int)
for all candidate intersections between
the given collection of SegmentStrings and the set of indexed segments. |
public MCIndexSegmentSetMutualIntersector(java.util.Collection baseSegStrings)
SegmentStrings.baseSegStrings - the base segment strings to intersectpublic SpatialIndex getIndex()
public void process(java.util.Collection segStrings,
SegmentIntersector segInt)
SegmentIntersector.processIntersections(SegmentString, int, SegmentString, int)
for all candidate intersections between
the given collection of SegmentStrings and the set of indexed segments.process in interface SegmentSetMutualIntersectora - set of segments to intersectthe - segment intersector to useCopyright © 2018. All rights reserved.