From aaae1139f2bb3a55910fff0aa907b3ba6395deea Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期二, 30 六月 2020 08:54:06 +0800
Subject: [PATCH] 添加goactor驱动

---
 src/Bro.Device.Gocator/GocatorConfig.cs |   66 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/src/Bro.Device.Gocator/GocatorConfig.cs b/src/Bro.Device.Gocator/GocatorConfig.cs
index 6dba56f..b6d73ac 100644
--- a/src/Bro.Device.Gocator/GocatorConfig.cs
+++ b/src/Bro.Device.Gocator/GocatorConfig.cs
@@ -1,7 +1,10 @@
 锘縰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;
@@ -11,10 +14,73 @@
     [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)]
+        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