/// <summary> /// 移除输出节点 /// </summary> /// <param name="uIdx"></param> private void RemoveOutputNode(string uIdx) { //移除输出节点 var outputNode = this.selfNodeGUI.Data.OutputPoints.Find((node) => node.Id == uIdx); //移除数据 var gp = this.groupFilterPathDataList.Find((g) => g.OutputNodeId.Equals(uIdx)); this.groupFilterPathDataList.Remove(gp); //移除连接线 GraphNodeHelper.RemoveOutputNode(this.selfNodeGUI, outputNode); GraphNodeHelper.UpdateConnectLine(this.selfNodeGUI, outputNode); }
/// <summary> /// 更新数据 /// </summary> private void AddOutputNode(string path) { var ret = this.groupFilterPathDataList.Find((g) => g.GroupPath.Equals(path)); if (ret != null) { return; } var node = this.selfNodeGUI.Data.AddOutputPoint(path); this.groupFilterPathDataList.Add(new GroupPathData() { GroupPath = path, OutputNodeId = node.Id }); GraphNodeHelper.UpdateConnectLine(this.selfNodeGUI, node); }