Class SegmentNodeList
A list of the SegmentNodes present along a noded ISegmentString.
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public class SegmentNodeList : IEnumerable<object>, IEnumerable
Constructors
| Edit this page View SourceSegmentNodeList(NodedSegmentString)
Initializes a new instance of the SegmentNodeList class.
Declaration
public SegmentNodeList(NodedSegmentString edge)
Parameters
| Type | Name | Description |
|---|---|---|
| NodedSegmentString | edge | The edge. |
Properties
| Edit this page View SourceCount
Gets a value indicating the number of nodes in the list.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Edge
Declaration
public NodedSegmentString Edge { get; }
Property Value
| Type | Description |
|---|---|
| NodedSegmentString |
Methods
| Edit this page View SourceAdd(Coordinate, int)
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.
Declaration
public SegmentNode Add(Coordinate intPt, int segmentIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | intPt | |
| int | segmentIndex |
Returns
| Type | Description |
|---|---|
| SegmentNode | The SegmentIntersection found or added. |
AddSplitEdges(ICollection<ISegmentString>)
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 of ISegmentStrings).
Declaration
public void AddSplitEdges(ICollection<ISegmentString> edgeList)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<ISegmentString> | edgeList |
GetEnumerator()
Returns an iterator of SegmentNodes.
Declaration
public IEnumerator<object> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<object> | An iterator of SegmentNodes. |
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.
Declaration
public Coordinate[] GetSplitCoordinates()
Returns
| Type | Description |
|---|---|
| Coordinate[] | An array of Coordinates |
Write(StreamWriter)
Declaration
public void Write(StreamWriter outstream)
Parameters
| Type | Name | Description |
|---|---|---|
| StreamWriter | outstream |