Search Results for

    Show / Hide Table of Contents

    Class Node

    Inheritance
    object
    GraphComponent
    Node
    RelateNode
    Inherited Members
    GraphComponent.Label
    GraphComponent.InResult
    GraphComponent.IsInResult
    GraphComponent.Covered
    GraphComponent.IsCovered
    GraphComponent.IsCoveredSet
    GraphComponent.Visited
    GraphComponent.IsVisited
    GraphComponent.UpdateIM(IntersectionMatrix)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public class Node : GraphComponent

    Constructors

    | Edit this page View Source

    Node(Coordinate, EdgeEndStar)

    Declaration
    public Node(Coordinate coord, EdgeEndStar edges)
    Parameters
    Type Name Description
    Coordinate coord
    EdgeEndStar edges

    Properties

    | Edit this page View Source

    Coordinate

    Gets a value indicating the position of this

    Declaration
    public override Coordinate Coordinate { get; protected set; }
    Property Value
    Type Description
    Coordinate

    The position of this Node

    Overrides
    GraphComponent.Coordinate
    | Edit this page View Source

    Edges

    Gets a value indicating the EdgeEndStar of this Node

    Declaration
    public EdgeEndStar Edges { get; protected set; }
    Property Value
    Type Description
    EdgeEndStar

    The EdgeEndStar of this Node

    | Edit this page View Source

    IsIsolated

    An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry.

    Declaration
    public override bool IsIsolated { get; }
    Property Value
    Type Description
    bool

    true if this component is isolated.

    Overrides
    GraphComponent.IsIsolated

    Methods

    | Edit this page View Source

    Add(EdgeEnd)

    Add the edge to the list of edges at this node.

    Declaration
    public void Add(EdgeEnd e)
    Parameters
    Type Name Description
    EdgeEnd e

    An EdgeEnd

    | Edit this page View Source

    ComputeIM(IntersectionMatrix)

    Compute the contribution to an IM for this component.

    Declaration
    public override void ComputeIM(IntersectionMatrix im)
    Parameters
    Type Name Description
    IntersectionMatrix im

    An IntersectionMatrix

    Overrides
    GraphComponent.ComputeIM(IntersectionMatrix)
    Remarks

    Basic nodes do not compute IMs.

    | Edit this page View Source

    ComputeMergedLocation(Label, int)

    The location for a given eltIndex for a node will be one of { Null, Interior, Boundary }. A node may be on both the boundary and the interior of a point; in this case, the rule is that the node is considered to be in the boundary. The merged location is the maximum of the two input values.

    Declaration
    public Location ComputeMergedLocation(Label label2, int eltIndex)
    Parameters
    Type Name Description
    Label label2
    int eltIndex
    Returns
    Type Description
    Location
    | Edit this page View Source

    IsIncidentEdgeInResult()

    Tests whether any incident edge is flagged as being in the result. This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.

    Declaration
    public bool IsIncidentEdgeInResult()
    Returns
    Type Description
    bool

    true if any incident edge in the in the result

    | Edit this page View Source

    MergeLabel(Label)

    To merge labels for two nodes, the merged location for each LabelElement is computed. The location for the corresponding node LabelElement is set to the result, as long as the location is non-null.

    Declaration
    public void MergeLabel(Label label)
    Parameters
    Type Name Description
    Label label

    The Label to merge

    | Edit this page View Source

    MergeLabel(Node)

    Merges n's Label with this Node's Label.

    Declaration
    public void MergeLabel(Node n)
    Parameters
    Type Name Description
    Node n

    A Node

    | Edit this page View Source

    SetLabel(int, Location)

    Declaration
    public void SetLabel(int argIndex, Location onLocation)
    Parameters
    Type Name Description
    int argIndex
    Location onLocation
    | Edit this page View Source

    SetLabelBoundary(int)

    Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.

    Declaration
    public void SetLabelBoundary(int argIndex)
    Parameters
    Type Name Description
    int argIndex

    An index for a TopologyLocation (0 or 1)

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    | Edit this page View Source

    Write(TextWriter)

    Declaration
    public void Write(TextWriter outstream)
    Parameters
    Type Name Description
    TextWriter outstream
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX