|
@@ -424,6 +424,34 @@ namespace MeasureData
|
|
|
}
|
|
|
//add by zjx 2020-12-18 为了测试只做能谱部分 end
|
|
|
|
|
|
+ //20201221 reduce窗口参数
|
|
|
+ private int m_ReducePos_X;
|
|
|
+ public int RedcueX
|
|
|
+ {
|
|
|
+ get { return this.m_ReducePos_X; }
|
|
|
+ set { this.m_ReducePos_X = value; }
|
|
|
+ }
|
|
|
+
|
|
|
+ private int m_ReducePos_Y;
|
|
|
+ public int RedcueY
|
|
|
+ {
|
|
|
+ get { return this.m_ReducePos_Y; }
|
|
|
+ set { this.m_ReducePos_Y = value; }
|
|
|
+ }
|
|
|
+
|
|
|
+ private int m_ReducePos_W;
|
|
|
+ public int RedcueW
|
|
|
+ {
|
|
|
+ get { return this.m_ReducePos_W; }
|
|
|
+ set { this.m_ReducePos_W = value; }
|
|
|
+ }
|
|
|
+
|
|
|
+ private int m_ReducePos_H;
|
|
|
+ public int RedcueH
|
|
|
+ {
|
|
|
+ get { return this.m_ReducePos_H; }
|
|
|
+ set { this.m_ReducePos_H = value; }
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
|
|
@@ -482,6 +510,12 @@ namespace MeasureData
|
|
|
this.ScanSpeedHigh = "CMD_SCANRATE7";
|
|
|
//add by sun 2020-12-15 增加不同样品扫描速度参数 end
|
|
|
|
|
|
+ //20201221
|
|
|
+ this.RedcueX = 192;
|
|
|
+ this.RedcueY = 192;
|
|
|
+ this.RedcueW = 256;
|
|
|
+ this.RedcueH = 256;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//XML文件保存测量参数
|
|
@@ -639,6 +673,23 @@ namespace MeasureData
|
|
|
pscor.AssignValue(this.pixelSizeCor);
|
|
|
sFile.Register("PixelSizeYCorrect", pscor);
|
|
|
|
|
|
+ //Reduce窗口相关
|
|
|
+ xInt R_X = new xInt();
|
|
|
+ R_X.AssignValue(this.RedcueX);
|
|
|
+ sFile.Register("RedcueX", R_X);
|
|
|
+
|
|
|
+ xInt R_Y = new xInt();
|
|
|
+ R_Y.AssignValue(this.RedcueY);
|
|
|
+ sFile.Register("RedcueY", R_Y);
|
|
|
+
|
|
|
+ xInt R_W = new xInt();
|
|
|
+ R_W.AssignValue(this.RedcueW);
|
|
|
+ sFile.Register("RedcueX", R_W);
|
|
|
+
|
|
|
+ xInt R_H = new xInt();
|
|
|
+ R_H.AssignValue(this.RedcueH);
|
|
|
+ sFile.Register("RedcueX", R_H);
|
|
|
+
|
|
|
if (isStoring)
|
|
|
{
|
|
|
sFile.Serialize(true, xml, rootNode);
|
|
@@ -693,6 +744,10 @@ namespace MeasureData
|
|
|
this.ScanRotCor = Convert.ToSingle(scanRotate.value());
|
|
|
this.PixelSizeCor = Convert.ToSingle(pscor.value());
|
|
|
|
|
|
+ this.RedcueX = Convert.ToInt32(R_X.value());
|
|
|
+ this.RedcueY = Convert.ToInt32(R_Y.value());
|
|
|
+ this.RedcueW = Convert.ToInt32(R_W.value());
|
|
|
+ this.RedcueH = Convert.ToInt32(R_H.value());
|
|
|
}
|
|
|
}
|
|
|
|