From 023271bc8f05466d112a122c06957dd925573855 Mon Sep 17 00:00:00 2001
From: C3032 <C3032@BC3032>
Date: 星期二, 06 一月 2026 15:08:30 +0800
Subject: [PATCH] 集成 了PHM6000 系列 3D 线扫相机,仅保留并优化**亮度图(强度图)**采集与显示功能。

---
 LB_SmartVision/VisionForm.Designer.cs |  165 ++++++++++++++++++-------------------------------------
 1 files changed, 54 insertions(+), 111 deletions(-)

diff --git a/LB_SmartVision/VisionForm.Designer.cs b/LB_SmartVision/VisionForm.Designer.cs
index 659b183..4e66a8e 100644
--- a/LB_SmartVision/VisionForm.Designer.cs
+++ b/LB_SmartVision/VisionForm.Designer.cs
@@ -31,17 +31,14 @@
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VisionForm));
             theme_VisionForm = new ReaLTaiizor.Forms.ThemeForm();
             sc_VisionForm = new SplitContainer();
-            sc_VisionMainViewer = new SplitContainer();
-            tlp_VisionMainForm = new Sunny.UI.UITableLayoutPanel();
+            tlp_MainView = new Sunny.UI.UITableLayoutPanel();
+            materialTabControl = new MaterialSkin.Controls.MaterialTabControl();
             tlp_VisionMainOperator = new Sunny.UI.UITableLayoutPanel();
             ckb_AllowRun = new Sunny.UI.UICheckBox();
             btn_Login = new ReaLTaiizor.Controls.Button();
             btn_GlobalVar = new ReaLTaiizor.Controls.Button();
             com_ProductName = new ReaLTaiizor.Controls.AloneComboBox();
             materialTabSelector = new MaterialSkin.Controls.MaterialTabSelector();
-            materialTabControl = new MaterialSkin.Controls.MaterialTabControl();
-            tabPage1 = new TabPage();
-            tabPage2 = new TabPage();
             grb_Info = new Sunny.UI.UIGroupBox();
             rich_Info = new Sunny.UI.UIRichTextBox();
             cb_VisionForm = new ReaLTaiizor.Controls.ControlBox();
@@ -50,13 +47,8 @@
             sc_VisionForm.Panel1.SuspendLayout();
             sc_VisionForm.Panel2.SuspendLayout();
             sc_VisionForm.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)sc_VisionMainViewer).BeginInit();
-            sc_VisionMainViewer.Panel1.SuspendLayout();
-            sc_VisionMainViewer.Panel2.SuspendLayout();
-            sc_VisionMainViewer.SuspendLayout();
-            tlp_VisionMainForm.SuspendLayout();
+            tlp_MainView.SuspendLayout();
             tlp_VisionMainOperator.SuspendLayout();
-            materialTabControl.SuspendLayout();
             grb_Info.SuspendLayout();
             SuspendLayout();
             // 
@@ -74,7 +66,7 @@
             theme_VisionForm.Padding = new Padding(12, 88, 12, 11);
             theme_VisionForm.RoundCorners = true;
             theme_VisionForm.Sizable = true;
-            theme_VisionForm.Size = new Size(1800, 1200);
+            theme_VisionForm.Size = new Size(1440, 880);
             theme_VisionForm.SmartBounds = true;
             theme_VisionForm.StartPosition = FormStartPosition.WindowsDefaultLocation;
             theme_VisionForm.TabIndex = 0;
@@ -83,6 +75,7 @@
             // sc_VisionForm
             // 
             sc_VisionForm.Dock = DockStyle.Fill;
+            sc_VisionForm.FixedPanel = FixedPanel.Panel2;
             sc_VisionForm.Location = new Point(12, 88);
             sc_VisionForm.Margin = new Padding(4);
             sc_VisionForm.Name = "sc_VisionForm";
@@ -90,53 +83,47 @@
             // 
             // sc_VisionForm.Panel1
             // 
-            sc_VisionForm.Panel1.Controls.Add(sc_VisionMainViewer);
+            sc_VisionForm.Panel1.Controls.Add(tlp_MainView);
             // 
             // sc_VisionForm.Panel2
             // 
             sc_VisionForm.Panel2.Controls.Add(grb_Info);
-            sc_VisionForm.Size = new Size(1776, 1101);
-            sc_VisionForm.SplitterDistance = 873;
+            sc_VisionForm.Size = new Size(1416, 781);
+            sc_VisionForm.SplitterDistance = 596;
             sc_VisionForm.SplitterWidth = 5;
             sc_VisionForm.TabIndex = 1;
             // 
-            // sc_VisionMainViewer
+            // tlp_MainView
             // 
