Class GraphGenerator
GraphGenerator API to generate SystemGraph assets from scripts.
Inherited Members
Namespace: Mechatronics.SystemGraph
Assembly: solution.dll
Syntax
public class GraphGenerator
  Methods
| Name | Description | 
|---|---|
| AddComment(GraphDescriptor, string, string) | Add a comment in the Graph  | 
      
| AddDynamicPort(GraphDescriptor, NodeDescriptor, string, Type, PortDirection, FieldExtra) | Add a dynamic port on a node  | 
      
| AddEdge(GraphDescriptor, PortDescriptor, PortDescriptor) | Add an edge between two ports  | 
      
| AddGroup(GraphDescriptor, string) | Add a new group to the graph  | 
      
| AddMeta(GraphDescriptor, string, string) | Add a new Meta Key value pair to the Graph  | 
      
| AddNode(GraphDescriptor, NodeEditor) | Add a new Node to the Graph, from the specified NodeEditor type  | 
      
| AddNode(GraphDescriptor, string) | Add a new Node to the Graph, from the specified fullTypeName  | 
      
| AddNode(GraphDescriptor, string, string) | Add a new Node to the Graph, from the specified category and nodeTypeName  | 
      
| AddNode(GraphDescriptor, Type) | Add a new Node to the Graph, from the specified category and nodeTypeName  | 
      
| AddNodeToGroup(GraphDescriptor, GroupDescriptor, NodeDescriptor) | Add specified node to a group  | 
      
| AddParameter(GraphDescriptor, string, string, bool) | Add a parameter in the graph  | 
      
| AddParameter(GraphDescriptor, Type, string) | Add a parameter in the graph.  | 
      
| AddParameterNode(GraphDescriptor, ParameterDescriptor) | Create a Node bound to a parameter  | 
      
| AddSystemGraphNode(GraphDescriptor, string) | Add an embedded SystemGraph Node to the Graph  | 
      
| AddToPortList<T>(GraphDescriptor, NodeDescriptor, IPortEditor, string, T) | Add a new Port in the PortList  | 
      
| AddToPortList<T>(GraphDescriptor, NodeDescriptor, string) | Add a new Port in the PortList  | 
      
| AddToPortList<T>(GraphDescriptor, NodeDescriptor, string, T) | Add a new Port in the PortList  | 
      
| AlignNodes(List<NodeDescriptor>, Alignment) | Aligns the nodes.  | 
      
| AppendSerialization(GraphDescriptor, SystemGraphData, SerializationHandlers) | Append serialized graph to the GraphDescriptor, only items that don't already exists  | 
      
| AssignAssetPath(GraphDescriptor, string) | Assign a filepath to the GraphDescriptor  | 
      
| Beautify(GraphDescriptor, BeautifyLayout) | Beautify the specified Graph  | 
      
| CreateAsset(string) | Create a GraphDescriptor at the specified targetPath  | 
      
| CreateEdgeGuid(SerializedEdge) | Creates the edge unique identifier.  | 
      
| CreateInMemory() | Create a new GraphDescriptor in memory  | 
      
| CreateInMemory(string) | Create a new GraphDescriptor in memory created from the string  | 
      
| CreateNodeEditorForParameter(SerializedParameter) | Create the related NodeEditor for the specified parameter  | 
      
| CreateNodeEditorForParameter(string, string, PortDirection, FieldExtra) | Create the related NodeEditor for the specified parameter  | 
      
| DestroyAsset(GraphDescriptor) | Destroyed and remove asset described by GraphDescriptor parameter  | 
      
| DistributeNodes(GraphDescriptor, List<NodeDescriptor>, Distribution, float) | Distributes the nodes.  | 
      
| EnforceUniqueNodeName(GraphDescriptor, NodeDescriptor) | Enforce nodeDesc to use a unique name  | 
      
| FindNodeEditorForTitle(string) | Find the related NodeEditor for the specified nodeTitle in the cache  | 
      
