Search Results for

    Show / Hide Table of Contents

    Class Edge

    Inheritance
    object
    GraphComponent
    Edge
    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)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public class Edge : GraphComponent

    Constructors

    | Edit this page View Source

    Edge(Coordinate[])

    Declaration
    public Edge(Coordinate[] pts)
    Parameters
    Type Name Description
    Coordinate[] pts
    | Edit this page View Source

    Edge(Coordinate[], Label)

    Declaration
    public Edge(Coordinate[] pts, Label label)
    Parameters
    Type Name Description
    Coordinate[] pts
    Label label

    Properties

    | Edit this page View Source

    CollapsedEdge

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

    Coordinate

    Declaration
    public override Coordinate Coordinate { get; protected set; }
    Property Value
    Type Description
    Coordinate
    Overrides
    GraphComponent.Coordinate
    | Edit this page View Source

    Coordinates

    Declaration
    public Coordinate[] Coordinates { get; }
    Property Value
    Type Description
    Coordinate[]
    | Edit this page View Source

    Depth

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

    DepthDelta

    The depthDelta is the change in depth as an edge is crossed from R to L.

    Declaration
    public int DepthDelta { get; set; }
    Property Value
    Type Description
    int

    The change in depth as the edge is crossed from R to L.

    | Edit this page View Source

    EdgeIntersectionList

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

    Envelope

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

    IsClosed

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

    IsCollapsed

    An Edge is collapsed if it is an Area edge and it consists of two segments which are equal and opposite (eg a zero-width V).

    Declaration
    public bool IsCollapsed { get; }
    Property Value
    Type Description
    bool

    true if edge is consisting of two segments which are equal and of oppose orientation (Zero-width V area edge)

    | Edit this page View Source

    IsIsolated

    Declaration
    public override bool IsIsolated { get; }
    Property Value
    Type Description
    bool
    Overrides
    GraphComponent.IsIsolated
    | Edit this page View Source

    Isolated

    Declaration
    public bool Isolated { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MaximumSegmentIndex

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

    MonotoneChainEdge

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

    Name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    NumPoints

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

    Points

    Declaration
    public Coordinate[] Points { get; set; }
    Property Value
    Type Description
    Coordinate[]

    Methods

    | Edit this page View Source

    AddIntersection(LineIntersector, int, int, int)

    Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes.

    Declaration
    public void AddIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
    Parameters
    Type Name Description
    LineIntersector li

    A line intersector

    int segmentIndex

    A segment index

    int geomIndex

    A geometry index

    int intIndex

    The intersection index (0 or 1)

    | Edit this page View Source

    AddIntersections(LineIntersector, int, int)

    Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.

    Declaration
    public void AddIntersections(LineIntersector li, int segmentIndex, int geomIndex)
    Parameters
    Type Name Description
    LineIntersector li

    A line intersector

    int segmentIndex

    A segment index

    int geomIndex

    A geometry index

    | Edit this page View Source

    ComputeIM(IntersectionMatrix)

    Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries.

    Declaration
    public override void ComputeIM(IntersectionMatrix im)
    Parameters
    Type Name Description
    IntersectionMatrix im
    Overrides
    GraphComponent.ComputeIM(IntersectionMatrix)
    | Edit this page View Source

    Equals(Edge)

    Equals is defined to be: e1 equals e2 if the coordinates of e1 are the same or the reverse of the coordinates in e2.

    Declaration
    protected bool Equals(Edge e)
    Parameters
    Type Name Description
    Edge e
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Equals is defined to be: e1 equals e2 if the coordinates of e1 are the same or the reverse of the coordinates in e2.

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    object o
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetCoordinate(int)

    Declaration
    public Coordinate GetCoordinate(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    Coordinate
    | Edit this page View Source

    GetHashCode()

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

    IsPointwiseEqual(Edge)

    Check if coordinate sequences of the Edges are identical.

    Declaration
    public bool IsPointwiseEqual(Edge e)
    Parameters
    Type Name Description
    Edge e

    The edge to test

    Returns
    Type Description
    bool

    true if the coordinate sequences of the Edges are identical.

    | Edit this page View Source

    ToString()

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

    UpdateIM(Label, IntersectionMatrix)

    Updates an IM from the label for an edge. Handles edges from both L and A geometries.

    Declaration
    public static void UpdateIM(Label label, IntersectionMatrix im)
    Parameters
    Type Name Description
    Label label

    A label

    IntersectionMatrix im

    An intersection matrix

    | Edit this page View Source

    Write(TextWriter)

    Declaration
    public void Write(TextWriter outstream)
    Parameters
    Type Name Description
    TextWriter outstream
    | Edit this page View Source

    WriteReverse(TextWriter)

    Declaration
    public void WriteReverse(TextWriter outstream)
    Parameters
    Type Name Description
    TextWriter outstream

    Operators

    | Edit this page View Source

    operator ==(Edge, Edge)

    Declaration
    public static bool operator ==(Edge obj1, Edge obj2)
    Parameters
    Type Name Description
    Edge obj1
    Edge obj2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(Edge, Edge)

    Declaration
    public static bool operator !=(Edge obj1, Edge obj2)
    Parameters
    Type Name Description
    Edge obj1
    Edge obj2
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX