cxs 1 miesiąc temu
rodzic
commit
f256c84785

+ 1 - 0
OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/frmInitializeImageboundary.Designer.cs

@@ -416,6 +416,7 @@
             this.cB_Inclinedplanefocus.TabIndex = 24;
             this.cB_Inclinedplanefocus.Text = "Inclined plane focus";
             this.cB_Inclinedplanefocus.UseVisualStyleBackColor = true;
+            this.cB_Inclinedplanefocus.CheckedChanged += new System.EventHandler(this.cB_Inclinedplanefocus_CheckedChanged);
             // 
             // frmInitializeImageboundary
             // 

+ 7 - 2
OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/frmInitializeImageboundary.cs

@@ -220,6 +220,10 @@ namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel
             double.TryParse(tBx_Magnification.Text, out dMagnification);
             return dMagnification;
         }
+        private void cB_Inclinedplanefocus_CheckedChanged(object sender, EventArgs e)
+        {
+            IsInclinedPlaneFocus = cB_Inclinedplanefocus.Checked;
+        }
         // 主圆形区域
         private RectangleF mainCircleArea;
         // 三个等距分布在圆边界上的小圆
@@ -461,9 +465,7 @@ namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel
             float centerX = circle.X + circle.Width / 2;
             float centerY = circle.Y + circle.Height / 2;
             float radius = circle.Width / 2;
-
             float distance = (float)Math.Sqrt(Math.Pow(point.X - centerX, 2) +Math.Pow(point.Y - centerY, 2));
-
             return distance <= radius;
         }
 
@@ -491,6 +493,9 @@ namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel
 
 
 
+        
+        
+        
         private void UpdateGroupBoxHighlight(GroupBox groupBox, bool isHighlighted)
         {
             if (groupBox == null) return;