OTSSampleMeasureInfo.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 sampleHoleName;
  22. public ShapeType iShape; //测量区域形状
  23. //public List<Point> PolygonPointRegion;//多边形点集合
  24. //public List<PointF> PolygonPointRegionF;//多边形点集合
  25. public List<PointF> DrawPolygonPointList;//多边形点集合
  26. public RectangleF MeasureRect; //测量区域大小
  27. };
  28. //样品属性数据
  29. public class SamplePropertyData
  30. {
  31. public OTS_SAMPLE_PROP_GRID_ITEMS iSampleId; //样品属性ID
  32. public String sSCaptionName; //样品标题名
  33. public OTS_ITEM_TYPES iSampleValType; //样品标题名对应值的类型
  34. public Object SampleVal; //样品标题名对应值,全部是string
  35. public List<String> comboDownList=new List<string>();//如果iSampleValType是combobox则在此处存储下拉列表
  36. //public int sampleValueIndex;//属性值对应的枚举列表中的索引值
  37. public bool bReadOnly; //值的类型
  38. public string sDescriptionInfo; //描述信息
  39. }
  40. //};
  41. public class SamplePropertyDataGroup //样品信息
  42. {
  43. public OTS_SAMPLE_PROP_GRID_ITEM_GROUPS GroupId;
  44. public String sTitle; //样品名称
  45. public List<SamplePropertyData> SampleDataList=new List<SamplePropertyData> (); //样品属性数据
  46. };
  47. public class OTSSamplePropertyInfo
  48. {
  49. const String General_Title = "通用参数组";
  50. const String Image_Title = "图像扫描参数组";
  51. const String Image_Process_Title = "图像处理参数组";
  52. const String XRay_Title = "X-Ray参数组";
  53. const String SemData_Title = "SEM数据参数组";
  54. const String MeasureStatu_Title = "测量状态参数组";
  55. const String MeasureRet_Title = "测量结果参数组";
  56. public List<SamplePropertyDataGroup> SampleDataGrps;
  57. //构造函数
  58. public OTSSamplePropertyInfo()
  59. {
  60. SMeasurePara = new SampleMeasurePara();
  61. SampleDataList = new List<SamplePropertyData>();
  62. TSampleParam = new CTreeSampleParam();
  63. SampleDataGrps = new List<SamplePropertyDataGroup>();
  64. }
  65. //样品属性数据
  66. public List<SamplePropertyData> SampleDataList;//保持一个所有条目列表,目的为了兼容以前的代码
  67. public void AddASampleDataGrp(SamplePropertyDataGroup g)
  68. {
  69. SampleDataGrps.Add(g);
  70. SampleDataList .AddRange(g.SampleDataList);//保持一个所有条目列表目的为了兼容以前的代码
  71. }
  72. public List<SamplePropertyDataGroup> GetSampleDataGroups()
  73. {
  74. return SampleDataGrps;
  75. }
  76. public String sSampleSoluName; //样品的标题名 (Treeview的根节点名)
  77. public bool bSwitch; //样品参数锁,默认都是false, 当执行测量完成后,设置为true,则客户不允许修改GRID等数据。
  78. //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名,测量区域信息
  79. public SampleMeasurePara SMeasurePara;
  80. //public SampleNodeMeaInfo st_SNodeMeaInfo;
  81. public CTreeSampleParam TSampleParam;
  82. };
  83. }