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
SegmentStrings using
brute-force comparison.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSegmentSetMutualIntersector(Collection segStrings) Constructs a new intersector for a given set ofSegmentStrings. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidintersect(SegmentString ss0, SegmentString ss1, SegmentIntersector segInt) Processes all of the segment pairs in the given segment strings using the given SegmentIntersector.voidprocess(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 ofSegmentStrings.- 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:
processin interfaceSegmentSetMutualIntersector- Parameters:
segStrings- a collection ofSegmentStrings 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
-