|
|
@@ -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;
|