com.vividsolutions.jts.noding

Class SegmentNodeList


public class SegmentNodeList
extends java.lang.Object

A list of the SegmentNodes present along a noded SegmentString.
Version:
1.6

Constructor Summary

SegmentNodeList(SegmentString edge)

Method Summary

SegmentNode
add(Coordinate intPt, int segmentIndex, double dist)
Adds an intersection into the list, if it isn't already there.
void
addEndpoints()
Adds entries for the first and last points of the edge to the list
void
addSplitEdges(Collection edgeList)
Creates new edges for all the edges that the intersections in this list split the parent edge into.
Iterator
iterator()
Adds an intersection into the list, if it isn't already there.
void
print(PrintStream out)

Constructor Details

SegmentNodeList

public SegmentNodeList(SegmentString edge)

Method Details

add

public SegmentNode add(Coordinate intPt,
                       int segmentIndex,
                       double dist)
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.
Returns:
the SegmentIntersection found or added

addEndpoints

public void addEndpoints()
Adds entries for the first and last points of the edge to the list

addSplitEdges

public void addSplitEdges(Collection edgeList)
Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the input list (this is so a single list can be used to accumulate all split edges for a Geometry).

iterator

public Iterator iterator()
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.
Returns:
the SegmentIntersection found or added

print

public void print(PrintStream out)