Class TreeNode
Node that represents a vertex in a routed tree.
Inheritance
System.Object
TreeNode
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.Spatial.AdaptiveGrid
Assembly: Hypar.Elements.dll
Syntax
public class TreeNode
Constructors
TreeNode(UInt64)
Create new node from vertex id without any connections.
Declaration
public TreeNode(ulong id)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | id | Id of vertex. |
Fields
Id
Id of corresponding vertex in the gird.
Declaration
public ulong Id
Field Value
Type | Description |
---|---|
System.UInt64 |
Leafs
List of incoming nodes.
Declaration
public List<TreeNode> Leafs
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<TreeNode> |
Trunk
Outgoing node.
Declaration
public TreeNode Trunk
Field Value
Type | Description |
---|---|
TreeNode |
Methods
Disconnect()
Remove all incoming and outgoing connections from the grid. Removed nodes will also be disconnected from this node.
Declaration
public void Disconnect()
RemoveLeaf(TreeNode)
Remove leaf connection and set its trunk to null.
Declaration
public void RemoveLeaf(TreeNode leaf)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | leaf |
SetTrunk(TreeNode)
Set trunk node and add this node as leaf to it.
Declaration
public void SetTrunk(TreeNode trunk)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | trunk |