From 3322022068ab818912d6f5d9e5eb31f51cc639c2 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期四, 24 二月 2022 09:12:30 +0800 Subject: [PATCH] 添加配置文件的DataShift2 --- src/Bro.Common.Model/Model/LaserScanParam.cs | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Bro.Common.Model/Model/LaserScanParam.cs b/src/Bro.Common.Model/Model/LaserScanParam.cs index a7eb899..8c42409 100644 --- a/src/Bro.Common.Model/Model/LaserScanParam.cs +++ b/src/Bro.Common.Model/Model/LaserScanParam.cs @@ -1,4 +1,5 @@ -锘縰sing System; +锘縰sing Bro.Common.Helper; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -6,7 +7,7 @@ namespace Bro.Common.Model { - public class LaserScanParam + public class LaserScanParam : IComplexDisplay { public int Resolution_X { get; set; } public int Resolution_Y { get; set; } @@ -17,5 +18,15 @@ public int Offset_Z { get; set; } public int Angle_Z { get; set; } + + public override string ToString() + { + return GetDisplayText(); + } + + public string GetDisplayText() + { + return $"Resolution:{Resolution_X},{Resolution_Y},{Resolution_Z}; Offset:{Offset_X},{Offset_Y},{Offset_Z}; Angel_Z:{Angle_Z}"; + } } } -- Gitblit v1.8.0