Package org.locationtech.jts.noding
Interface SegmentIntersector
-
- All Known Implementing Classes:
InteriorIntersectionFinderAdder
,IntersectionAdder
,IntersectionFinderAdder
,NodingIntersectionFinder
,SegmentIntersectionDetector
,SnappingIntersectionAdder
,SnapRoundingIntersectionAdder
public interface SegmentIntersector
Processes possible intersections detected by aNoder
. TheSegmentIntersector
is passed to aNoder
. TheprocessIntersections(SegmentString, int, SegmentString, int)
method is called whenever theNoder
detects that two SegmentStrings might intersect. This class may be used either to find all intersections, or to detect the presence of an intersection. In the latter case, Noders may choose to short-circuit their computation by calling theisDone()
method. This class is an example of the Strategy pattern.- Version:
- 1.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isDone()
Reports whether the client of this class needs to continue testing all intersections in an arrangement.void
processIntersections(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1)
This method is called by clients of theSegmentIntersector
interface to process intersections for two segments of theSegmentString
s being intersected.
-
-
-
Method Detail
-
processIntersections
void processIntersections(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1)
This method is called by clients of theSegmentIntersector
interface to process intersections for two segments of theSegmentString
s being intersected.
-
isDone
boolean isDone()
Reports whether the client of this class needs to continue testing all intersections in an arrangement.- Returns:
- true if there is no need to continue testing segments
-
-