public class SimpleNoder extends SinglePassNoder
SegmentString
s by
performing a brute-force comparison of every segment to every other one.
This has n^2 performance, so is too slow for use on large numbers
of segments.Modifier and Type | Field and Description |
---|---|
private java.util.Collection |
nodedSegStrings |
segInt
Constructor and Description |
---|
SimpleNoder() |
Modifier and Type | Method and Description |
---|---|
private void |
computeIntersects(SegmentString e0,
SegmentString e1) |
void |
computeNodes(java.util.Collection inputSegStrings)
Computes the noding for a collection of
SegmentString s. |
java.util.Collection |
getNodedSubstrings()
Returns a
Collection of fully noded SegmentString s. |
setSegmentIntersector
public java.util.Collection getNodedSubstrings()
SinglePassNoder
Collection
of fully noded SegmentString
s.
The SegmentStrings have the same context as their parent.getNodedSubstrings
in interface Noder
getNodedSubstrings
in class SinglePassNoder
public void computeNodes(java.util.Collection inputSegStrings)
SinglePassNoder
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
computeNodes
in class SinglePassNoder
inputSegStrings
- a collection of SegmentString
s to nodeprivate void computeIntersects(SegmentString e0, SegmentString e1)