Class Node
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
public class Node : GraphComponent
- Inheritance
-
Node
- Derived
- Inherited Members
Constructors
Node(Coordinate, EdgeEndStar)
public Node(Coordinate coord, EdgeEndStar edges)
Parameters
coord
Coordinateedges
EdgeEndStar
Properties
Coordinate
Gets a value indicating the position of this
public override Coordinate Coordinate { get; protected set; }
Property Value
- Coordinate
The position of this
Node
Edges
Gets a value indicating the EdgeEndStar
of this Node
public EdgeEndStar Edges { get; protected set; }
Property Value
- EdgeEndStar
The
EdgeEndStar
of thisNode
IsIsolated
public override bool IsIsolated { get; }
Property Value
Methods
Add(EdgeEnd)
Add the edge to the list of edges at this node.
public void Add(EdgeEnd e)
Parameters
e
EdgeEndAn
EdgeEnd
ComputeIM(IntersectionMatrix)
public override void ComputeIM(IntersectionMatrix im)
Parameters
Remarks
Basic nodes do not compute IMs.
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.
public Location ComputeMergedLocation(Label label2, int eltIndex)
Parameters
Returns
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.
public bool IsIncidentEdgeInResult()
Returns
- bool
true
if any incident edge in the in the result
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.
public void MergeLabel(Label label)
Parameters
label
LabelThe
Label
to merge
MergeLabel(Node)
Merges n
's Label with this Node
's Label
.
public void MergeLabel(Node n)
Parameters
n
NodeA
Node
SetLabel(int, Location)
public void SetLabel(int argIndex, Location onLocation)
Parameters
SetLabelBoundary(int)
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
public void SetLabelBoundary(int argIndex)
Parameters
argIndex
intAn index for a TopologyLocation (
0
or1
)
ToString()
public override string ToString()
Returns
Write(TextWriter)
public void Write(TextWriter outstream)
Parameters
outstream
TextWriter