private void ProcessNode(viNode node) { //Change that later if (!this.processednodes.Contains(node)) { if (this.processors.ContainsKey(node)) { foreach (viInputPin ip in node.InputPins) { if (ip.IsConnected) { this.ProcessNode(ip.ParentPin.ParentNode); } } this.processors[node].Process(); } this.processednodes.Add(node); } }
protected override bool ProcessAddedNode(INode2 node) { if (this.AddNodeToGraph(node)) { viNode vn = new viNode(); vn.HdeNode = node.InternalCOMInterf; vn.Hoster = (IPluginHost)node.InternalCOMInterf; this.graph.Nodes.Add(vn); this.hostnodes.Add(vn.Hoster, vn); foreach (IPin2 p in node.Pins) { this.ProcessAddedPin(p); } this.ProcessPendingLinks(); return true; } return false; }
public viPin(viNode parentnode) { this.ParentNode = parentnode; }
public RemoveNodeGraphAction(viNode node) { this.node = node; }
public AddNodeGraphAction(viNode node) { this.node = node; }
public viInputPin(viNode parentnode) : base(parentnode) { this.ParentNode.InputPins.Add(this); }
public viOutputPin(viNode parentnode) : base(parentnode) { this.ChildrenPins = new List<viInputPin>(); this.ParentNode.OutputPins.Add(this); }