public void SetPortData(IPortData portData) { fieldName = portData.ItemName; direction = portData.Direction; connectionType = portData.ConnectionType; showBackingValue = portData.ShowBackingValue; portValue.SetValueTypeFilter(portData.ValueTypes); }
public PortData(IPortData portData) { fieldName = portData.ItemName; direction = portData.Direction; connectionType = portData.ConnectionType; showBackingValue = portData.ShowBackingValue; valueTypes = portData.ValueTypes.ToList(); }
public NodePortDefinition(string key, string title, InputOutputType inputOutputType, IPortData defaultValue, bool isMandatory) { Key = key; Title = title; InputOutputType = inputOutputType; DataMode = DataMode.WithData; PortDataType = defaultValue.GetType(); DefaultValue = defaultValue; Mandatory = isMandatory; }
public NodePort(int id, INode node, IPortData portData) : this(id, node, portData.ItemName, portData.Direction, portData.ConnectionType, portData.ShowBackingValue, portData.ValueTypes) { }
public NodePort(int id, int nodeId, NodeGraph graph, IPortData portData) : this(id, nodeId, graph, portData.ItemName, portData.Direction, portData.ConnectionType, portData.ShowBackingValue, portData.ValueTypes, portData.DistinctValues) { }
public static INodePort UpdatePort(this INode node, IPortData portData) { var portValue = UpdatePortValue(node, portData); if (portValue == null) { return(null); } var port = node.GetPort(portValue.ItemName); return(port); }
public static IPortValue UpdatePortValue(this INode node, IPortData portData) { if (portData == null) { return(null); } var port = node.UpdatePortValue( portData.ItemName, portData.Direction, portData.ConnectionType, ShowBackingValue.Always, portData.ValueTypes); return(port); }