OTSSampleMeasureInfo.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. using OTSDataType;
  2. using OTSModelSharp.ResourceManage;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Drawing;
  6. using System.Runtime.InteropServices;
  7. namespace OTSMeasureApp
  8. {
  9. //MeasureApp 给 SoluWindow 发送添加样品的样品信息
  10. public class CTreeSampleParam
  11. {
  12. public string sSampleTitleName; //样品树显示的样品标题名称
  13. public string sWorkSampleName; // 工作样品名称
  14. public bool bSwitch; //样品执行开关
  15. public bool bParamLock; //样品测量参数锁
  16. };
  17. //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名,测量区域信息
  18. public struct SampleMeasurePara
  19. {
  20. public string sSampleName;
  21. public string sHoleName;
  22. public int iShape; //测量区域形状
  23. public List<Point> PolygonPointRegion;//多边形点集合
  24. public List<PointF> PolygonPointRegionF;//多边形点集合
  25. public List<PointF> DrawPolygonPointRegionF;//多边形点集合
  26. public Rectangle MeasureRect; //测量区域大小
  27. };
  28. //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名信息
  29. public struct SampleHolePara
  30. {
  31. public string sHoleName;
  32. public int iShape;
  33. //样品孔大小
  34. public Rectangle SampleHoleRect;
  35. };
  36. //样品属性数据
  37. public class SamplePropertyData
  38. {
  39. public OTS_SAMPLE_PROP_GRID_ITEMS iSampleId; //样品属性ID
  40. public String sSCaptionName; //样品标题名
  41. public OTS_ITEM_TYPES iSampleValType; //样品标题名对应值的类型
  42. public Object SampleVal; //样品标题名对应值,全部是string
  43. public List<String> comboDownList=new List<string>();//如果iSampleValType是combobox则在此处存储下拉列表
  44. //public int sampleValueIndex;//属性值对应的枚举列表中的索引值
  45. public bool bReadOnly; //值的类型
  46. public string sDescriptionInfo; //描述信息
  47. }
  48. //public class SampleNodeMeaInfo //样品信息
  49. //{
  50. // public String sSampleName; //样品名称
  51. // public bool bSwitch; //样品执行开关
  52. // public List<SampleData> SampleDataList; //样品属性数据
  53. //};
  54. public class SamplePropertyDataGroup //样品信息
  55. {
  56. public OTS_SAMPLE_PROP_GRID_ITEM_GROUPS GroupId;
  57. public String sTitle; //样品名称
  58. public List<SamplePropertyData> SampleDataList=new List<SamplePropertyData> (); //样品属性数据
  59. };
  60. public class OTSSamplePropertyInfo
  61. {
  62. const String General_Title = "通用参数组";
  63. const String Image_Title = "图像扫描参数组";
  64. const String Image_Process_Title = "图像处理参数组";
  65. const String XRay_Title = "X-Ray参数组";
  66. const String SemData_Title = "SEM数据参数组";
  67. const String MeasureStatu_Title = "测量状态参数组";
  68. const String MeasureRet_Title = "测量结果参数组";
  69. public List<SamplePropertyDataGroup> SampleDataGrps;
  70. //构造函数
  71. public OTSSamplePropertyInfo()
  72. {
  73. SMeasurePara = new SampleMeasurePara();
  74. SampleDataList = new List<SamplePropertyData>();
  75. TSampleParam = new CTreeSampleParam();
  76. SampleDataGrps = new List<SamplePropertyDataGroup>();
  77. }
  78. //样品属性数据
  79. public List<SamplePropertyData> SampleDataList;//保持一个所有条目列表,目的为了兼容以前的代码
  80. public void AddASampleDataGrp(SamplePropertyDataGroup g)
  81. {
  82. SampleDataGrps.Add(g);
  83. SampleDataList .AddRange(g.SampleDataList);//保持一个所有条目列表目的为了兼容以前的代码
  84. }
  85. public List<SamplePropertyDataGroup> GetSampleDataGroups()
  86. {
  87. return SampleDataGrps;
  88. }
  89. public String sSampleSoluName; //样品的标题名 (Treeview的根节点名)
  90. public bool bSwitch; //样品参数锁,默认都是false, 当执行测量完成后,设置为true,则客户不允许修改GRID等数据。
  91. //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名,测量区域信息
  92. public SampleMeasurePara SMeasurePara;
  93. //public SampleNodeMeaInfo st_SNodeMeaInfo;
  94. public CTreeSampleParam TSampleParam;
  95. };
  96. }