| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #pragma once
- #include "ProjMgrCLR.h"
- #include "MsrThreadStatusClr.h"
- #include "SEMDataGnrClr.h"
- #include "MsrThread.h"
- namespace OTSINTERFACE {
- using namespace System;
- using namespace OTSMODEL;
- public ref class CMsrThreadClr : public Object
- {
- public:
- CMsrThreadClr();
- ~CMsrThreadClr();
- !CMsrThreadClr();
- CMsrThreadClr(CMsrThreadPtr);
- // measurement
- void DoMeasure();
- // hole preview
- void DoHolePreview(int a_nHoleID, CDomainClr^ a_pMeasureArea);
- //进行参数检查,弹出参数检查对话框
- // 输入:
- // CProjMgrClr^ a_pProjMgrFile, 需要检查的工作文件。
- // System::Collections::Generic::List<COTSSampleClr^>^% 返回值,可以测量的样品列表
- // bool a_bAuto, 是否需要自动检查参数,在进行样品测量之前要进行自动参数检查。
- // False,在点击运行按钮 ;true, 用户点击检查参数按钮
- // check measure parameters and init the measureable samplelists , meanwhile give out the measureable sampleList.
- bool CheckMeasureParam(CProjMgrClr^ a_pProjMgrFile, COTSSamplesListClr^% a_listMeasurableSample, bool a_bAuto);
- bool Init(CProjMgrClr^ a_pProjMgrFile, COTSSamplesListClr^ a_listMeasuableSamples);
- bool Init(CProjMgrClr^ a_pProjMgrFile);
-
- // send message to App main thread
- void GetMeasureAppFormName(String^ csFormName);
- // set measure thread
- void SetMsrThreadStatus(CMsrThreadStatusClr^ a_pThreadStatus);
- CMsrThreadStatusClr^ GetMsrThreadStatus();
- void SetMsrLoopStatus(int a_nMsrLoopStatus);
-
-
- bool CheckProjFileSave();
- CProjMgrClr^ GetProjMgr();
- void SetProjMgr(CProjMgrClr^ a_pProjMgrFile);
- //void FreeDll();
- //Get STDId
- int GetClassifyParticleId(CPartSTDDataClr^ a_pPartSTDData, int steelTech, String^ a_ElementName);
- protected:
-
-
- CMsrThreadPtr* m_pMsrThread;
- };
- }
|