Class Node
Inherited Members
Namespace: NetTopologySuite.GeometriesGraph
Assembly: NetTopologySuite.dll
Syntax
public class Node : GraphComponent
Constructors
| Edit this page View SourceNode(Coordinate, EdgeEndStar)
Declaration
public Node(Coordinate coord, EdgeEndStar edges)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coord | |
EdgeEndStar | edges |
Properties
| Edit this page View SourceCoordinate
Gets a value indicating the position of this
Declaration
public override Coordinate Coordinate { get; protected set; }
Property Value
Type | Description |
---|---|
Coordinate | The position of this |
Overrides
| Edit this page View SourceEdges
Gets a value indicating the EdgeEndStar
of this Node
Declaration
public EdgeEndStar Edges { get; protected set; }
Property Value
Type | Description |
---|---|
EdgeEndStar | The |
IsIsolated
An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry.
Declaration
public override bool IsIsolated { get; }
Property Value
Type | Description |
---|---|
bool |
|
Overrides
Methods
| Edit this page View SourceAdd(EdgeEnd)
Add the edge to the list of edges at this node.
Declaration
public void Add(EdgeEnd e)
Parameters
Type | Name | Description |
---|---|---|
EdgeEnd | e | An |
ComputeIM(IntersectionMatrix)
Compute the contribution to an IM for this component.
Declaration
public override void ComputeIM(IntersectionMatrix im)
Parameters
Type | Name | Description |
---|---|---|
IntersectionMatrix | im | An |
Overrides
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.
Declaration
public Location ComputeMergedLocation(Label label2, int eltIndex)
Parameters
Type | Name | Description |
---|---|---|
Label | label2 | |
int | eltIndex |
Returns
Type | Description |
---|---|
Location |
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.
Declaration
public bool IsIncidentEdgeInResult()
Returns
Type | Description |
---|---|
bool |
|
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.
Declaration
public void MergeLabel(Label label)
Parameters
Type | Name | Description |
---|---|---|
Label | label | The |
MergeLabel(Node)
Merges n
's Label with this Node
's Label
.
Declaration
public void MergeLabel(Node n)
Parameters
Type | Name | Description |
---|---|---|
Node | n | A |
SetLabel(int, Location)
Declaration
public void SetLabel(int argIndex, Location onLocation)
Parameters
Type | Name | Description |
---|---|---|
int | argIndex | |
Location | onLocation |
SetLabelBoundary(int)
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
Declaration
public void SetLabelBoundary(int argIndex)
Parameters
Type | Name | Description |
---|---|---|
int | argIndex | An index for a TopologyLocation ( |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceWrite(TextWriter)
Declaration
public void Write(TextWriter outstream)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | outstream |