-            sc_VisionMainViewer.Dock = DockStyle.Fill;
-            sc_VisionMainViewer.Location = new Point(0, 0);
-            sc_VisionMainViewer.Margin = new Padding(4);
-            sc_VisionMainViewer.Name = "sc_VisionMainViewer";
-            sc_VisionMainViewer.Orientation = Orientation.Horizontal;
+            tlp_MainView.ColumnCount = 1;
+            tlp_MainView.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
+            tlp_MainView.Controls.Add(materialTabControl, 0, 2);
+            tlp_MainView.Controls.Add(tlp_VisionMainOperator, 0, 1);
+            tlp_MainView.Controls.Add(materialTabSelector, 0, 0);
+            tlp_MainView.Dock = DockStyle.Fill;
+            tlp_MainView.Location = new Point(0, 0);
+            tlp_MainView.Margin = new Padding(2);
+            tlp_MainView.Name = "tlp_MainView";
+            tlp_MainView.RowCount = 3;
+            tlp_MainView.RowStyles.Add(new RowStyle(SizeType.Absolute, 60F));
+            tlp_MainView.RowStyles.Add(new RowStyle(SizeType.Absolute, 39F));
+            tlp_MainView.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
+            tlp_MainView.Size = new Size(1416, 596);
+            tlp_MainView.TabIndex = 1;
+            tlp_MainView.TagString = null;
             // 
-            // sc_VisionMainViewer.Panel1
+            // materialTabControl
             // 
-            sc_VisionMainViewer.Panel1.Controls.Add(tlp_VisionMainForm);
-            // 
-            // sc_VisionMainViewer.Panel2
-            // 
-            sc_VisionMainViewer.Panel2.Controls.Add(materialTabControl);
-            sc_VisionMainViewer.Size = new Size(1776, 873);
-            sc_VisionMainViewer.SplitterDistance = 124;
-            sc_VisionMainViewer.SplitterWidth = 5;
-            sc_VisionMainViewer.TabIndex = 0;
-            // 
-            // tlp_VisionMainForm
-            // 
-            tlp_VisionMainForm.BackColor = Color.FromArgb(39, 51, 63);
-            tlp_VisionMainForm.ColumnCount = 1;
-            tlp_VisionMainForm.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
-            tlp_VisionMainForm.Controls.Add(tlp_VisionMainOperator, 0, 1);
-            tlp_VisionMainForm.Controls.Add(materialTabSelector, 0, 0);
-            tlp_VisionMainForm.Dock = DockStyle.Fill;
-            tlp_VisionMainForm.Location = new Point(0, 0);
-            tlp_VisionMainForm.Margin = new Padding(4);
-            tlp_VisionMainForm.Name = "tlp_VisionMainForm";
-            tlp_VisionMainForm.RowCount = 2;
-            tlp_VisionMainForm.RowStyles.Add(new RowStyle(SizeType.Absolute, 76F));
-            tlp_VisionMainForm.RowStyles.Add(new RowStyle(SizeType.Absolute, 49F));
-            tlp_VisionMainForm.Size = new Size(1776, 124);
-            tlp_VisionMainForm.TabIndex = 0;
-            tlp_VisionMainForm.TagString = null;
+            materialTabControl.AccessibleRole = AccessibleRole.Sound;
+            materialTabControl.Depth = 0;
+            materialTabControl.Dock = DockStyle.Fill;
+            materialTabControl.Location = new Point(2, 101);
+            materialTabControl.Margin = new Padding(2);
+            materialTabControl.MouseState = MaterialSkin.MouseState.HOVER;
+            materialTabControl.Name = "materialTabControl";
+            materialTabControl.SelectedIndex = 0;
+            materialTabControl.Size = new Size(1412, 493);
+            materialTabControl.TabIndex = 0;
             // 
             // tlp_VisionMainOperator
             // 
@@ -156,12 +143,12 @@
             tlp_VisionMainOperator.Controls.Add(btn_GlobalVar, 7, 0);
             tlp_VisionMainOperator.Controls.Add(com_ProductName, 8, 0);
             tlp_VisionMainOperator.Dock = DockStyle.Fill;
-            tlp_VisionMainOperator.Location = new Point(4, 80);
+            tlp_VisionMainOperator.Location = new Point(4, 64);
             tlp_VisionMainOperator.Margin = new Padding(4);
             tlp_VisionMainOperator.Name = "tlp_VisionMainOperator";
             tlp_VisionMainOperator.RowCount = 1;
             tlp_VisionMainOperator.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tlp_VisionMainOperator.Size = new Size(1768, 41);
+            tlp_VisionMainOperator.Size = new Size(1408, 31);
             tlp_VisionMainOperator.TabIndex = 0;
             tlp_VisionMainOperator.TagString = null;
             // 
