com.vividsolutions.jts.noding
Class SinglePassNoder
java.lang.Object
com.vividsolutions.jts.noding.SinglePassNoder
- Noder
public abstract class SinglePassNoder
extends java.lang.Object
Base class for
Noder
s which make a single
pass to find intersections.
This allows using a custom
SegmentIntersector
(which for instance may simply identify intersections, rather than
insert them).
SinglePassNoder
public SinglePassNoder()
computeNodes
public abstract void computeNodes(Collection segStrings)
Computes the noding for a collection of
SegmentString
s.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.
- computeNodes in interface Noder
getNodedSubstrings
public abstract Collection getNodedSubstrings()
Returns a Collection
of fully noded SegmentStrings
.
The SegmentStrings have the same context as their parent.
- getNodedSubstrings in interface Noder
- a Collection of SegmentStrings
setSegmentIntersector
public void setSegmentIntersector(SegmentIntersector segInt)
Sets the SegmentIntersector to use with this noder.
A SegmentIntersector will normally add intersection nodes
to the input segment strings, but it may not - it may
simply record the presence of intersections.
However, some Noders may require that intersections be added.