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
Properties
DepthDelta
public int DepthDelta { get; }
Property Value
EdgeRing
public EdgeRing EdgeRing { get; set; }
Property Value
InResult
public bool InResult { get; set; }
Property Value
IsForward
public bool IsForward { get; protected set; }
Property Value
IsInResult
public bool IsInResult { get; }
Property Value
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
MinEdgeRing
public EdgeRing MinEdgeRing { get; set; }
Property Value
Next
public DirectedEdge Next { get; set; }
Property Value
NextMin
public DirectedEdge NextMin { get; set; }
Property Value
Sym
public DirectedEdge Sym { get; set; }
Property Value
Visited
public bool Visited { get; set; }
Property Value
VisitedEdge
Gets or sets a value indicating if both Visited
and Sym.Visited are true
.
public bool VisitedEdge { get; set; }
Property Value
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
Returns
- int
Change of depth moving from
currLocation
tonextLocation
GetDepth(Position)
public int GetDepth(Position position)
Parameters
position
Position
Returns
GetDepth(Positions)
[Obsolete("Use GetDepth(Geometries.Position)")]
public int GetDepth(Positions position)
Parameters
position
Positions
Returns
SetDepth(Position, int)
Set depth for a position
public void SetDepth(Position position, int depthVal)
Parameters
SetDepth(Positions, int)
[Obsolete("Use SetDepth(Geometries.Position, int)")]
public void SetDepth(Positions position, int depthVal)
Parameters
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
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
Write(StreamWriter)
public override void Write(StreamWriter outstream)
Parameters
outstream
StreamWriter
WriteEdge(StreamWriter)
public void WriteEdge(StreamWriter outstream)
Parameters
outstream
StreamWriter