将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using Prism.Events;
|
||||
using XP.Hardware.Detector.Abstractions;
|
||||
|
||||
namespace XP.Hardware.Detector.Abstractions.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// 校正完成事件 | Correction completed event
|
||||
/// 当探测器校正操作完成时触发
|
||||
/// 线程安全:使用 Prism EventAggregator 确保线程安全的发布和订阅
|
||||
/// </summary>
|
||||
public class CorrectionCompletedEvent : PubSubEvent<CorrectionCompletedEventArgs>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using XP.Hardware.Detector.Abstractions.Enums;
|
||||
|
||||
namespace XP.Hardware.Detector.Abstractions
|
||||
{
|
||||
/// <summary>
|
||||
/// 校正完成事件参数 | Correction completed event arguments
|
||||
/// 携带校正类型和结果信息
|
||||
/// </summary>
|
||||
public class CorrectionCompletedEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// 校正类型 | Correction type
|
||||
/// </summary>
|
||||
public CorrectionType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 校正结果 | Correction result
|
||||
/// </summary>
|
||||
public DetectorResult Result { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数 | Constructor
|
||||
/// </summary>
|
||||
/// <param name="type">校正类型 | Correction type</param>
|
||||
/// <param name="result">校正结果 | Correction result</param>
|
||||
public CorrectionCompletedEventArgs(CorrectionType type, DetectorResult result)
|
||||
{
|
||||
Type = type;
|
||||
Result = result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Prism.Events;
|
||||
using XP.Hardware.Detector.Abstractions;
|
||||
|
||||
namespace XP.Hardware.Detector.Abstractions.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// 错误发生事件 | Error occurred event
|
||||
/// 当探测器操作发生错误时触发
|
||||
/// 线程安全:使用 Prism EventAggregator 确保线程安全的发布和订阅
|
||||
/// </summary>
|
||||
public class ErrorOccurredEvent : PubSubEvent<DetectorResult>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Prism.Events;
|
||||
using XP.Hardware.Detector.Abstractions;
|
||||
|
||||
namespace XP.Hardware.Detector.Abstractions.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// 图像采集事件 | Image captured event
|
||||
/// 当探测器采集到新图像时触发
|
||||
/// 线程安全:使用 Prism EventAggregator 确保线程安全的发布和订阅
|
||||
/// </summary>
|
||||
public class ImageCapturedEvent : PubSubEvent<ImageCapturedEventArgs>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
|
||||
namespace XP.Hardware.Detector.Abstractions
|
||||
{
|
||||
/// <summary>
|
||||
/// 图像采集事件参数 | Image captured event arguments
|
||||
/// 携带图像数据和元信息
|
||||
/// </summary>
|
||||
public class ImageCapturedEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// 16 位图像原始数据(无符号)| 16-bit raw image data (unsigned)
|
||||
/// </summary>
|
||||
public ushort[] ImageData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图像宽度 | Image width
|
||||
/// </summary>
|
||||
public uint Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图像高度 | Image height
|
||||
/// </summary>
|
||||
public uint Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 帧号 | Frame number
|
||||
/// </summary>
|
||||
public int FrameNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 存储路径 | Save path
|
||||
/// </summary>
|
||||
public string SavePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 曝光时间(毫秒)| Exposure time (milliseconds)
|
||||
/// </summary>
|
||||
public uint ExposureTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 采集时间戳 | Capture timestamp
|
||||
/// </summary>
|
||||
public DateTime CaptureTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Prism.Events;
|
||||
using XP.Hardware.Detector.Abstractions.Enums;
|
||||
|
||||
namespace XP.Hardware.Detector.Abstractions.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// 状态变更事件 | Status changed event
|
||||
/// 当探测器状态发生变化时触发
|
||||
/// 线程安全:使用 Prism EventAggregator 确保线程安全的发布和订阅
|
||||
/// </summary>
|
||||
public class StatusChangedEvent : PubSubEvent<DetectorStatus>
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user