Class Node
Inherited Members
Namespace: NetTopologySuite.GeometriesGraph
Assembly: NetTopologySuite.dll
Syntax
public class Node : GraphComponent
Constructors
| Improve this Doc View SourceNode(Coordinate, EdgeEndStar)
Declaration
public Node(Coordinate coord, EdgeEndStar edges)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coord | |
EdgeEndStar | edges |
Properties
| Improve this Doc 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
| Improve this Doc 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
Declaration
public override bool IsIsolated { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
| Improve this Doc 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)
Declaration
public override void ComputeIM(IntersectionMatrix im)
Parameters
Type | Name | Description |
---|---|---|
IntersectionMatrix | im |
Overrides
Remarks
Basic nodes do not compute IMs.
ComputeMergedLocation(Label, Int32)
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 | |
Int32 | 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 |
---|---|
Boolean |
|
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(Int32, Location)
Declaration
public void SetLabel(int argIndex, Location onLocation)
Parameters
Type | Name | Description |
---|---|---|
Int32 | argIndex | |
Location | onLocation |
SetLabelBoundary(Int32)
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
Declaration
public void SetLabelBoundary(int argIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | argIndex | An index for a TopologyLocation ( |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWrite(TextWriter)
Declaration
public void Write(TextWriter outstream)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | outstream |