public abstract class SinglePassNoder extends Objectimplements Noder
Noders 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).
| Modifier and Type | Field and Description |
|---|---|
protected SegmentIntersector |
segInt
|
| Constructor and Description |
|---|
SinglePassNoder()
|
SinglePassNoder(SegmentIntersector
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
computeNodes(Collection
Computes the noding for a collection of
SegmentStrings.
|
abstract Collection |
getNodedSubstrings()
Returns a
Collection of fully noded
SegmentStrings.
|
void |
setSegmentIntersector(SegmentIntersector
Sets the SegmentIntersector to use with this noder.
|
protected SegmentIntersectorsegInt
public SinglePassNoder()
public SinglePassNoder(SegmentIntersectorsegInt)
public void setSegmentIntersector(SegmentIntersectorsegInt)
segInt -
public abstract void computeNodes(CollectionsegStrings)
SegmentStrings. Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.
computeNodes in interface
Noder
segStrings - a collection of
SegmentStrings to node
public abstract CollectiongetNodedSubstrings()
Collection of fully noded
SegmentStrings. The SegmentStrings have the same context as their parent.
getNodedSubstrings in interface
Noder