@@ -174,7 +161,7 @@
             ckb_AllowRun.Margin = new Padding(4);
             ckb_AllowRun.MinimumSize = new Size(1, 1);
             ckb_AllowRun.Name = "ckb_AllowRun";
-            ckb_AllowRun.Size = new Size(188, 33);
+            ckb_AllowRun.Size = new Size(148, 23);
             ckb_AllowRun.TabIndex = 2;
             ckb_AllowRun.Text = "杩愯妯″紡";
             // 
@@ -189,12 +176,12 @@
             btn_Login.Image = null;
             btn_Login.ImageAlign = ContentAlignment.MiddleLeft;
             btn_Login.InactiveColor = Color.FromArgb(32, 34, 37);
-            btn_Login.Location = new Point(200, 4);
+            btn_Login.Location = new Point(160, 4);
             btn_Login.Margin = new Padding(4);
             btn_Login.Name = "btn_Login";
             btn_Login.PressedBorderColor = Color.FromArgb(165, 37, 37);
             btn_Login.PressedColor = Color.FromArgb(165, 37, 37);
-            btn_Login.Size = new Size(188, 33);
+            btn_Login.Size = new Size(148, 23);
             btn_Login.TabIndex = 3;
             btn_Login.Text = "鐢ㄦ埛鐧诲綍";
             btn_Login.TextAlignment = StringAlignment.Center;
@@ -211,12 +198,12 @@
             btn_GlobalVar.Image = null;
             btn_GlobalVar.ImageAlign = ContentAlignment.MiddleLeft;
             btn_GlobalVar.InactiveColor = Color.FromArgb(32, 34, 37);
-            btn_GlobalVar.Location = new Point(1376, 4);
+            btn_GlobalVar.Location = new Point(1096, 4);
             btn_GlobalVar.Margin = new Padding(4);
             btn_GlobalVar.Name = "btn_GlobalVar";
             btn_GlobalVar.PressedBorderColor = Color.FromArgb(165, 37, 37);
             btn_GlobalVar.PressedColor = Color.FromArgb(165, 37, 37);
-            btn_GlobalVar.Size = new Size(188, 33);
+            btn_GlobalVar.Size = new Size(148, 23);
             btn_GlobalVar.TabIndex = 4;
             btn_GlobalVar.Text = "鍏ㄥ眬鍙橀噺";
             btn_GlobalVar.TextAlignment = StringAlignment.Center;
@@ -230,61 +217,24 @@
             com_ProductName.EnabledCalc = true;
             com_ProductName.FormattingEnabled = true;
             com_ProductName.ItemHeight = 20;
-            com_ProductName.Location = new Point(1572, 4);
+            com_ProductName.Location = new Point(1252, 4);
             com_ProductName.Margin = new Padding(4);
             com_ProductName.Name = "com_ProductName";
-            com_ProductName.Size = new Size(192, 26);
+            com_ProductName.Size = new Size(152, 26);
             com_ProductName.TabIndex = 5;
             com_ProductName.SelectedValueChanged += com_ProductName_SelectedValueChanged;
             // 
             // materialTabSelector
             // 
-            materialTabSelector.BaseTabControl = materialTabControl;
+            materialTabSelector.BaseTabControl = null;
             materialTabSelector.Depth = 0;
             materialTabSelector.Dock = DockStyle.Fill;
             materialTabSelector.Location = new Point(4, 4);
             materialTabSelector.Margin = new Padding(4);
             materialTabSelector.MouseState = MaterialSkin.MouseState.HOVER;
             materialTabSelector.Name = "materialTabSelector";
-            materialTabSelector.Size = new Size(1768, 68);
+            materialTabSelector.Size = new Size(1408, 52);
             materialTabSelector.TabIndex = 1;
-            // 
-            // materialTabControl
-            // 
-            materialTabControl.AccessibleRole = AccessibleRole.Sound;
-            materialTabControl.Controls.Add(tabPage1);
-            materialTabControl.Controls.Add(tabPage2);
-            materialTabControl.Depth = 0;
-            materialTabControl.Dock = DockStyle.Fill;
-            materialTabControl.Location = new Point(0, 0);
-            materialTabControl.Margin = new Padding(4);
-            materialTabControl.MouseState = MaterialSkin.MouseState.HOVER;
-            materialTabControl.Name = "materialTabControl";
-            materialTabControl.SelectedIndex = 0;
-            materialTabControl.Size = new Size(1776, 744);
-            materialTabControl.TabIndex = 0;
-            // 
-            // tabPage1
-            // 
-            tabPage1.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
-            tabPage1.Location = new Point(4, 36);
-            tabPage1.Margin = new Padding(4);
-            tabPage1.Name = "tabPage1";
-            tabPage1.Size = new Size(1768, 704);
-            tabPage1.TabIndex = 0;
-            tabPage1.Text = "tabPage1";
-            tabPage1.UseVisualStyleBackColor = true;
-            // 
-            // tabPage2
-            // 
-            tabPage2.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
-            tabPage2.Location = new Point(4, 29);
-            tabPage2.Margin = new Padding(4);
-            tabPage2.Name = "tabPage2";
-            tabPage2.Size = new Size(1768, 711);
-            tabPage2.TabIndex = 1;
-            tabPage2.Text = "tabPage2";
-            tabPage2.UseVisualStyleBackColor = true;
             // 
             // grb_Info
             // 
