Table of Contents

Class DirectedEdge

Namespace
NetTopologySuite.GeometriesGraph
Assembly
NetTopologySuite.dll
public class DirectedEdge : EdgeEnd, IComparable<EdgeEnd>
Inheritance
DirectedEdge
Implements
Inherited Members

Constructors

DirectedEdge(Edge, bool)

public DirectedEdge(Edge edge, bool isForward)

Parameters

edge Edge
isForward bool

Properties

DepthDelta

public int DepthDelta { get; }

Property Value

int

EdgeRing

public EdgeRing EdgeRing { get; set; }

Property Value

EdgeRing

InResult

public bool InResult { get; set; }

Property Value

bool

IsForward

public bool IsForward { get; protected set; }

Property Value

bool

IsInResult

public bool IsInResult { get; }

Property Value

bool

IsInteriorAreaEdge

This is an interior Area edge if its label is an Area label for both Geometries and for each Geometry both sides are in the interior.

public bool IsInteriorAreaEdge { get; }

Property Value

bool

true if this is an interior Area edge.

IsLineEdge

Gets a value indicating if this edge is a line edge.

It is if
  • at least one of the labels is a line label
  • any labels which are not line labels have all Location = Exterior.
public bool IsLineEdge { get; }

Property Value

bool

true if edge is a line edge

IsVisited

public bool IsVisited { get; }

Property Value

bool

MinEdgeRing

public EdgeRing MinEdgeRing { get; set; }

Property Value

EdgeRing

Next

public DirectedEdge Next { get; set; }

Property Value

DirectedEdge

NextMin

public DirectedEdge NextMin { get; set; }

Property Value

DirectedEdge

Sym

public DirectedEdge Sym { get; set; }

Property Value

DirectedEdge

Visited

public bool Visited { get; set; }

Property Value

bool

VisitedEdge

Gets or sets a value indicating if both Visited and Sym.Visited are true.

Setting the property marks both DirectedEdges attached to a given Edge.

This is used for edges corresponding to lines, which will only appear oriented in a single direction in the result.
public bool VisitedEdge { get; set; }

Property Value

bool

Methods

DepthFactor(Location, Location)

Computes the factor for the change in depth when moving from one location to another. E.g. if crossing from the Interior to the Exterior the depth decreases, so the factor is -1.

public static int DepthFactor(Location currLocation, Location nextLocation)

Parameters

currLocation Location

The current location

nextLocation Location

The next location

Returns

int

Change of depth moving from currLocation to nextLocation

GetDepth(Position)

public int GetDepth(Position position)

Parameters

position Position

Returns

int

GetDepth(Positions)

[Obsolete("Use GetDepth(Geometries.Position)")]
public int GetDepth(Positions position)

Parameters

position Positions

Returns

int

SetDepth(Position, int)

Set depth for a position

public void SetDepth(Position position, int depthVal)

Parameters

position Position

The position to update

depthVal int

The depth at the provided position

SetDepth(Positions, int)

[Obsolete("Use SetDepth(Geometries.Position, int)")]
public void SetDepth(Positions position, int depthVal)

Parameters

position Positions
depthVal int

SetEdgeDepths(Position, int)

Set both edge depths. One depth for a given side is provided. The other is computed depending on the Location transition and the depthDelta of the edge.

public void SetEdgeDepths(Position position, int depth)

Parameters

position Position

The position to update

depth int

The depth at the provided position

SetEdgeDepths(Positions, int)

Set both edge depths. One depth for a given side is provided. The other is computed depending on the Location transition and the depthDelta of the edge.

[Obsolete("Use SetEdgeDepths(Topology.Postion, int)")]
public void SetEdgeDepths(Positions position, int depth)

Parameters

position Positions

The position to update

depth int

The depth at the provided position

Write(StreamWriter)

public override void Write(StreamWriter outstream)

Parameters

outstream StreamWriter

WriteEdge(StreamWriter)

public void WriteEdge(StreamWriter outstream)

Parameters

outstream StreamWriter