Files
XplorePlane/XplorePlane/Services/Cnc/ICncExecutionService.cs
T
zhengxuan.zhang 2eb3fed4d0 1、当前根节点选择中是 高亮背景和文字不协调,文字改为黑色
2、延时节点执行时,进度条显示功能失效,修复
   3、自动执行,当加载CNC后,点击rabbion中运行,此时没有看到执行中,已执行,等高亮规则
2026-05-06 11:46:49 +08:00

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);
}