2eb3fed4d0
2、延时节点执行时,进度条显示功能失效,修复 3、自动执行,当加载CNC后,点击rabbion中运行,此时没有看到执行中,已执行,等高亮规则
28 lines
871 B
C#
28 lines
871 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Media.Imaging;
|
|
using XplorePlane.Models;
|
|
|
|
namespace XplorePlane.Services.Cnc
|
|
{
|
|
/// <summary>
|
|
/// CNC program execution service interface.
|
|
/// </summary>
|
|
public interface ICncExecutionService
|
|
{
|
|
Task ExecuteAsync(CncProgram program, IProgress<CncNodeExecutionProgress> progress, CancellationToken cancellationToken);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Progress report for a single CNC node execution.
|
|
/// ResultImage is non-null when an InspectionModuleNode produces output.
|
|
/// ProgressPercent is used by long-running nodes such as WaitDelayNode.
|
|
/// </summary>
|
|
public record CncNodeExecutionProgress(
|
|
Guid NodeId,
|
|
NodeExecutionState State,
|
|
BitmapSource ResultImage = null,
|
|
double? ProgressPercent = null);
|
|
}
|