public class SimpleSegmentSetMutualIntersector extends java.lang.Object implements SegmentSetMutualIntersector
SegmentStrings using
brute-force comparison.| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection |
baseSegStrings |
| Constructor and Description |
|---|
SimpleSegmentSetMutualIntersector(java.util.Collection segStrings)
Constructs a new intersector for a given set of
SegmentStrings. |
| Modifier and Type | Method and Description |
|---|---|
private void |
intersect(SegmentString ss0,
SegmentString ss1,
SegmentIntersector segInt)
Processes all of the segment pairs in the given segment strings
using the given SegmentIntersector.
|
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 base segments. |
public SimpleSegmentSetMutualIntersector(java.util.Collection segStrings)
SegmentStrings.segStrings - the base segment strings to intersectpublic 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 base segments.process in interface SegmentSetMutualIntersectora - set of segments to intersectthe - segment intersector to useprivate void intersect(SegmentString ss0, SegmentString ss1, SegmentIntersector segInt)
ss0 - a Segment stringss1 - a segment stringsegInt - the segment intersector to use