⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simulationview.h

📁 这是一个在wince下用evc开发的ad信号采集与显示以及信号模拟与分析的程序源码
💻 H
字号:
// SimulationView.h : interface of the CSimulationView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SIMULATIONVIEW_H__B3EADC6D_B163_495D_A0EA_9421AC877A79__INCLUDED_)
#define AFX_SIMULATIONVIEW_H__B3EADC6D_B163_495D_A0EA_9421AC877A79__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000


class CSimulationView : public CScrollView
{
protected: // create from serialization only
	CSimulationView();
	DECLARE_DYNCREATE(CSimulationView)

// Attributes
public:
	CSimulationDoc* GetDocument();

public:
	int		m_Pages;			//当前显示的页码号
	int		m_MaxPages;			//总的显示页数,针对原有数据波形显示
		
	CFile	SRFile;				//用于保存剪力数据的文件类索引
	CFile	WTFile;				//用于保存重力数据的文件类索引

	CWinThread* pReadThread;	//数据采集线程指针
	CWinThread* pShowThread;	//动态波形显示线程指针
	
	BOOL	m_bDataCollect;		//数据采集启动标志
	BOOL	m_bShowStanData;    //显示载入的标准数据曲线标志
	BOOL    m_bShowSimuData;    //显示模拟信号数据曲线标志 
// Operations
public:
	//原有数据波形显示函数
	void DrawWave(CDC* pDC);
	
	//将采集的剪力和重力数据保存到文件
	void SaveDataToFile(unsigned short* pSRBuffer,int SRLen,unsigned short* pWTBuffer,int WTLen);

	//动态显示采集到的剪力、重力以及合力数据曲线
	void DynamicShowWave(CDC* pDC);

	//保存合力数据至文件
	void SaveCOData();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSimulationView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSimulationView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSimulationView)
	afx_msg void OnInit();
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnLoad();
	afx_msg void OnSimulate();
	afx_msg void OnShowRealdata();
	afx_msg void OnShowSimudata();
	afx_msg void OnShowSensordata();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnAppExit();
	afx_msg void OnJudge();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SimulationView.cpp
inline CSimulationDoc* CSimulationView::GetDocument()
   { return (CSimulationDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SIMULATIONVIEW_H__B3EADC6D_B163_495D_A0EA_9421AC877A79__INCLUDED_)

⌨️ 快捷键说明

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