You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#pragma once
|
|
#include "Observer.h"
|
|
|
|
enum eProgressType
|
|
{
|
|
_ProgressType_NULL=0,
|
|
_ProgressType_WaitAnnealRoomPressureLow,//等待腔室气压降低
|
|
_ProgressType_WaitAnnealRoomO2Condition,//等待腔室O2满足条件
|
|
_ProgressType_AnnealProcess,//工艺过程
|
|
_ProgressType_EdiCheck_WaitPowReady,//复检等待功率稳定
|
|
_ProgressType_EdiCheck_CollectData,//采集功率数据
|
|
_ProgressType_BeamCheck_WaitBeamReady,//beam采集等待Beamgage
|
|
_ProgressType_BeamCheck_CollectData,//采集beam 数据
|
|
|
|
_ProgressType_SetLaserDevicePar,//设置激光器的参数
|
|
};
|
|
|
|
//加工进度管理
|
|
class CProgressMgr
|
|
{
|
|
public:
|
|
CProgressMgr(void);
|
|
~CProgressMgr(void);
|
|
void SetWorkProgress(CProgressCtrl *p){m_WorkProgress = p;};
|
|
void SetCurProgress(int cur,int total);
|
|
void SetCurProgress(double val);
|
|
void ResetStopState();
|
|
bool GetStopState();
|
|
void SetCurProgressVal(eProgressType ProgressType, double CurVal, double TotalVal);
|
|
void GetCurProgressVal(CString &ProgressTypeName,int &ProgressVal);
|
|
private:
|
|
CProgressCtrl *m_WorkProgress;
|
|
|
|
eProgressType m_CurProgressType;//当前的进度类型
|
|
int m_CurProgressVal;//当前的进度值0~100
|
|
};
|
|
|
|
extern CProgressMgr gProgressMgr; |