views.h

来自「频谱分析仪Frequency Analyzer」· C头文件 代码 · 共 37 行

H
37
字号
#if !defined VIEWS_H
#define VIEWS_H

#include "controls.h"
#include "canvas.h"

class Fft;
class SampleIter;

class ViewFreq: public SimpleControl
{
public:
    ViewFreq (HWND hwndParent, int id) 
        : SimpleControl (hwndParent, id),
          _xRecord(0) {}
    void Update (Fft const & fftTransformer);
    void Clear ();
    void Fake ();
private:
    int         _xRecord;
};

class ViewWave: public SimpleControl
{
public:
    ViewWave (HWND hwndParent, int id, int cSamples) 
        : SimpleControl (hwndParent, id),
          _poly (cSamples),		  
          _penGreen (RGB(0, 255, 128))		  
    {}
    void Update (Fft const & fftTransformer);
private:
    PolyLine    _poly;
    Pen         _penGreen;	
};

#endif

⌨️ 快捷键说明

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