1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace LB_VisionProcesses.Cameras.LBCameras
{
    /// <summary>
    /// LB3D工业相机实现类
    /// 基于PHM6000系列封装
    /// </summary>
    internal class LBCamera : BaseCamera
    {
        public override bool AutoBalanceWhite()
        {
            return true;
        }
 
        public override bool CloseDevice()
        {
            return true;
        }
 
        public override void GetCamConfig(out CameraConfig config)
        {
            throw new NotImplementedException();
        }
 
        public override bool GetExpouseTime(out double value)
        {
            value = 0;
            return true;
        }
 
        public override bool GetGain(out double gain)
        {
            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)
        {
            lineStatus = LineStatus.Hight;
            return true;
        }
 
        public override List<string> GetListEnum()
        {
            return new List<string>();
        }
 
        public override bool GetTriggerDelay(out double delay)
        {
            delay = 0;
            return true;
        }
 
        public override bool GetTriggerFliter(out double flitertime)
        {
            flitertime = 0;
            return true;
        }
 
        public override bool GetTriggerMode(out TriggerMode mode, out TriggerSource source)
        {
            mode = TriggerMode.On;
            source = TriggerSource.Line0;
            return true;
        }
 
        public override bool GetTriggerPolarity(out TriggerPolarity polarity)
        {
            polarity = TriggerPolarity.RisingEdge;
            return true;
        }
 
        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)
        {
            return true;
        }
 
        public override bool SetGain(double gain)
        {
            return true;
        }
 
        public override bool SetLineMode(IOLines line, LineMode mode)
        {
            return true;
        }
 
        public override bool SetLineStatus(IOLines line, LineStatus linestatus)
        {
            return true;
        }
 
        public override bool SetTriggerDelay(double delay)
        {
            return true;
        }
 
        public override bool SetTriggerFliter(double flitertime)
        {
            return true;
        }
 
        public override bool SetTriggerMode(TriggerMode mode, TriggerSource triggerEnum = TriggerSource.Line0)
        {
            return true;
        }
 
        public override bool SetTriggerPolarity(TriggerPolarity polarity)
        {
            return true;
        }
 
        public override bool SoftTrigger()
        {
            return true;
        }
 
        public override bool StartGrabbing()
        {
            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;
        }
    }
}