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.7

Constructor Summary

SegmentNodeList(SegmentString edge)

Method Summary

SegmentNode
add(Coordinate intPt, int segmentIndex)
Adds an intersection into the list, if it isn't already there.
void
addSplitEdges(Collection edgeList)
Creates new edges for all the edges that the intersections in this list split the parent edge into.
SegmentString
getEdge()
Iterator
iterator()
returns an iterator of SegmentNodes
void
print(PrintStream out)

Constructor Details

SegmentNodeList

public SegmentNodeList(SegmentString edge)

Method Details

add

public SegmentNode add(Coordinate intPt,
                       int segmentIndex)
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

addSplitEdges

public void addSplitEdges(Collection edgeList)

getEdge

public SegmentString getEdge()

iterator

public Iterator iterator()
returns an iterator of SegmentNodes

print

public void print(PrintStream out)