|
|
@@ -217,13 +217,13 @@ namespace OTSMeasureApp
|
|
|
//驱动SEM到中心位置
|
|
|
SetSEMToCenterPoint();
|
|
|
ReadSEMDataAndSetToCurrentSample();
|
|
|
- PrepareVisualMeasureField(GetWorkingVisualSample());
|
|
|
+ //PrepareVisualMeasureField(GetWorkingVisualSample());
|
|
|
break;
|
|
|
case "DriveSEMToCurrentLocation":
|
|
|
//驱动SEM到当前位置
|
|
|
SetSEMCurrentLocation();
|
|
|
ReadSEMDataAndSetToCurrentSample();
|
|
|
- PrepareVisualMeasureField(GetWorkingVisualSample());
|
|
|
+ //PrepareVisualMeasureField(GetWorkingVisualSample());
|
|
|
break;
|
|
|
case "SetSEMCenterLocation":
|
|
|
//将测量区域移到SEM当前位置
|
|
|
@@ -2868,14 +2868,56 @@ namespace OTSMeasureApp
|
|
|
double bri = semParameters[2];
|
|
|
double contra = semParameters[3];
|
|
|
double kv = semParameters[4];
|
|
|
- if (mag != 0 && wd != 0)
|
|
|
+ double mag0 = 100;
|
|
|
+ double wd0 = 10;
|
|
|
+ double bri0 = 10;
|
|
|
+ double contra0 = 10;
|
|
|
+ double kv0 = 10;
|
|
|
+ m_MeasureAppForm.m_ProjParam.GetWorkingSampleSEMData(ref wd0, ref mag0, ref bri0, ref contra0, ref kv0);
|
|
|
+ if ((mag > 500) && (mag != mag0))
|
|
|
{
|
|
|
- //设置样品文件中的电镜参数
|
|
|
- m_MeasureAppForm.m_ProjParam.SetWorkingSampleSEMData(wd, mag, bri, contra, kv);
|
|
|
+ var rst = MessageBox.Show("Change Magnification to: " + mag.ToString("F2") + "\n" + "Previous Magnification: " + mag0.ToString("F2"), "SEM Data Info", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
|
|
+ if (rst == DialogResult.Yes)
|
|
|
+ {
|
|
|
+ if (mag != 0 && wd != 0)
|
|
|
+ {
|
|
|
+ //设置样品文件中的电镜参数
|
|
|
+ m_MeasureAppForm.m_ProjParam.SetWorkingSampleSEMData(wd, mag, bri, contra, kv);
|
|
|
|
|
|
- //将右键SEM数据菜单设置为可编辑状态
|
|
|
- CMStrip.Items[(int)MenuIndex.SetSemData].Enabled = true;
|
|
|
+ //将右键SEM数据菜单设置为可编辑状态
|
|
|
+ CMStrip.Items[(int)MenuIndex.SetSemData].Enabled = true;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (wd != 0)
|
|
|
+ {
|
|
|
+ m_MeasureAppForm.m_ProjParam.SetWorkingSampleSEMData(wd, mag0, bri, contra, kv);
|
|
|
+
|
|
|
+ //将右键SEM数据菜单设置为可编辑状态
|
|
|
+ CMStrip.Items[(int)MenuIndex.SetSemData].Enabled = true;
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (mag != 0 && wd != 0)
|
|
|
+ {
|
|
|
+ //设置样品文件中的电镜参数
|
|
|
+ m_MeasureAppForm.m_ProjParam.SetWorkingSampleSEMData(wd, mag, bri, contra, kv);
|
|
|
+
|
|
|
+ //将右键SEM数据菜单设置为可编辑状态
|
|
|
+ CMStrip.Items[(int)MenuIndex.SetSemData].Enabled = true;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -2884,7 +2926,7 @@ namespace OTSMeasureApp
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
#region 获取Filed帧图
|
|
|
public List<CVisualFieldGDIObject> GetOTSFieldVisualRects(CVisualSampleArea sam)
|
|
|
{
|