From 65faad811883efc4264e3a5ca2c4e64340c198f5 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期六, 04 七月 2020 13:02:28 +0800 Subject: [PATCH] 板卡运动 --- src/Bro.Device.Gocator/GocatorConfig.cs | 79 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 77 insertions(+), 2 deletions(-) diff --git a/src/Bro.Device.Gocator/GocatorConfig.cs b/src/Bro.Device.Gocator/GocatorConfig.cs index 462b025..bc3053d 100644 --- a/src/Bro.Device.Gocator/GocatorConfig.cs +++ b/src/Bro.Device.Gocator/GocatorConfig.cs @@ -1,12 +1,87 @@ -锘縰sing System; +锘縰sing Bro.Common.Base; +using Bro.Common.Base.UI; +using Bro.Common.Helper; +using Bro.Common.Interface; +using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bro.Device.Gocator { - class GocatorConfig + [Device("Gocator", "Gocator婵�鍏夋壂鎻忎华", EnumHelper.DeviceAttributeType.InitialConfig)] + public class GocatorInitialConfig : CameraInitialConfigBase { + #region Not used + [Browsable(false)] + public override string SerialNum { get; set; } + [Browsable(false)] + public override string ComputerIP { get; set; } + #endregion + + [Category("璁$畻璁剧疆")] + [Description("true锛氳绠楁椂浣跨敤鍔犻�熷櫒锛宖alse锛氫笉浣跨敤鍔犻�熷櫒")] + [DefaultValue(false)] + [Browsable(false)] + public bool IsUseAccelerator { get; set; } = false; + + [Category("鎷嶆憚璁剧疆")] + [Description("榛樿Job")] + [DisplayName("榛樿Job")] + [DefaultValue("")] + public string DefaultJob { get; set; } = ""; + + [Category("鎷嶆憚璁剧疆")] + [Description("鍙栧儚瓒呮椂璁剧疆锛屽崟浣峬s")] + [DefaultValue(1000)] + public int SnapshotTimeout { get; set; } = 1000; + + [Category("閲囧浘妯″紡")] + [Description("寮傛閲囧浘鏃讹紝鏄惁纭Е鍙戞ā寮忋�倀rue锛氱‖瑙﹀彂锛沠alse锛氳蒋瑙﹀彂")] + [DisplayName("纭Е鍙�")] + public bool IsHardwareTrigger { get; set; } = false; + + [Category("閲囧浘妯″紡")] + [Description("true锛氬紓姝�/琚姩閲囧浘妯″紡 false锛氬悓姝�/涓诲姩閲囧浘妯″紡")] + [DefaultValue(false)] + public bool IsAsyncMode { get; set; } = false; + } + + [Device("Gocator", "Gocator婵�鍏夋壂鎻忎华", EnumHelper.DeviceAttributeType.OperationConfig)] + public class GocatorOperationConfig : CameraOprerationConfigBase + { + [Category("绠楁硶閰嶇疆")] + [Description("鍒囨崲Job鍚嶇О")] + public string JobName { get; set; } + + [Category("鍙栧儚閰嶇疆")] + [Description("true: 鍙栧儚鎿嶄綔 false: 涓嶆槸鍙栧儚鎿嶄綔")] + public bool IsSnapshotAction { get; set; } + + [Category("鍙栧儚閰嶇疆")] + [Description("true: 杩炴帴鎿嶄綔 false: 鏂紑杩炴帴鎿嶄綔")] + public bool IsOpenConnection { get; set; } + + public new string GetDisplayText() + { + return $"{(IsSnapshotAction ? "鍙栧儚鎿嶄綔" : "")} {(IsOpenConnection ? "寮�濮嬭繛鎺�" : "")} 绠楁硶锛歿AlgorithemPath}"; + } + + #region Not used + [Browsable(false)] + public override float ExposureAfterSnap { get; set; } + [Browsable(false)] + public override int ExposureWaitTime { get; set; } + [Browsable(false)] + public override float Gain { get; set; } + #endregion + } + + [Device("Gocator", "Gocator婵�鍏夋壂鎻忎华", EnumHelper.DeviceAttributeType.RunCtrl)] + public class GocatorRunCtrl : CtrlCameraRunBase + { + public GocatorRunCtrl(IDevice device) : base(device) { } } } -- Gitblit v1.8.0