Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Side cluster that holds collection of related hyper cells.
Graph vertex address map:
Hyper Node: ClusterGraph instance.
Public Member Functions | |
void | Extend () |
Extends cluster with a new sub-cluster. | |
GraphNode | GetNode (int subclusterId, string rawNodeSign) |
Looking for node related to certain internal sub-cluster. More... | |
void | SetGraphAsNetworkContent (GraphsNetwork network, AFragmentGraph content, int cellIdx) |
Connects a graph to the sub-cluster nodes withing GraphsNetwork. More... | |
delegate void | GraphsRegistryChangeHandler (Graph oldEntry, Graph newEntry) |
Delegate for an agent that handles. More... | |
virtual Vector3 | GetNodePosition (GraphNode node) |
Returns the node's point suggested by the graph logic. More... | |
virtual void | SetNodePosition (GraphNode node, Vector3 position) |
Defines world position for the certain graph node. More... | |
virtual GraphNode | Add () |
Adds new GraphNode to the graph. More... | |
void | Add (string signature) |
Creates new GraphNode. More... | |
void | Add (string signature, out GraphNode node) |
Creates new GraphNode. More... | |
virtual void | Add (GraphNode node) |
Adds new node to the graph. More... | |
virtual T | Add< T > () |
Adds new node to the graph. More... | |
virtual T | Add< T > (string signature) |
Adds new node to the graph. More... | |
virtual bool | Remove (GraphNode node) |
Removing node from the graph. More... | |
virtual bool | Remove (string signature) |
Removing node from the graph. More... | |
virtual bool | Contains (string nodeSignature) |
Checks is the node included to the graph. More... | |
virtual bool | Contains (GraphNode node) |
Checks is the node included to the graph. More... | |
virtual bool | TryGetNode (string signature, out GraphNode node) |
Tries to get graph`s node by the signature. More... | |
Connection | GetConnection (Guid connectionId) |
Returns descriptor for the Connection by id. More... | |
virtual void | GetObjectData (SerializationInfo info, StreamingContext context) |
override string | ToString () |
Returns graph info. More... | |
void | Clear () |
Clears entire graph from nodes. | |
void | CopyTo (GraphNode[] array, int arrayIndex) |
Copies graph nodes of the graph to array. More... | |
void | CopyTo (string[] array, int arrayIndex) |
Copies GraphNode.signature entries in graph to array. More... | |
virtual IEnumerator< GraphNode > | GetEnumerator () |
Enumerates nodes withing the graph. More... | |
Static Public Member Functions | |
static ScalableLineGraph | Create (Direction direction) |
Creates a new line graph. More... | |
static ScalableLineGraph | Create (int units, Direction direction) |
Creates a new line graph. More... | |
static string | GetNodeAccessKey (int subclusterId, string rawNodeSign) |
Generated node signature along with the internal coord description. More... | |
Protected Member Functions | |
virtual void | SetNavigationMapPattern (int subclusterId) |
Builds the graph by the hyper node map. More... | |
ScalableLineGraph () | |
Creates new line graph. | |
void | OnBinaryDataLoaded () |
Must be called within ctor(SerializationInfo info, StreamingContext context) after binary data deserialization. | |
Package Functions | |
ScalableLineGraph (SerializationInfo info, StreamingContext context) | |
Restores object from the binary data. More... | |
void | ReleaseConnection (Guid id) |
Releases connection from internal registry. More... | |
void | SetConnectionInfo (Connection connection) |
Adds connection info to the registry. More... | |
Properties | |
int | size [get] |
Count of cells in line. | |
Direction | direction [get] |
Defines direction of cluster extension. Can be defined only once during initialization. | |
override GraphNode | TopEnterNode [get] |
override GraphNode | LeftEnterNode [get] |
override GraphNode | RightEnterNode [get] |
override GraphNode | BottomEnterNode [get] |
override GraphNode | TopEscapeNode [get] |
override GraphNode | LeftEscapeNode [get] |
override GraphNode | RightEscapeNode [get] |
override GraphNode | BottomEscapeNode [get] |
Guid | id [get] |
Id of the graph into internal runtime registry. | |
int | Count [get] |
Count of nodes into the graph. | |
int | ConnectionsCount [get] |
Count of currently established connections into the graph. | |
GraphNode | this[string signature] [get] |
Dictionary< string, GraphNode > | nodes [get] |
Graph navigation map. More... | |
bool | IsReadOnly [get] |
Always false. | |
Events | |
Action< GraphNode > | NodeAdded |
Occurs when new node added to the graph via the API. | |
Action< GraphNode > | NodeRemoved |
Occurs when new node removed from the graph via the API. | |
static GraphsRegistryChangeHandler | GraphObsoleted |
Occurs when registry overridden with a new graph with id that already has been registered. More... | |
|
package |
Restores object from the binary data.
info | |
context |
|
virtualinherited |
Adds new GraphNode to the graph.
|
virtualinherited |
Adds new node to the graph.
node | Node to add. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
inherited |
Creates new GraphNode.
signature | Node signature. |
|
inherited |
Creates new GraphNode.
signature | Node signature. |
node | Created instance. |
|
virtualinherited |
Adds new node to the graph.
T | Type of node to add. |
T | : | GraphNode | |
T | : | new() |
|
virtualinherited |
Adds new node to the graph.
T | Type of node to add. |
signature | Node signature. |
T | : | GraphNode |
|
virtualinherited |
Checks is the node included to the graph.
node | Node to check. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
virtualinherited |
Checks is the node included to the graph.
nodeSignature | GraphNode.signature to search. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
inherited |
Copies graph nodes of the graph to array.
array | Destination array. |
arrayIndex | Start index at the destination array. |
|
inherited |
Copies GraphNode.signature entries in graph to array.
array | Destination array. |
arrayIndex | Insertion index at destination array. |
|
static |
Creates a new line graph.
direction | Defines continues extension direction of the cluster. |
|
static |
Creates a new line graph.
direction | Defines continues extension direction of the cluster. |
units | Amount of units in graph from a scratch. |
|
inherited |
Returns descriptor for the Connection by id.
connectionId | Id of the connection. |
|
virtualinherited |
Enumerates nodes withing the graph.
GraphNode Doloro.UIEngine2.Modules.Graphs.ScalableLineGraph.GetNode | ( | int | subclusterId, |
string | rawNodeSign | ||
) |
Looking for node related to certain internal sub-cluster.
subclusterId | Id of sub cluster to access. |
rawNodeSign | Node code related to uniform cluster. |
null
if not registered.0, "00" - means 00 node of the cluster 0 (first created). 1, "40" - means 40 node of the cluster 1 (first extension).
(OPTIONALY) Some nodes can be absent due to consummation during optimization shells.
|
static |
Generated node signature along with the internal coord description.
subclusterId | Id of sub cluster to access. |
rawNodeSign | Node code related to uniform cluster. |
0, "00" - means 00 node of the cluster 0 (first created). 1, "40" - means 40 node of the cluster 1 (first extension).
|
virtualinherited |
Returns the node's point suggested by the graph logic.
node | Target node. |
|
inherited |
Delegate for an agent that handles.
oldEntry | Entry that excluded from the registry. |
newEntry | Graph that applied to the registry instead of an old one. |
|
packageinherited |
Releases connection from internal registry.
id | Connection.id to release. |
|
virtualinherited |
Removing node from the graph.
node | Node to release. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
virtualinherited |
Removing node from the graph.
signature | Signature of the node to release. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
packageinherited |
Adds connection info to the registry.
connection | Connection to add. |
void Doloro.UIEngine2.Modules.Graphs.ScalableLineGraph.SetGraphAsNetworkContent | ( | GraphsNetwork | network, |
AFragmentGraph | content, | ||
int | cellIdx | ||
) |
Connects a graph to the sub-cluster nodes withing GraphsNetwork.
network | Operating network that handles cross-graphs connections. |
content | Graph to apply as sub-cluster content. |
cellIdx | Index of the graph's sub-cluster. |
|
protectedvirtual |
Builds the graph by the hyper node map.
subclusterId | Id of the sub-cluster to map ids generation. |
graph | In case if null, creates new graph.. Otherwise extends predefined one. |
|
virtualinherited |
Defines world position for the certain graph node.
node | Node to position declare. |
position | World position related to the node. |
|
inherited |
Returns graph info.
|
virtualinherited |
Tries to get graph`s node by the signature.
signature | GraphNode.signature as access key. |
node | Node instance if found. |
|
getpackageinherited |
Graph navigation map.
string
- GraphNode.signature <see cref="GraphNode"/>
- node instance.
|
staticinherited |
Occurs when registry overridden with a new graph with id that already has been registered.
Could occur when you loading the graph that has been loaded up to the moment from the binary data.