Package org.locationtech.jts.noding
Class SimpleSegmentSetMutualIntersector
- java.lang.Object
-
- org.locationtech.jts.noding.SimpleSegmentSetMutualIntersector
-
- All Implemented Interfaces:
SegmentSetMutualIntersector
public class SimpleSegmentSetMutualIntersector extends java.lang.Object implements SegmentSetMutualIntersector
Intersects two sets ofSegmentString
s using brute-force comparison.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection
baseSegStrings
-
Constructor Summary
Constructors Constructor Description SimpleSegmentSetMutualIntersector(java.util.Collection segStrings)
Constructs a new intersector for a given set ofSegmentString
s.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
CallsSegmentIntersector.processIntersections(SegmentString, int, SegmentString, int)
for all candidate intersections between the given collection of SegmentStrings and the set of base segments.
-
-
-
Constructor Detail
-
SimpleSegmentSetMutualIntersector
public SimpleSegmentSetMutualIntersector(java.util.Collection segStrings)
Constructs a new intersector for a given set ofSegmentString
s.- Parameters:
segStrings
- the base segment strings to intersect
-
-
Method Detail
-
process
public void process(java.util.Collection segStrings, SegmentIntersector segInt)
CallsSegmentIntersector.processIntersections(SegmentString, int, SegmentString, int)
for all candidate intersections between the given collection of SegmentStrings and the set of base segments.- Specified by:
process
in interfaceSegmentSetMutualIntersector
- Parameters:
a
- set of segments to intersectthe
- segment intersector to use
-
intersect
private void intersect(SegmentString ss0, SegmentString ss1, SegmentIntersector segInt)
Processes all of the segment pairs in the given segment strings using the given SegmentIntersector.- Parameters:
ss0
- a Segment stringss1
- a segment stringsegInt
- the segment intersector to use
-
-