MsrThreadClr.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #pragma once
  2. #include "ProjMgrCLR.h"
  3. #include "MsrThreadStatusClr.h"
  4. #include "SEMDataGnrClr.h"
  5. #include "MsrThread.h"
  6. namespace OTSINTERFACE {
  7. using namespace System;
  8. using namespace OTSMODEL;
  9. public ref class CMsrThreadClr : public Object
  10. {
  11. public:
  12. CMsrThreadClr();
  13. ~CMsrThreadClr();
  14. !CMsrThreadClr();
  15. CMsrThreadClr(CMsrThreadPtr);
  16. // measurement
  17. void DoMeasure();
  18. // hole preview
  19. void DoHolePreview(int a_nHoleID, CDomainClr^ a_pMeasureArea);
  20. //进行参数检查,弹出参数检查对话框
  21. // 输入:
  22. // CProjMgrClr^ a_pProjMgrFile, 需要检查的工作文件。
  23. // System::Collections::Generic::List<COTSSampleClr^>^% 返回值,可以测量的样品列表
  24. // bool a_bAuto, 是否需要自动检查参数,在进行样品测量之前要进行自动参数检查。
  25. // False,在点击运行按钮 ;true, 用户点击检查参数按钮
  26. // check measure parameters and init the measureable samplelists , meanwhile give out the measureable sampleList.
  27. bool CheckMeasureParam(CProjMgrClr^ a_pProjMgrFile, COTSSamplesListClr^% a_listMeasurableSample, bool a_bAuto);
  28. bool Init(CProjMgrClr^ a_pProjMgrFile, COTSSamplesListClr^ a_listMeasuableSamples);
  29. bool Init(CProjMgrClr^ a_pProjMgrFile);
  30. // send message to App main thread
  31. void GetMeasureAppFormName(String^ csFormName);
  32. // set measure thread
  33. void SetMsrThreadStatus(CMsrThreadStatusClr^ a_pThreadStatus);
  34. CMsrThreadStatusClr^ GetMsrThreadStatus();
  35. void SetMsrLoopStatus(int a_nMsrLoopStatus);
  36. bool CheckProjFileSave();
  37. CProjMgrClr^ GetProjMgr();
  38. void SetProjMgr(CProjMgrClr^ a_pProjMgrFile);
  39. //void FreeDll();
  40. //Get STDId
  41. int GetClassifyParticleId(CPartSTDDataClr^ a_pPartSTDData, int steelTech, String^ a_ElementName);
  42. protected:
  43. CMsrThreadPtr* m_pMsrThread;
  44. };
  45. }