| FindNodeTypeForTitle(string) | Finds the node type for title.  | 
      
| GenerateUniqueNodeName(SerializedNode, List<SerializedNode>, out bool, string) | Generate a unique name for node, if name is not unique in the graph  | 
      
| GetNode(GraphDescriptor, string) | Retrieve a node from it's guid in the GraphDescritor  | 
      
| GetNodeCategory(string) | Retrieve the NodeCategory attribute for specified nodeType name  | 
      
| GetOtherPortOnEdgeGuid(GraphDescriptor, int, PortDescriptor) | Retrieve the other port connected to an edge  | 
      
| GetParameter(GraphDescriptor, string) | Get a parameter descriptor by name  | 
      
| GetParameterByGuid(GraphDescriptor, string) | Get a parameter descriptor by guid  | 
      
| GetParameterValue<T>(GraphDescriptor, ParameterDescriptor, out T) | Get the default value of a parameter in the graph  | 
      
| GetPort(NodeDescriptor, string) | Get a Port from a guid inside a Node  | 
      
| GetPortValue<T>(PortDescriptor, out T) | Get the default value of a port in the graph  | 
      
| LoadAsset(string, bool) | Load a GraphDescriptor from the specified targetPath  | 
      
| MirrorSide(PortDirection) | Retrieve the other side of the PortDirection in parameter  | 
      
| NodeNameForJSON(string) | Extract a node name from the serialize node json data member  | 
      
| NodeTypeFromString(string) | Retrieve the Type of a nodeType string representation  | 
      
| RefreshNode(GraphDescriptor, NodeDescriptor) | Refresh the NodeEditor of the specified NodeDescriptor  | 
      
| RefreshNodeVisuals(NodeDescriptor) | Refreshes the node visuals.  | 
      
| RemoveComment(GraphDescriptor, CommentDescriptor) | Remove a comment from the Graph  | 
      
| RemoveDynamicPort(GraphDescriptor, NodeDescriptor, string) | Remove a dynamic port of a node  | 
      
| RemoveEdge(GraphDescriptor, EdgeDescriptor) | Remove an edge from the graph  | 
      
| RemoveGroup(GraphDescriptor, GroupDescriptor) | Remove a group from the graph  | 
      
| RemoveLastPortFromList(GraphDescriptor, NodeDescriptor, IPortEditor) | Remove the Last Port from an existing portlist  | 
      
| RemoveMeta(GraphDescriptor, MetaDescriptor) | Remove a meta key value pair from the Graph  | 
      
| RemoveNode(GraphDescriptor, NodeDescriptor) | Remove a node from the Graph  | 
      
| RemoveNode(GraphDescriptor, string) | Remove a node by guid from the Graph  | 
      
| RemoveNodeFromGroup(GraphDescriptor, GroupDescriptor, NodeDescriptor) | Remove specified node from a group  | 
      
| RemoveParameter(GraphDescriptor, ParameterDescriptor) | Remove a parameter from the graph  | 
      
| Reset(GraphDescriptor, bool) | Reset values and potentially reset serialization data from the GraphDescriptor  | 
      
| SaveAsset(GraphDescriptor, bool, bool) | Save a GraphDescriptor to file  | 
      
| SetNodeWaveform(GraphDescriptor, NodeDescriptor, double, double, bool) | Specify the parameters of the waveform to set on a Synchronous Node Descriptor  | 
      
| SetParameterValue<T>(GraphDescriptor, ParameterDescriptor, T) | Set the default value of a parameter in the graph  | 
      
| SetPortValue<T>(PortDescriptor, T) | Set the default value of a port in the graph  | 
      
| SyncFromSerialization(GraphDescriptor) | Synchronize the GraphDescriptor from it's serialization object  | 
      
| ToJson(GraphDescriptor) | Retrieve the GraphDescriptor JSon representation  | 
      
| UpgradeGraph(SystemGraphData) | Upgrades the graph.  | 
      
| ValidateAndRepair(GraphDescriptor) | Validate and automatically repair de graph  |