ecg_draw.h

来自「一个开源的心电图测量仪驱动和应用软件,可记录」· C头文件 代码 · 共 45 行

H
45
字号
// ECG_DRAW.h: interface for the ECG_DRAW class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ECG_DRAW_H__3400DA62_9119_11D7_8A9A_F26D4DCAD47A__INCLUDED_)
#define AFX_ECG_DRAW_H__3400DA62_9119_11D7_8A9A_F26D4DCAD47A__INCLUDED_

#include "Person.h"	// Added by ClassView
#include "ECG_Info.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class AFX_EXT_CLASS ECG_DRAW  
{
public:
	void SetEcgInfo(CString info);
	void PrintBMP(CPerson* lpperson);
	void SaveBMP();
	void SetArr(double* srcECG,double *srcQRS,int lenght);
	void SetEcgDrawRect(CDC* pDC,CRect rDrawRect,int from,int to);
	ECG_DRAW();
	virtual ~ECG_DRAW();

private:
	int DrawPersonalInfo(CDC *pDC, int x, int y,CPerson* lpperson);

	CPerson person;
	int i_to;
	int i_from;
	void DrawFromTo(CDC* pDC,int d);
	void DrawQRS(CDC* pDC,int d);
	void DrawText(CDC* pDC,int d);
	CString s_BmpInfo;
	void DrawEcg(CDC* pDC,CRect rRect,int d);
	void DrawGrid(CDC* pDC,CRect rRect,int d,COLORREF color);
	float ECG[2500];
	float QRS[2500];
	void Draw();
	CRect m_rDrawRect;
	CDC* DC;
};

#endif // !defined(AFX_ECG_DRAW_H__3400DA62_9119_11D7_8A9A_F26D4DCAD47A__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?