Package org.locationtech.jts.noding
Class SimpleSegmentSetMutualIntersector
java.lang.Object
org.locationtech.jts.noding.SimpleSegmentSetMutualIntersector
- All Implemented Interfaces:
SegmentSetMutualIntersector
public class SimpleSegmentSetMutualIntersector
extends Object
implements SegmentSetMutualIntersector
Intersects two sets of
SegmentString
s using
brute-force comparison.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSegmentSetMutualIntersector
(Collection segStrings) Constructs a new intersector for a given set ofSegmentString
s. -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
(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.
-
Field Details
-
baseSegStrings
-
-
Constructor Details
-
SimpleSegmentSetMutualIntersector
Constructs a new intersector for a given set ofSegmentString
s.- Parameters:
segStrings
- the base segment strings to intersect
-
-
Method Details
-
process
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:
segStrings
- a collection ofSegmentString
s to nodesegInt
- the intersection detector to either record intersection occurrences or add intersection nodes to the input segment strings.a
- set of segments to intersectthe
- segment intersector to use
-
intersect
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
-