Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.Graphs.GraphNode Class Reference

Detailed Description

Instance that defies

Inheritance diagram for Doloro.Graphs.GraphNode:
Collaboration diagram for Doloro.Graphs.GraphNode:

Public Member Functions

 GraphNode ()
 Creates new instance of a node.
 
 GraphNode (Graph parentGraph)
 Creates new instance of a node. More...
 
 GraphNode (string sign)
 Creates new instance of a node. More...
 
 GraphNode (Graph parentGraph, string sign)
 Creates new instance of a node. More...
 
virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 
Connection[] GetConnections (GraphNode to)
 Returns connections established between this and some another node. More...
 
bool IsConnected (GraphNode to)
 Checks is there is connection between two nodes. More...
 
override string ToString ()
 

Protected Member Functions

void OnConnectionsCollectionChanged ()
 Occurs when connections collection has been changed via standard GraphNode's API.
 
virtual void OnModified ()
 Occurs when the node has been critically modified.
 

Package Functions

 GraphNode (SerializationInfo info, StreamingContext context)
 
void RemoveConnectionUnsafe (Guid connectionId)
 REmove certain connection from the registry. More...
 
void SetConnectionUnsafe (string nodeSign, Guid connectionId)
 Sets connection meta-data to the internal registry. More...
 

Properties

Graph graph [get, set]
 Graph that holds the node as child.
 
string signature [get]
 Signature of the graph point to direct access via the graph's nodes table.
 
int ConnectionsCount [get]
 Count of established connection with another nodes.
 
Connection[] connections [get]
 Static collection of the established connections.
 
virtual Vector3 position [get, set]
 World position of the node.
 

Events

Action< GraphNodeModified
 Occurs when the node has been modified.
 

Constructor & Destructor Documentation

◆ GraphNode() [1/3]

Doloro.Graphs.GraphNode.GraphNode ( Graph  parentGraph)

Creates new instance of a node.

Parameters
parentGraphGraph that will receive the node as a part.

◆ GraphNode() [2/3]

Doloro.Graphs.GraphNode.GraphNode ( string  sign)

Creates new instance of a node.

Parameters
signUnique signature of the node for direct access.

◆ GraphNode() [3/3]

Doloro.Graphs.GraphNode.GraphNode ( Graph  parentGraph,
string  sign 
)

Creates new instance of a node.

Parameters
parentGraphGraph that will receive the node as its part.
signUnique signature of the node for direct access.

Member Function Documentation

◆ GetConnections()

Connection[] Doloro.Graphs.GraphNode.GetConnections ( GraphNode  to)

Returns connections established between this and some another node.

Parameters
toSecond connection node.
Returns
Collection of established connections.

◆ IsConnected()

bool Doloro.Graphs.GraphNode.IsConnected ( GraphNode  to)

Checks is there is connection between two nodes.

Parameters
toDestination node.
Returns
Result of the checks. true if connected. false otherwise.

◆ RemoveConnectionUnsafe()

void Doloro.Graphs.GraphNode.RemoveConnectionUnsafe ( Guid  connectionId)
package

REmove certain connection from the registry.

Parameters
connectionIdConnection.id

Unsafe method the not guaranties you references integrity with the graph.

◆ SetConnectionUnsafe()

void Doloro.Graphs.GraphNode.SetConnectionUnsafe ( string  nodeSign,
Guid  connectionId 
)
package

Sets connection meta-data to the internal registry.

Parameters
nodeSignsignature
connectionIdConnection.id

Unsafe method the not guaranties you references integrity with the graph.


The documentation for this class was generated from the following file: