Package org.locationtech.jts.noding
Class InteriorIntersectionFinderAdder
- java.lang.Object
-
- org.locationtech.jts.noding.InteriorIntersectionFinderAdder
-
- All Implemented Interfaces:
SegmentIntersector
public class InteriorIntersectionFinderAdder extends Object implements SegmentIntersector
Finds interior intersections between line segments inNodedSegmentStrings, and adds them as nodes usingNodedSegmentString.addIntersection(LineIntersector, int, int, int).This class is used primarily for Snap-Rounding. For general-purpose noding, use
IntersectionAdder.- Version:
- 1.7
- See Also:
IntersectionAdder
-
-
Constructor Summary
Constructors Constructor Description InteriorIntersectionFinderAdder(LineIntersector li)Creates an intersection finder which finds all proper intersections
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetInteriorIntersections()booleanisDone()Always process all intersectionsvoidprocessIntersections(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1)This method is called by clients of theSegmentIntersectorclass to process intersections for two segments of theSegmentStrings being intersected.
-
-
-
Constructor Detail
-
InteriorIntersectionFinderAdder
public InteriorIntersectionFinderAdder(LineIntersector li)
Creates an intersection finder which finds all proper intersections- Parameters:
li- the LineIntersector to use
-
-
Method Detail
-
getInteriorIntersections
public List getInteriorIntersections()
-
processIntersections
public void processIntersections(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1)
This method is called by clients of theSegmentIntersectorclass to process intersections for two segments of theSegmentStrings being intersected. Note that some clients (such asMonotoneChains) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test).- Specified by:
processIntersectionsin interfaceSegmentIntersector
-
isDone
public boolean isDone()
Always process all intersections- Specified by:
isDonein interfaceSegmentIntersector- Returns:
- false always
-
-