123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- using OTSDataType;
- using OTSModelSharp.ResourceManage;
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Runtime.InteropServices;
- namespace OTSMeasureApp
- {
-
- //MeasureApp 给 SoluWindow 发送添加样品的样品信息
- public class CTreeSampleParam
- {
- public string sSampleTitleName; //样品树显示的样品标题名称
- public string sWorkSampleName; // 工作样品名称
- public bool bSwitch; //样品执行开关
- public bool bParamLock; //样品测量参数锁
- };
- //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名,测量区域信息
- public struct SampleMeasurePara
- {
- public string sSampleName;
- public string sampleHoleName;
- public ShapeType iShape; //测量区域形状
- //public List<Point> PolygonPointRegion;//多边形点集合
- //public List<PointF> PolygonPointRegionF;//多边形点集合
- public List<PointF> DrawPolygonPointList;//多边形点集合
- public RectangleF MeasureRect; //测量区域大小
- };
- //样品属性数据
- public class SamplePropertyData
- {
- public OTS_SAMPLE_PROP_GRID_ITEMS iSampleId; //样品属性ID
- public String sSCaptionName; //样品标题名
- public OTS_ITEM_TYPES iSampleValType; //样品标题名对应值的类型
- public Object SampleVal; //样品标题名对应值,全部是string
- public List<String> comboDownList=new List<string>();//如果iSampleValType是combobox则在此处存储下拉列表
- //public int sampleValueIndex;//属性值对应的枚举列表中的索引值
- public bool bReadOnly; //值的类型
- public string sDescriptionInfo; //描述信息
- }
- //};
- public class SamplePropertyDataGroup //样品信息
- {
- public OTS_SAMPLE_PROP_GRID_ITEM_GROUPS GroupId;
- public String sTitle; //样品名称
-
- public List<SamplePropertyData> SampleDataList=new List<SamplePropertyData> (); //样品属性数据
- };
- public class OTSSamplePropertyInfo
- {
- const String General_Title = "通用参数组";
- const String Image_Title = "图像扫描参数组";
- const String Image_Process_Title = "图像处理参数组";
- const String XRay_Title = "X-Ray参数组";
- const String SemData_Title = "SEM数据参数组";
- const String MeasureStatu_Title = "测量状态参数组";
- const String MeasureRet_Title = "测量结果参数组";
- public List<SamplePropertyDataGroup> SampleDataGrps;
- //构造函数
- public OTSSamplePropertyInfo()
- {
- SMeasurePara = new SampleMeasurePara();
- SampleDataList = new List<SamplePropertyData>();
- TSampleParam = new CTreeSampleParam();
-
- SampleDataGrps = new List<SamplePropertyDataGroup>();
- }
- //样品属性数据
- public List<SamplePropertyData> SampleDataList;//保持一个所有条目列表,目的为了兼容以前的代码
-
-
- public void AddASampleDataGrp(SamplePropertyDataGroup g)
- {
- SampleDataGrps.Add(g);
- SampleDataList .AddRange(g.SampleDataList);//保持一个所有条目列表目的为了兼容以前的代码
- }
- public List<SamplePropertyDataGroup> GetSampleDataGroups()
- {
- return SampleDataGrps;
- }
- public String sSampleSoluName; //样品的标题名 (Treeview的根节点名)
- public bool bSwitch; //样品参数锁,默认都是false, 当执行测量完成后,设置为true,则客户不允许修改GRID等数据。
- //MeasureApp 给SampleWindow窗口发送添加样品的样品孔名,测量区域信息
- public SampleMeasurePara SMeasurePara;
- //public SampleNodeMeaInfo st_SNodeMeaInfo;
- public CTreeSampleParam TSampleParam;
- };
- }
|