增加扫描模式配置参数功能

This commit is contained in:
TianSong
2026-04-22 15:16:43 +08:00
parent faf58b2768
commit 14b027b44f
12 changed files with 920 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
using XP.Scan.Attributes;
namespace XP.Scan.Models
{
/// <summary>
/// 扫描配置 | Scan configuration
/// 对应 INI [Scan_Config] Section
/// </summary>
[IniSection("Scan_Config")]
public class ScanSettings
{
/// <summary>采集张数 | Number of acquisitions</summary>
[IniKey("AcquiresNums")]
public int AcquiresNums { get; set; }
/// <summary>旋转角度 (°) | Rotation degree (°)</summary>
[IniKey("RotateDegree")]
public double RotateDegree { get; set; }
/// <summary>扫描模式描述 | Scan mode description</summary>
[IniKey("ScanMode")]
public string ScanMode { get; set; } = string.Empty;
/// <summary>SDD — 射线源到探测器距离 (mm) | Source to detector distance (mm)</summary>
[IniKey("SDD")]
public double SDD { get; set; }
/// <summary>SOD — 射线源到样品距离 (mm) | Source to object distance (mm)</summary>
[IniKey("SOD")]
public double SOD { get; set; }
}
}