From 2f5b39f83b584869e0a323f69ba5541db3fcaa75 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期四, 08 一月 2026 09:25:59 +0800
Subject: [PATCH] 重构BaseCamera基类相关相机的所有操作为abstract,2D/3D分别继承重载实现相应的操作即可。
---
LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs b/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs
index 2bdc26b..b5ca44d 100644
--- a/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs
+++ b/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs
@@ -23,6 +23,11 @@
return true;
}
+ public override void GetCamConfig(out CameraConfig config)
+ {
+ throw new NotImplementedException();
+ }
+
public override bool GetExpouseTime(out double value)
{
value = 0;
@@ -33,6 +38,16 @@
{
gain = 0;
return true;
+ }
+
+ public override bool GetImage(out Bitmap bitmap, int outtime = 3000)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override bool GetImageWithSoftTrigger(out Bitmap bitmap, int outtime = 3000)
+ {
+ throw new NotImplementedException();
}
public override bool GetLineStatus(IOLines line, out LineStatus lineStatus)
@@ -74,6 +89,11 @@
public override bool InitDevice(string SN, object Handle = null)
{
return true;
+ }
+
+ public override void SetCamConfig(CameraConfig config)
+ {
+ throw new NotImplementedException();
}
public override bool SetExpouseTime(double value)
@@ -126,6 +146,16 @@
return true;
}
+ public override bool StartWith_HardTriggerModel(TriggerSource hardtriggeritem = TriggerSource.Line0)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override bool StartWith_SoftTriggerModel()
+ {
+ throw new NotImplementedException();
+ }
+
public override bool StopGrabbing()
{
return true;
--
Gitblit v1.9.3