Package org.meteoinfo.jts.noding
Class SegmentNodeList
- java.lang.Object
-
- org.meteoinfo.jts.noding.SegmentNodeList
-
public class SegmentNodeList extends java.lang.ObjectA list of theSegmentNodes present along a nodedSegmentString.
-
-
Constructor Summary
Constructors Constructor Description SegmentNodeList(NodedSegmentString edge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentNodeadd(Coordinate intPt, int segmentIndex)Adds an intersection into the list, if it isn't already there.voidaddSplitEdges(java.util.Collection edgeList)Creates new edges for all the edges that the intersections in this list split the parent edge into.NodedSegmentStringgetEdge()Coordinate[]getSplitCoordinates()Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list.java.util.Iteratoriterator()returns an iterator of SegmentNodesvoidprint(java.io.PrintStream out)
-
-
-
Constructor Detail
-
SegmentNodeList
public SegmentNodeList(NodedSegmentString edge)
-
-
Method Detail
-
getEdge
public NodedSegmentString getEdge()
-
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
-
iterator
public java.util.Iterator iterator()
returns an iterator of SegmentNodes
-
addSplitEdges
public void addSplitEdges(java.util.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 provided argument list (this is so a single list can be used to accumulate all split edges for a set ofSegmentStrings).
-
getSplitCoordinates
public Coordinate[] getSplitCoordinates()
Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list. Repeated coordinates are collapsed.- Returns:
- an array of Coordinates
-
print
public void print(java.io.PrintStream out)
-
-