mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-04-05 01:36:34 +08:00
1、修复找线工具的selectObject无法实时跟随的问题
2、可以重定义找线工具的初始位置 3、在工具初始化时加入防止其他事件更改UI参数的逻辑,以解决工具参数无法保存的bug
This commit is contained in:
@@ -102,6 +102,7 @@ namespace PMAlignTool
|
||||
tkb_contrast.Value = myPMAlign.contrast;
|
||||
|
||||
#endregion
|
||||
isInitTool = false;
|
||||
}
|
||||
|
||||
private void btnAcqNewModelImage_Click(object sender, EventArgs e)
|
||||
@@ -305,5 +306,21 @@ namespace PMAlignTool
|
||||
{
|
||||
lbl_contastValue.Text = tkb_contrast.Value.ToString();
|
||||
}
|
||||
|
||||
private void UIParams_ValueChanged(double value)
|
||||
{
|
||||
if (!isInitTool)
|
||||
{
|
||||
myPMAlign.minScore = nud_minScore.Value;
|
||||
myPMAlign.startAngle = Convert.ToInt16(nud_angleStart.Value);
|
||||
myPMAlign.angleRange = Convert.ToInt16(nud_angleRange.Value);
|
||||
myPMAlign.angleStep = Convert.ToInt16(nud_angleStep.Value);
|
||||
myPMAlign.polarity = cbx_polarity.TextStr;
|
||||
myPMAlign.isAutoConstants = ckb_autoContrast.Checked;
|
||||
myPMAlign.minScale = nud_ScaleStart.Value;
|
||||
myPMAlign.maxScale = nud_ScaleRange.Value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user