领胜LDS 键盘AOI检测项目
xcd
2020-06-24 d6c577e17ee7bb5331dd51d803f9b42441b0f0e5
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
namespace HDisplay
{
    partial class HalconDisplay
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Component Designer generated code
 
        /// <summary>
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HalconDisplay));
            this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripSetupROILabel = new System.Windows.Forms.ToolStripLabel();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.btnRegionAdd = new System.Windows.Forms.ToolStripButton();
            this.btnRegionDiff = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripDeleteSelectedRegion = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripDeleteAllRegion = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripResetDisp = new System.Windows.Forms.ToolStripButton();
            this.viewPort = new HalconDotNet.HWindowControl();
            this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // hScrollBar1
            // 
            this.hScrollBar1.Location = new System.Drawing.Point(-2, 305);
            this.hScrollBar1.Name = "hScrollBar1";
            this.hScrollBar1.Size = new System.Drawing.Size(359, 20);
            this.hScrollBar1.TabIndex = 1;
            this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll);
            // 
            // toolStrip1
            // 
            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripSetupROILabel,
            this.toolStripSeparator1,
            this.btnRegionAdd,
            this.btnRegionDiff,
            this.toolStripSeparator4,
            this.toolStripButton1,
            this.toolStripButton2,
            this.toolStripButton3,
            this.toolStripButton4,
            this.toolStripButton5,
            this.toolStripSeparator2,
            this.toolStripDeleteSelectedRegion,
            this.toolStripSeparator3,
            this.toolStripDeleteAllRegion,
            this.toolStripSeparator5,
            this.toolStripResetDisp});
            this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
            this.toolStrip1.Size = new System.Drawing.Size(359, 23);
            this.toolStrip1.Stretch = true;
            this.toolStrip1.TabIndex = 4;
            this.toolStrip1.Text = "toolStrip1";
            this.toolStrip1.Visible = false;
            // 
            // toolStripSetupROILabel
            // 
            this.toolStripSetupROILabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
            this.toolStripSetupROILabel.Name = "toolStripSetupROILabel";
            this.toolStripSetupROILabel.Size = new System.Drawing.Size(67, 15);
            this.toolStripSetupROILabel.Text = "Setup ROI:";
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 23);
            // 
            // btnRegionAdd
            // 
            this.btnRegionAdd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btnRegionAdd.Image = global::HDisplay.Properties.Resources.roi_op_union;
            this.btnRegionAdd.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnRegionAdd.Name = "btnRegionAdd";
            this.btnRegionAdd.Size = new System.Drawing.Size(23, 20);
            this.btnRegionAdd.Text = "regionAdd";
            this.btnRegionAdd.ToolTipText = "The drawn region will be added to the region of interest";
            this.btnRegionAdd.Click += new System.EventHandler(this.btnRegionAdd_Click);
            // 
            // btnRegionDiff
            // 
            this.btnRegionDiff.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btnRegionDiff.Image = global::HDisplay.Properties.Resources.roi_op_difference;
            this.btnRegionDiff.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnRegionDiff.Name = "btnRegionDiff";
            this.btnRegionDiff.Size = new System.Drawing.Size(23, 20);
            this.btnRegionDiff.Text = "regionDifference";
            this.btnRegionDiff.ToolTipText = "The drawn region will be excluded from region of interest";
            this.btnRegionDiff.Click += new System.EventHandler(this.btnRegionDiff_Click);
            // 
            // toolStripSeparator4
            // 
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(6, 23);
            // 
            // toolStripButton1
            // 
            this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image = global::HDisplay.Properties.Resources.gen_rect1;
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(23, 20);
            this.toolStripButton1.Text = "toolStripButton1";
            this.toolStripButton1.ToolTipText = "Draw axis-aligned rectangle";
            this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
            // 
            // toolStripButton2
            // 
            this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton2.Image = global::HDisplay.Properties.Resources.gen_rect2;
            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton2.Name = "toolStripButton2";
            this.toolStripButton2.Size = new System.Drawing.Size(23, 20);
            this.toolStripButton2.Text = "toolStripButton2";
            this.toolStripButton2.ToolTipText = "Draw rotated rectangle";
            this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
            // 
            // toolStripButton3
            // 
            this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton3.Image = global::HDisplay.Properties.Resources.gen_line;
            this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton3.Name = "toolStripButton3";
            this.toolStripButton3.Size = new System.Drawing.Size(23, 20);
            this.toolStripButton3.Text = "toolStripButton3";
            this.toolStripButton3.ToolTipText = "Draw line";
            this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
            // 
            // toolStripButton4
            // 
            this.toolStripButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton4.Image = global::HDisplay.Properties.Resources.gen_circle;
            this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton4.Name = "toolStripButton4";
            this.toolStripButton4.Size = new System.Drawing.Size(23, 20);
            this.toolStripButton4.Text = "toolStripButton4";
            this.toolStripButton4.ToolTipText = "Draw circle";
            this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
            // 
            // toolStripButton5
            // 
            this.toolStripButton5.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton5.Image = global::HDisplay.Properties.Resources.gen_circular_arc;
            this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton5.Name = "toolStripButton5";
            this.toolStripButton5.Size = new System.Drawing.Size(23, 20);
            this.toolStripButton5.Text = "toolStripButton5";
            this.toolStripButton5.ToolTipText = "Draw circular arc";
            this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 23);
            // 
            // toolStripDeleteSelectedRegion
            // 
            this.toolStripDeleteSelectedRegion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripDeleteSelectedRegion.Image = global::HDisplay.Properties.Resources.clear_roi_sel;
            this.toolStripDeleteSelectedRegion.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripDeleteSelectedRegion.Name = "toolStripDeleteSelectedRegion";
            this.toolStripDeleteSelectedRegion.Size = new System.Drawing.Size(23, 20);
            this.toolStripDeleteSelectedRegion.Text = "Delete selected region";
            this.toolStripDeleteSelectedRegion.ToolTipText = "Delete the drawn activated region.";
            this.toolStripDeleteSelectedRegion.Click += new System.EventHandler(this.toolStripDeleteSelectedRegion_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 23);
            // 
            // toolStripDeleteAllRegion
            // 
            this.toolStripDeleteAllRegion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripDeleteAllRegion.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDeleteAllRegion.Image")));
            this.toolStripDeleteAllRegion.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripDeleteAllRegion.Name = "toolStripDeleteAllRegion";
            this.toolStripDeleteAllRegion.Size = new System.Drawing.Size(23, 20);
            this.toolStripDeleteAllRegion.Text = "toolStripButton7";
            this.toolStripDeleteAllRegion.ToolTipText = "Delete all regions";
            this.toolStripDeleteAllRegion.Click += new System.EventHandler(this.toolStripDeleteAllRegion_Click);
            // 
            // toolStripSeparator5
            // 
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(6, 23);
            // 
            // toolStripResetDisp
            // 
            this.toolStripResetDisp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripResetDisp.Image = ((System.Drawing.Image)(resources.GetObject("toolStripResetDisp.Image")));
            this.toolStripResetDisp.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripResetDisp.Name = "toolStripResetDisp";
            this.toolStripResetDisp.Size = new System.Drawing.Size(23, 20);
            this.toolStripResetDisp.Text = "toolStripButton6";
            this.toolStripResetDisp.ToolTipText = "Set the window to fit the image";
            this.toolStripResetDisp.Click += new System.EventHandler(this.toolStripResetDisp_Click);
            // 
            // viewPort
            // 
            this.viewPort.BackColor = System.Drawing.Color.Black;
            this.viewPort.BorderColor = System.Drawing.Color.Black;
            this.viewPort.Dock = System.Windows.Forms.DockStyle.Fill;
            this.viewPort.ImagePart = new System.Drawing.Rectangle(0, 0, 382, 324);
            this.viewPort.Location = new System.Drawing.Point(0, 0);
            this.viewPort.MinimumSize = new System.Drawing.Size(320, 222);
            this.viewPort.Name = "viewPort";
            this.viewPort.Size = new System.Drawing.Size(382, 324);
            this.viewPort.TabIndex = 5;
            this.viewPort.WindowSize = new System.Drawing.Size(382, 324);
            this.viewPort.HInitWindow += new HalconDotNet.HInitWindowEventHandler(this.viewPort_HInitWindow);
            this.viewPort.KeyDown += new System.Windows.Forms.KeyEventHandler(this.viewPort_KeyDown);
            // 
            // vScrollBar1
            // 
            this.vScrollBar1.Location = new System.Drawing.Point(385, 64);
            this.vScrollBar1.Name = "vScrollBar1";
            this.vScrollBar1.Size = new System.Drawing.Size(17, 155);
            this.vScrollBar1.TabIndex = 3;
            this.vScrollBar1.Visible = false;
            this.vScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.vScrollBar1_Scroll);
            // 
            // HalconDisplay
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.BackColor = System.Drawing.SystemColors.Control;
            this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.Controls.Add(this.vScrollBar1);
            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.viewPort);
            this.Controls.Add(this.hScrollBar1);
            this.MinimumSize = new System.Drawing.Size(344, 271);
            this.Name = "HalconDisplay";
            this.Size = new System.Drawing.Size(382, 324);
            this.Load += new System.EventHandler(this.HDisplayControl_Load);
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.HDisplayControl_Paint);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
 
        }
 
        #endregion
        private System.Windows.Forms.HScrollBar hScrollBar1;
        private System.Windows.Forms.ToolStripButton toolStripButton1;
        private System.Windows.Forms.ToolStripButton toolStripButton2;
        private System.Windows.Forms.ToolStripButton toolStripButton3;
        private System.Windows.Forms.ToolStripButton toolStripButton4;
        private System.Windows.Forms.ToolStripButton toolStripButton5;
        private System.Windows.Forms.ToolStripButton toolStripDeleteSelectedRegion;
        private System.Windows.Forms.ToolStripLabel toolStripSetupROILabel;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
        private System.Windows.Forms.ToolStripButton btnRegionAdd;
        private System.Windows.Forms.ToolStripButton btnRegionDiff;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
        public HalconDotNet.HWindowControl viewPort;
        public System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
        private System.Windows.Forms.ToolStripButton toolStripDeleteAllRegion;
        private System.Windows.Forms.ToolStripButton toolStripResetDisp;
        private System.Windows.Forms.ToolStripButton toolStripClick;
        private System.Windows.Forms.ToolStripButton toolStripDClk;
        private System.Windows.Forms.ToolStripButton toolStripPress;
        private System.Windows.Forms.ToolStripButton toolStripSlide;
        private System.Windows.Forms.ToolStripButton toolStripCam;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
        private System.Windows.Forms.ToolStripButton toolStrip3DTouch;
        private System.Windows.Forms.VScrollBar vScrollBar1;
    }
}