@@ -298,7 +248,7 @@
             grb_Info.MinimumSize = new Size(1, 1);
             grb_Info.Name = "grb_Info";
             grb_Info.Padding = new Padding(0, 40, 0, 0);
-            grb_Info.Size = new Size(1776, 223);
+            grb_Info.Size = new Size(1416, 180);
             grb_Info.TabIndex = 1;
             grb_Info.Text = "鏃ュ織鏄剧ず鍖猴細";
             grb_Info.TextAlignment = ContentAlignment.MiddleLeft;
@@ -314,7 +264,7 @@
             rich_Info.Name = "rich_Info";
             rich_Info.Padding = new Padding(2);
             rich_Info.ShowText = false;
-            rich_Info.Size = new Size(1776, 183);
+            rich_Info.Size = new Size(1416, 140);
             rich_Info.TabIndex = 0;
             rich_Info.TextAlignment = ContentAlignment.MiddleLeft;
             // 
@@ -328,7 +278,7 @@
             cb_VisionForm.EnableMaximizeButton = true;
             cb_VisionForm.EnableMinimizeButton = true;
             cb_VisionForm.ForeColor = Color.FromArgb(155, 155, 155);
-            cb_VisionForm.Location = new Point(1675, 18);
+            cb_VisionForm.Location = new Point(1315, 18);
             cb_VisionForm.Margin = new Padding(4);
             cb_VisionForm.MaximizeHoverColor = Color.FromArgb(74, 74, 74);
             cb_VisionForm.MinimizeHoverColor = Color.FromArgb(63, 63, 65);
@@ -341,7 +291,7 @@
             // 
             AutoScaleDimensions = new SizeF(120F, 120F);
             AutoScaleMode = AutoScaleMode.Dpi;
-            ClientSize = new Size(1800, 1200);
+            ClientSize = new Size(1440, 880);
             Controls.Add(theme_VisionForm);
             FormBorderStyle = FormBorderStyle.None;
             Icon = (Icon)resources.GetObject("$this.Icon");
@@ -350,19 +300,15 @@
             Name = "VisionForm";
             Text = "杞儙澶栬瑙嗚妫�娴嬬郴缁�";
             TransparencyKey = Color.Fuchsia;
+            FormClosing += VisionForm_FormClosing;
             Load += VisionForm_Load;
             theme_VisionForm.ResumeLayout(false);
             sc_VisionForm.Panel1.ResumeLayout(false);
             sc_VisionForm.Panel2.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)sc_VisionForm).EndInit();
             sc_VisionForm.ResumeLayout(false);
-            sc_VisionMainViewer.Panel1.ResumeLayout(false);
-            sc_VisionMainViewer.Panel2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)sc_VisionMainViewer).EndInit();
-            sc_VisionMainViewer.ResumeLayout(false);
-            tlp_VisionMainForm.ResumeLayout(false);
+            tlp_MainView.ResumeLayout(false);
             tlp_VisionMainOperator.ResumeLayout(false);
-            materialTabControl.ResumeLayout(false);
             grb_Info.ResumeLayout(false);
             ResumeLayout(false);
         }
@@ -372,18 +318,15 @@
         private ReaLTaiizor.Forms.ThemeForm theme_VisionForm;
         private ReaLTaiizor.Controls.ControlBox cb_VisionForm;
         private SplitContainer sc_VisionForm;
-        private SplitContainer sc_VisionMainViewer;
         private Sunny.UI.UITableLayoutPanel tlp_VisionMainOperator;
         private Sunny.UI.UICheckBox ckb_AllowRun;
         private ReaLTaiizor.Controls.Button btn_Login;
         private ReaLTaiizor.Controls.Button btn_GlobalVar;
-        private Sunny.UI.UITableLayoutPanel tlp_VisionMainForm;
         private Sunny.UI.UIGroupBox grb_Info;
         private Sunny.UI.UIRichTextBox rich_Info;
         private MaterialSkin.Controls.MaterialTabControl materialTabControl;
         private ReaLTaiizor.Controls.AloneComboBox com_ProductName;
         private MaterialSkin.Controls.MaterialTabSelector materialTabSelector;
-        private TabPage tabPage1;
-        private TabPage tabPage2;
+        private Sunny.UI.UITableLayoutPanel tlp_MainView;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3