Class DirectedEdge
Assembly: NetTopologySuite.dll
Syntax
public class DirectedEdge : EdgeEnd, IComparable<EdgeEnd>
Constructors
|
Improve this Doc
View Source
DirectedEdge(Edge, Boolean)
Declaration
public DirectedEdge(Edge edge, bool isForward)
Parameters
Properties
|
Improve this Doc
View Source
DepthDelta
Declaration
public int DepthDelta { get; }
Property Value
|
Improve this Doc
View Source
EdgeRing
Declaration
public EdgeRing EdgeRing { get; set; }
Property Value
|
Improve this Doc
View Source
InResult
Declaration
public bool InResult { get; set; }
Property Value
|
Improve this Doc
View Source
IsForward
Declaration
public bool IsForward { get; protected set; }
Property Value
|
Improve this Doc
View Source
IsInResult
Declaration
public bool IsInResult { get; }
Property Value
|
Improve this Doc
View Source
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.
Declaration
public bool IsInteriorAreaEdge { get; }
Property Value
Type |
Description |
Boolean |
true if this is an interior Area edge.
|
|
Improve this Doc
View Source
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.
Declaration
public bool IsLineEdge { get; }
Property Value
Type |
Description |
Boolean |
true if edge is a line edge
|
|
Improve this Doc
View Source
IsVisited
Declaration
public bool IsVisited { get; }
Property Value
|
Improve this Doc
View Source
MinEdgeRing
Declaration
public EdgeRing MinEdgeRing { get; set; }
Property Value
|
Improve this Doc
View Source
Next
Declaration
public DirectedEdge Next { get; set; }
Property Value
|
Improve this Doc
View Source
NextMin
Declaration
public DirectedEdge NextMin { get; set; }
Property Value
|
Improve this Doc
View Source
Sym
Declaration
public DirectedEdge Sym { get; set; }
Property Value
|
Improve this Doc
View Source
Visited
Declaration
public bool Visited { get; set; }
Property Value
|
Improve this Doc
View Source
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.
Declaration
public bool VisitedEdge { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
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.
Declaration
public static int DepthFactor(Location currLocation, Location nextLocation)
Parameters
Type |
Name |
Description |
Location |
currLocation |
The current location
|
Location |
nextLocation |
The next location
|
Returns
Type |
Description |
Int32 |
Change of depth moving from currLocation to nextLocation
|
|
Improve this Doc
View Source
GetDepth(Position)
Declaration
public int GetDepth(Position position)
Parameters
Returns
|
Improve this Doc
View Source
GetDepth(Positions)
Declaration
[Obsolete("Use GetDepth(Geometries.Position)")]
public int GetDepth(Positions position)
Parameters
Returns
|
Improve this Doc
View Source
SetDepth(Position, Int32)
Declaration
public void SetDepth(Position position, int depthVal)
Parameters
Type |
Name |
Description |
Position |
position |
The position to update
|
Int32 |
depthVal |
The depth at the provided position
|
|
Improve this Doc
View Source
SetDepth(Positions, Int32)
Declaration
[Obsolete("Use SetDepth(Geometries.Position, int)")]
public void SetDepth(Positions position, int depthVal)
Parameters
|
Improve this Doc
View Source
SetEdgeDepths(Position, Int32)
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.
Declaration
public void SetEdgeDepths(Position position, int depth)
Parameters
Type |
Name |
Description |
Position |
position |
The position to update
|
Int32 |
depth |
The depth at the provided position
|
|
Improve this Doc
View Source
SetEdgeDepths(Positions, Int32)
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.
Declaration
[Obsolete("Use SetEdgeDepths(Topology.Postion, int)")]
public void SetEdgeDepths(Positions position, int depth)
Parameters
Type |
Name |
Description |
Positions |
position |
The position to update
|
Int32 |
depth |
The depth at the provided position
|
|
Improve this Doc
View Source
Write(StreamWriter)
Declaration
public override void Write(StreamWriter outstream)
Parameters
Overrides
|
Improve this Doc
View Source
WriteEdge(StreamWriter)
Declaration
public void WriteEdge(StreamWriter outstream)
Parameters
Implements