Search Results for

    Show / Hide Table of Contents

    Class SegmentNodeList

    A list of the SegmentNodes present along a noded ISegmentString.

    Inheritance
    object
    SegmentNodeList
    Implements
    IEnumerable<object>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding
    Assembly: NetTopologySuite.dll
    Syntax
    public class SegmentNodeList : IEnumerable<object>, IEnumerable

    Constructors

    | Edit this page View Source

    SegmentNodeList(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 Source

    Count

    Gets a value indicating the number of nodes in the list.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Edge

    Declaration
    public NodedSegmentString Edge { get; }
    Property Value
    Type Description
    NodedSegmentString

    Methods

    | Edit this page View Source

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

    | Edit this page View Source

    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
    | Edit this page View Source

    GetEnumerator()

    Returns an iterator of SegmentNodes.

    Declaration
    public IEnumerator<object> GetEnumerator()
    Returns
    Type Description
    IEnumerator<object>

    An iterator of SegmentNodes.

    | Edit this page View Source

    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

    | Edit this page View Source

    Write(StreamWriter)

    Declaration
    public void Write(StreamWriter outstream)
    Parameters
    Type Name Description
    StreamWriter outstream

    Implements

    IEnumerable<T>
    IEnumerable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX