public class MCIndexSegmentSetMutualIntersector extends Objectimplements SegmentSetMutualIntersector
SegmentStrings using a index based on
MonotoneChains and a
SpatialIndex. Thread-safe and immutable.
| Modifier and Type | Class and Description |
|---|---|
class |
MCIndexSegmentSetMutualIntersector
|
| Constructor and Description |
|---|
MCIndexSegmentSetMutualIntersector(Collection
Constructs a new intersector for a given set of
SegmentStrings.
|
| Modifier and Type | Method and Description |
|---|---|
SpatialIndex |
getIndex()
Gets the index constructed over the base segment strings.
|
void |
process(Collection
Calls
SegmentIntersector for all
candidate intersections between the given collection of SegmentStrings and the set of indexed segments.
|
public MCIndexSegmentSetMutualIntersector(CollectionbaseSegStrings)
SegmentStrings.
baseSegStrings - the base segment strings to intersect
public SpatialIndexgetIndex()
public void process(CollectionsegStrings, 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
SegmentSetMutualIntersector
a - set of segments to intersect
the - segment intersector to use