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

📄 fftview.h

📁 数字信号处理的快速傅里叶变换(FFT)代码
💻 H
字号:
// FFTView.h : interface of the CFFTView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FFTVIEW_H__42BDBDB0_FC5B_4AF6_A6C9_5B01C00232D0__INCLUDED_)
#define AFX_FFTVIEW_H__42BDBDB0_FC5B_4AF6_A6C9_5B01C00232D0__INCLUDED_

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


class CFFTView : public CView
{
protected: // create from serialization only
	CFFTView();
	DECLARE_DYNCREATE(CFFTView)

// Attributes
public:
	CFFTDoc* GetDocument();

private:
	UINT orgX,orgYxn;	//坐标原点
	UINT orgYFAw,orgYFPw;
	UINT orgYDAw,orgYDPw;

// Operations
private:
	void StartDraw(CDC*pDC,CFFTDoc*pDoc);

public:
	void DrawCordD(CDC* pDC,const UINT orgX,const UINT orgY);//画双向坐标
	void DrawCordS(CDC* pDC,const UINT orgX,const UINT orgY);//画单向坐标
	void DrawXn(CDC* pDC,const double xn,const UINT n);	//画时域序列
	void DrawPw(CDC* pDC,const double Ak,const UINT k); //画相频序列
	void DrawAw(CDC* pDC,const double Pk,const UINT k); //画幅频序列

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFFTView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CFFTView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in FFTView.cpp
inline CFFTDoc* CFFTView::GetDocument()
   { return (CFFTDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_FFTVIEW_H__42BDBDB0_FC5B_4AF6_A6C9_5B01C00232D0__INCLUDED_)

⌨️ 快捷键说明

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