MeasureParam.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  1. //时间:20200618
  2. //作者:郝爽
  3. //功能:测量参数
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using FileManager;
  10. using System.Xml;
  11. using System.IO;
  12. namespace MeasureData
  13. {
  14. public class MeasureParam : ISlo
  15. {
  16. #region 内容
  17. //工作条件,一次测量的全部切孔都是一类的
  18. // 样品类型
  19. private string m_SampleName;
  20. public string SampleName
  21. {
  22. get { return this.m_SampleName; }
  23. set { this.m_SampleName = value; }
  24. }
  25. //是否仅拍照
  26. private Boolean is_Photograph;
  27. public Boolean Is_Photograph
  28. {
  29. get { return this.is_Photograph; }
  30. set { this.is_Photograph = value; }
  31. }
  32. //是否有pt工序
  33. private Boolean m_pt;
  34. public Boolean PT
  35. {
  36. get { return this.m_pt; }
  37. set { this.m_pt = value; }
  38. }
  39. //倾斜样品台
  40. private Boolean m_Title;
  41. public Boolean Title
  42. {
  43. get { return this.m_Title; }
  44. set { this.m_Title = value; }
  45. }
  46. //是否有EDS
  47. private Boolean m_EDS;
  48. public Boolean EDS
  49. {
  50. get { return this.m_EDS; }
  51. set { this.m_EDS = value; }
  52. }
  53. //能谱Z轴移动的位置
  54. private float edsZ;
  55. public float EDSZ
  56. {
  57. get { return this.edsZ; }
  58. set { this.edsZ = value; }
  59. }
  60. //能谱电压设定值
  61. private float edsV;
  62. public float EDSV
  63. {
  64. get { return this.edsV; }
  65. set { this.edsV = value; }
  66. }
  67. //能谱电压设定值
  68. private float edsA;
  69. public float EDSA
  70. {
  71. get { return this.edsA; }
  72. set { this.edsA = value; }
  73. }
  74. //Z轴移动的范围
  75. private float m_dZ;
  76. public float ZDistance
  77. {
  78. get { return this.m_dZ; }
  79. set { this.m_dZ = value; }
  80. }
  81. //FIB使用的ELY文件
  82. private string m_fibTemp;
  83. public string FIBTemp
  84. {
  85. get { return this.m_fibTemp; }
  86. set { this.m_fibTemp = value; }
  87. }
  88. //PT使用的ELY文件
  89. private string m_ptTemp;
  90. public string PTTemp
  91. {
  92. get { return this.m_ptTemp; }
  93. set { this.m_ptTemp = value; }
  94. }
  95. //对焦方式,自动对焦还是手动对焦,手动对焦是1,自有自动对焦2,客户自动对焦3
  96. private int m_fMode;
  97. public int FocusMode
  98. {
  99. get { return m_fMode; }
  100. set { m_fMode = value; }
  101. }
  102. //拉直操作需要的放大位数
  103. private float stretch_Magnification;
  104. public float Stretch_Magnification
  105. {
  106. get { return this.stretch_Magnification; }
  107. set { this.stretch_Magnification = value; }
  108. }
  109. //定位切割位置的放大倍数
  110. private float location_Magnification;
  111. public float Location_Magnification
  112. {
  113. get { return this.location_Magnification; }
  114. set { this.location_Magnification = value; }
  115. }
  116. //定位切割位置的工作电压
  117. private float location_Voltage;
  118. public float Location_Voltage
  119. {
  120. get { return this.location_Voltage; }
  121. set { this.location_Voltage = value; }
  122. }
  123. //拍照的放大倍数
  124. private float photograph_Magnification;
  125. public float Photograph_Magnification
  126. {
  127. get { return this.photograph_Magnification; }
  128. set { this.photograph_Magnification = value; }
  129. }
  130. //拍照的工作电压
  131. private float photograph_Voltage;
  132. public float Photograph_Voltage
  133. {
  134. get { return this.photograph_Voltage; }
  135. set { this.photograph_Voltage = value; }
  136. }
  137. //FIB拍照时的放大倍数
  138. private float fib_Magnification;
  139. public float FIB_Magnification
  140. {
  141. get { return this.fib_Magnification; }
  142. set { this.fib_Magnification = value; }
  143. }
  144. //校正角度选择
  145. private float correction_Angle;
  146. public float Correction_Angle
  147. {
  148. get { return this.correction_Angle; }
  149. set { this.correction_Angle = value; }
  150. }
  151. //厂商
  152. private String firm;
  153. public String Firm
  154. {
  155. get { return this.firm; }
  156. set { this.firm = value; }
  157. }
  158. //对焦参数, SEM
  159. private FocusParam focusP;
  160. public FocusParam AutoFocus
  161. {
  162. get { return this.focusP; }
  163. set { this.focusP = value; }
  164. }
  165. //对焦参数, FIB
  166. private FocusParam focusF;
  167. public FocusParam FIBFocus
  168. {
  169. get { return this.focusF; }
  170. set { this.focusF = value; }
  171. }
  172. //消像散x参数
  173. private FocusParam StigX;
  174. public FocusParam AutoStigX
  175. {
  176. get { return this.StigX; }
  177. set { this.StigX = value; }
  178. }
  179. //消像散Y参数
  180. private FocusParam StigY;
  181. public FocusParam AutoStigY
  182. {
  183. get { return this.StigY; }
  184. set { this.StigY = value; }
  185. }
  186. //EDS参数
  187. private EDSParam EdsParam;
  188. public EDSParam EDSP
  189. {
  190. get { return this.EdsParam; }
  191. set { this.EdsParam = value; }
  192. }
  193. #region 放大倍数档位切换功能
  194. //档位阈值4个,4个偏差补偿值
  195. private bool bMagComp;
  196. public bool MagComp
  197. {
  198. get { return this.bMagComp; }
  199. set { this.bMagComp = value; }
  200. }
  201. private float fMagRange1;
  202. public float MagRange1
  203. {
  204. get { return this.fMagRange1; }
  205. set
  206. {
  207. if (value < this.fMagRange2)
  208. this.fMagRange1 = value;
  209. }
  210. }
  211. private float fMagCompX1;
  212. public float MagCompX1
  213. {
  214. get { return this.fMagCompX1; }
  215. set { this.fMagCompX1 = value; }
  216. }
  217. private float fMagCompY1;
  218. public float MagCompY1
  219. {
  220. get { return this.fMagCompY1; }
  221. set { this.fMagCompY1 = value; }
  222. }
  223. private float fMagRange2;
  224. public float MagRange2
  225. {
  226. get { return this.fMagRange2; }
  227. set
  228. {
  229. if ((value > this.fMagRange1) && (value < this.fMagRange3))
  230. this.fMagRange2 = value;
  231. }
  232. }
  233. private float fMagCompX2;
  234. public float MagCompX2
  235. {
  236. get { return this.fMagCompX2; }
  237. set { this.fMagCompX2 = value; }
  238. }
  239. private float fMagCompY2;
  240. public float MagCompY2
  241. {
  242. get { return this.fMagCompY2; }
  243. set { this.fMagCompY2 = value; }
  244. }
  245. private float fMagRange3;
  246. public float MagRange3
  247. {
  248. get { return this.fMagRange3; }
  249. set
  250. {
  251. if ((value > this.fMagRange2) && (value < this.fMagRange4))
  252. this.fMagRange3 = value;
  253. }
  254. }
  255. private float fMagCompX3;
  256. public float MagCompX3
  257. {
  258. get { return this.fMagCompX3; }
  259. set { this.fMagCompX3 = value; }
  260. }
  261. private float fMagCompY3;
  262. public float MagCompY3
  263. {
  264. get { return this.fMagCompY3; }
  265. set { this.fMagCompY3 = value; }
  266. }
  267. private float fMagRange4;
  268. public float MagRange4
  269. {
  270. get { return this.fMagRange4; }
  271. set
  272. {
  273. if (value > this.fMagRange3)
  274. this.fMagRange4 = value;
  275. }
  276. }
  277. private float fMagCompX4;
  278. public float MagCompX4
  279. {
  280. get { return this.fMagCompX4; }
  281. set { this.fMagCompX4 = value; }
  282. }
  283. private float fMagCompY4;
  284. public float MagCompY4
  285. {
  286. get { return this.fMagCompY4; }
  287. set { this.fMagCompY4 = value; }
  288. }
  289. #endregion
  290. #region FIB自动亮度对比度调整
  291. //是否调节FIB
  292. private bool IsFIBDo;
  293. public bool FIBDo
  294. {
  295. get { return this.IsFIBDo; }
  296. set { this.IsFIBDo = value; }
  297. }
  298. //是否开启亮度对比度自动调节
  299. private bool IsFIBAutoBC;
  300. public bool FIBAutoBC
  301. {
  302. get { return this.IsFIBAutoBC; }
  303. set { this.IsFIBAutoBC = value; }
  304. }
  305. //关闭亮度对比度时,亮度和对比度的设置值
  306. private float FIBBright;
  307. public float FIBB
  308. {
  309. get { return this.FIBBright; }
  310. set { this.FIBBright = value; }
  311. }
  312. private float FIBContrast;
  313. public float FIBC
  314. {
  315. get { return this.FIBContrast; }
  316. set { this.FIBContrast = value; }
  317. }
  318. //是否开启在其他位置调节亮度对比度功能,再挪回原来位置
  319. #endregion
  320. //ScanRotation修正角度
  321. private float scanRotCor;
  322. public float ScanRotCor
  323. {
  324. get { return this.scanRotCor; }
  325. set { this.scanRotCor = value; }
  326. }
  327. //ScanRotation修正角度
  328. private float pixelSizeCor;
  329. public float PixelSizeCor
  330. {
  331. get { return this.pixelSizeCor; }
  332. set { this.pixelSizeCor = value; }
  333. }
  334. //能谱参数
  335. #region add by sun 2020-12-15 增加不同样品扫描速度参数
  336. //正常情况下默认扫描速度
  337. private String m_ScanSpeedNormal;
  338. public String ScanSpeedNormal
  339. {
  340. get { return this.m_ScanSpeedNormal; }
  341. set { this.m_ScanSpeedNormal = value; }
  342. }
  343. //对焦拍照扫描速度
  344. private String m_ScanSpeedFocus;
  345. public String ScanSpeedFocus
  346. {
  347. get { return this.m_ScanSpeedFocus; }
  348. set { this.m_ScanSpeedFocus = value; }
  349. }
  350. //高倍拍照扫描速度
  351. private String m_ScanSpeedHigh;
  352. public String ScanSpeedHigh
  353. {
  354. get { return this.m_ScanSpeedHigh; }
  355. set { this.m_ScanSpeedHigh = value; }
  356. }
  357. #endregion add by sun 2020-12-15 增加不同样品扫描速度参数end
  358. //add by sun 2020-12-17 增加调试时是否切割开关
  359. private bool m_IsCutingForDebug;
  360. public bool IsCutingForDebug
  361. {
  362. get { return this.m_IsCutingForDebug; }
  363. set { this.m_IsCutingForDebug = value; }
  364. }
  365. //add by sun 2020-12-17 增加调试时是否切割开关 end
  366. //add by zjx 2020-12-18 为了测试只做能谱部分
  367. private bool m_IsonlyEDSForDebug;
  368. public bool IsonlyEDSForDebug
  369. {
  370. get { return this.m_IsonlyEDSForDebug; }
  371. set { this.m_IsonlyEDSForDebug = value; }
  372. }
  373. //add by zjx 2020-12-18 为了测试只做能谱部分 end
  374. //20201221 reduce窗口参数
  375. private int m_ReducePos_X;
  376. public int RedcueX
  377. {
  378. get { return this.m_ReducePos_X; }
  379. set { this.m_ReducePos_X = value; }
  380. }
  381. private int m_ReducePos_Y;
  382. public int RedcueY
  383. {
  384. get { return this.m_ReducePos_Y; }
  385. set { this.m_ReducePos_Y = value; }
  386. }
  387. private int m_ReducePos_W;
  388. public int RedcueW
  389. {
  390. get { return this.m_ReducePos_W; }
  391. set { this.m_ReducePos_W = value; }
  392. }
  393. private int m_ReducePos_H;
  394. public int RedcueH
  395. {
  396. get { return this.m_ReducePos_H; }
  397. set { this.m_ReducePos_H = value; }
  398. }
  399. #endregion
  400. //构造函数
  401. public MeasureParam()
  402. {
  403. Init();
  404. }
  405. public void Init()
  406. {
  407. this.SampleName = @"";
  408. this.PT = false;
  409. this.FIBTemp = @"";
  410. this.PTTemp = @"";
  411. this.FocusMode = 2;
  412. this.AutoFocus = new FocusParam();
  413. this.AutoFocus.TYPE = 1;
  414. this.AutoStigX = new FocusParam();
  415. this.AutoStigX.TYPE = 2;
  416. this.AutoStigY = new FocusParam();
  417. this.AutoStigY.TYPE = 3;
  418. this.FIBFocus = new FocusParam();
  419. this.FIBFocus.TYPE = 4;
  420. this.Title = false;
  421. this.ZDistance = 0;
  422. this.EDS = false;
  423. this.EDSZ = 0.005f;
  424. this.EDSV = 10000;
  425. this.EDSA = 0.0000000005f;
  426. this.EDSP = new EDSParam();
  427. //FIB自动亮度对比度
  428. this.FIBDo = false;
  429. this.FIBAutoBC = false;
  430. this.FIBB = 51;
  431. this.FIBC = 33;
  432. //档位阈值4个,4个偏差补偿值
  433. this.MagComp = false;
  434. this.MagRange1 = 300;
  435. this.MagCompX1 = 0;
  436. this.MagCompY1 = 0;
  437. this.MagRange2 = 700;
  438. this.MagCompX2 = 0;
  439. this.MagCompY2 = 0;
  440. this.MagRange3 = 2000;
  441. this.MagCompX3 = 0;
  442. this.MagCompY3 = 0;
  443. this.MagRange4 = 6000;
  444. this.fMagCompX4 = 0;
  445. this.fMagCompY4 = 0;
  446. this.ScanRotCor = 1;
  447. this.PixelSizeCor = 1;
  448. //add by sun 2020-12-15 增加不同样品扫描速度参数
  449. this.ScanSpeedNormal = "CMD_SCANRATE4";
  450. this.ScanSpeedFocus = "CMD_SCANRATE5";
  451. this.ScanSpeedHigh = "CMD_SCANRATE7";
  452. //add by sun 2020-12-15 增加不同样品扫描速度参数 end
  453. //20201221
  454. this.RedcueX = 192;
  455. this.RedcueY = 192;
  456. this.RedcueW = 256;
  457. this.RedcueH = 256;
  458. }
  459. //XML文件保存测量参数
  460. public override void Serialize(bool isStoring, XmlDocument xml, XmlNode rootNode)
  461. {
  462. Slo sFile = new Slo();
  463. //是否拍照和PT
  464. xBool isPhotograph = new xBool();
  465. xBool ptDepostion = new xBool();
  466. xBool isTilt = new xBool();
  467. xBool isEDS = new xBool();
  468. isTilt.AssignValue(this.Title);
  469. isEDS.AssignValue(this.EDS);
  470. isPhotograph.AssignValue(this.is_Photograph);
  471. ptDepostion.AssignValue(this.m_pt);
  472. sFile.Register("Is_Title", isTilt);
  473. sFile.Register("Is_Photograph", isPhotograph);
  474. sFile.Register("PT_Depostion", ptDepostion);
  475. sFile.Register("Is_EDS", isEDS);
  476. //ELY文件
  477. xString ptELYFile = new xString();
  478. xString fibELYFile = new xString();
  479. ptELYFile.AssignValue(this.m_ptTemp);
  480. fibELYFile.AssignValue(this.m_fibTemp);
  481. sFile.Register("PT_ELYFile", ptELYFile);
  482. sFile.Register("FIB_ELYFile", fibELYFile);
  483. //对焦方式
  484. xInt focusmode = new xInt();
  485. focusmode.AssignValue(this.m_fMode);
  486. sFile.Register("FocusMode", focusmode);
  487. //放大倍数和电压参数
  488. xDouble stretchMagnification = new xDouble();
  489. xDouble locationMagnification = new xDouble();
  490. xDouble locationVoltage = new xDouble();
  491. xDouble photographMagnification = new xDouble();
  492. xDouble photographVoltage = new xDouble();
  493. xDouble fibMagnification = new xDouble();
  494. xDouble ZDistance = new xDouble();
  495. xDouble xEDSZ = new xDouble();
  496. xDouble xEDSV = new xDouble();
  497. xDouble xEDSA = new xDouble();
  498. xEDSZ.AssignValue(this.edsZ);
  499. xEDSV.AssignValue(this.edsV);
  500. xEDSA.AssignValue(this.edsA);
  501. ZDistance.AssignValue(this.ZDistance);
  502. stretchMagnification.AssignValue(this.stretch_Magnification);
  503. locationMagnification.AssignValue(this.location_Magnification);
  504. locationVoltage.AssignValue(this.location_Voltage);
  505. photographMagnification.AssignValue(this.photograph_Magnification);
  506. photographVoltage.AssignValue(this.photograph_Voltage);
  507. fibMagnification.AssignValue(this.fib_Magnification);
  508. sFile.Register("Strectch_Magnification", stretchMagnification);
  509. sFile.Register("Locatio_Magnification", locationMagnification);
  510. sFile.Register("Location_Voltage", locationVoltage);
  511. sFile.Register("Photograph_Magnification", photographMagnification);
  512. sFile.Register("Photograph_Voltage", photographVoltage);
  513. sFile.Register("FIB_Magnification", fibMagnification);
  514. sFile.Register("ZDistance", ZDistance);
  515. sFile.Register("EDSZ", xEDSZ);
  516. sFile.Register("EDSV", xEDSV);
  517. sFile.Register("EDSA", xEDSA);
  518. //校正角度
  519. xDouble correctionAngle = new xDouble();
  520. correctionAngle.AssignValue(this.correction_Angle);
  521. sFile.Register("Correction_Angle", correctionAngle);
  522. //样品名称和厂商
  523. xString sampleType = new xString();
  524. xString _firm = new xString();
  525. sampleType.AssignValue(this.m_SampleName);
  526. _firm.AssignValue(this.firm);
  527. sFile.Register("Sample_Type", sampleType);
  528. sFile.Register("Firm", _firm);
  529. //对焦参数
  530. sFile.Register("Focus_Param", this.focusP);
  531. sFile.Register("FIBFocus_Param", this.FIBFocus);
  532. sFile.Register("StigX_Param", this.AutoStigX);
  533. sFile.Register("StigY_Param", this.AutoStigY);
  534. sFile.Register("EDS_Param", this.EDSP);
  535. //FIB亮度对比
  536. xBool isFIBDo = new xBool();
  537. xBool isFIBAutoBC = new xBool();
  538. xDouble xFIBB = new xDouble();
  539. xDouble xFIBC = new xDouble();
  540. xBool isMagComp = new xBool();
  541. xDouble xMagRange1 = new xDouble();
  542. xDouble xMagCompX1 = new xDouble();
  543. xDouble xMagCompY1 = new xDouble();
  544. xDouble xMagRange2 = new xDouble();
  545. xDouble xMagCompX2 = new xDouble();
  546. xDouble xMagCompY2 = new xDouble();
  547. xDouble xMagRange3 = new xDouble();
  548. xDouble xMagCompX3 = new xDouble();
  549. xDouble xMagCompY3 = new xDouble();
  550. xDouble xMagRange4 = new xDouble();
  551. xDouble xMagCompX4 = new xDouble();
  552. xDouble xMagCompY4 = new xDouble();
  553. isFIBDo.AssignValue(this.FIBDo);
  554. isFIBAutoBC.AssignValue(this.FIBAutoBC);
  555. xFIBB.AssignValue(this.FIBB);
  556. xFIBC.AssignValue(this.FIBC);
  557. isMagComp.AssignValue(this.MagComp);
  558. xMagRange1.AssignValue(this.MagRange1);
  559. xMagCompX1.AssignValue(this.MagCompX1);
  560. xMagCompY1.AssignValue(this.MagCompY1);
  561. xMagRange2.AssignValue(this.MagRange2);
  562. xMagCompX2.AssignValue(this.MagCompX2);
  563. xMagCompY2.AssignValue(this.MagCompY2);
  564. xMagRange3.AssignValue(this.MagRange3);
  565. xMagCompX3.AssignValue(this.MagCompX3);
  566. xMagCompY3.AssignValue(this.MagCompY3);
  567. xMagRange4.AssignValue(this.MagRange4);
  568. xMagCompX4.AssignValue(this.MagCompX4);
  569. xMagCompY4.AssignValue(this.MagCompY4);
  570. sFile.Register("Is_FIBDo", isFIBDo);
  571. sFile.Register("Is_FIBAutoBC", isFIBAutoBC);
  572. sFile.Register("FIB_B", xFIBB);
  573. sFile.Register("FIB_C", xFIBC);
  574. sFile.Register("Mag_Comp", isMagComp);
  575. sFile.Register("Mag_Range1", xMagRange1);
  576. sFile.Register("Mag_CompX1", xMagCompX1);
  577. sFile.Register("Mag_CompY1", xMagCompY1);
  578. sFile.Register("Mag_Range2", xMagRange2);
  579. sFile.Register("Mag_CompX2", xMagCompX2);
  580. sFile.Register("Mag_CompY2", xMagCompY2);
  581. sFile.Register("Mag_Range3", xMagRange3);
  582. sFile.Register("Mag_CompX3", xMagCompX3);
  583. sFile.Register("Mag_CompY3", xMagCompY3);
  584. sFile.Register("Mag_Range4", xMagRange4);
  585. sFile.Register("Mag_CompX4", xMagCompX4);
  586. sFile.Register("Mag_CompY4", xMagCompY4);
  587. //ScanRotate修正
  588. xDouble scanRotate = new xDouble();
  589. scanRotate.AssignValue(this.scanRotCor);
  590. sFile.Register("ScanRotateCorrect", scanRotate);
  591. //PixelSize_Y轴补偿
  592. xDouble pscor = new xDouble();
  593. pscor.AssignValue(this.pixelSizeCor);
  594. sFile.Register("PixelSizeYCorrect", pscor);
  595. //Reduce窗口相关
  596. xInt R_X = new xInt();
  597. R_X.AssignValue(this.RedcueX);
  598. sFile.Register("RedcueX", R_X);
  599. xInt R_Y = new xInt();
  600. R_Y.AssignValue(this.RedcueY);
  601. sFile.Register("RedcueY", R_Y);
  602. xInt R_W = new xInt();
  603. R_W.AssignValue(this.RedcueW);
  604. sFile.Register("RedcueX", R_W);
  605. xInt R_H = new xInt();
  606. R_H.AssignValue(this.RedcueH);
  607. sFile.Register("RedcueX", R_H);
  608. if (isStoring)
  609. {
  610. sFile.Serialize(true, xml, rootNode);
  611. }
  612. else
  613. {
  614. sFile.Serialize(false, xml, rootNode);
  615. this.is_Photograph = isPhotograph.value();
  616. this.m_pt = ptDepostion.value();
  617. this.Title = isTilt.value();
  618. this.EDS = isEDS.value();
  619. this.m_ptTemp = ptELYFile.value();
  620. this.m_fibTemp = fibELYFile.value();
  621. this.m_fMode = focusmode.value();
  622. this.stretch_Magnification = Convert.ToSingle(stretchMagnification.value());
  623. this.location_Magnification = Convert.ToSingle(locationMagnification.value());
  624. this.location_Voltage = Convert.ToSingle(locationVoltage.value());
  625. this.photograph_Magnification = Convert.ToSingle(photographMagnification.value());
  626. this.photograph_Voltage = Convert.ToSingle(photographVoltage.value());
  627. this.correction_Angle = Convert.ToSingle(correctionAngle.value());
  628. this.m_SampleName = sampleType.value();
  629. this.firm = _firm.value();
  630. this.ZDistance = Convert.ToSingle(ZDistance.value());
  631. this.EDSZ = Convert.ToSingle(xEDSZ.value());
  632. this.EDSV = Convert.ToSingle(xEDSV.value());
  633. this.EDSA = Convert.ToSingle(xEDSA.value());
  634. this.IsFIBDo = isFIBDo.value();
  635. this.IsFIBAutoBC = isFIBAutoBC.value();
  636. this.FIBB = Convert.ToSingle(xFIBB.value());
  637. this.FIBC = Convert.ToSingle(xFIBC.value());
  638. this.MagComp = isMagComp.value();
  639. this.MagRange1 = Convert.ToSingle(xMagRange1.value());
  640. this.MagCompX1 = Convert.ToSingle(xMagCompX1.value());
  641. this.MagCompY1 = Convert.ToSingle(xMagCompY1.value());
  642. this.MagRange2 = Convert.ToSingle(xMagRange2.value());
  643. this.MagCompX2 = Convert.ToSingle(xMagCompX2.value());
  644. this.MagCompY2 = Convert.ToSingle(xMagCompY2.value());
  645. this.MagRange3 = Convert.ToSingle(xMagRange3.value());
  646. this.MagCompX3 = Convert.ToSingle(xMagCompX3.value());
  647. this.MagCompY3 = Convert.ToSingle(xMagCompY3.value());
  648. this.MagRange4 = Convert.ToSingle(xMagRange4.value());
  649. this.fMagCompX4 = Convert.ToSingle(xMagCompX4.value());
  650. this.MagCompY4 = Convert.ToSingle(xMagCompY4.value());
  651. this.ScanRotCor = Convert.ToSingle(scanRotate.value());
  652. this.PixelSizeCor = Convert.ToSingle(pscor.value());
  653. this.RedcueX = Convert.ToInt32(R_X.value());
  654. this.RedcueY = Convert.ToInt32(R_Y.value());
  655. this.RedcueW = Convert.ToInt32(R_W.value());
  656. this.RedcueH = Convert.ToInt32(R_H.value());
  657. }
  658. }
  659. }
  660. }