public static OutPoint Connect(SerialOutPoint a, GraphNode b, int length = 1) { var outPoint = a.AddOutConnection(); var inPoint = b.AddInConnection(); GraphConnection.Connect(outPoint, inPoint, length); return outPoint; }
public override ColorableClass ConnectTo(GraphNode to, int length = 1) { if (Parent != null) { GraphNode graphNode = Parent as GraphNode; if (graphNode!=null) graphNode.Input.Remove(this); } to.AddInConnection(this); Parent = to; return null; }
public override ColorableClass ConnectTo(GraphNode outNode, int length = 1) { return(Connect(this, outNode, length)); }
public override ColorableClass ConnectTo(GraphNode outNode, int length = 1) { var inPoint = outNode.AddInConnection(); return ConnectTo(inPoint,length); }
public virtual ColorableClass ConnectTo(GraphNode to, int length = 1) { return this; }
public override ColorableClass ConnectTo(GraphNode outNode, int length = 1) { return Output.ConnectTo(outNode,length); }
public override ColorableClass ConnectTo(GraphNode outNode, int length = 1) { return Connect(this, outNode, length); }