incrementalplot.h

来自「软件无线电的平台」· C头文件 代码 · 共 46 行

H
46
字号
#ifndef _INCREMENTALPLOT_H_#define _INCREMENTALPLOT_H_ 1#include <qintdict.h>#include <qwt_array.h>#include <qwt_plot.h>class CurveData{    // A container class for growing datapublic:    CurveData();    void append(double *x, double *y, int count);    int count() const;    int size() const;    double *x() const;    double *y() const;private:    int d_count;    QwtArray<double> d_x;    QwtArray<double> d_y;};class IncrementalPlot : public QwtPlot{    Q_OBJECTpublic:    IncrementalPlot(QWidget *parent = 0, const char *name = 0);    virtual ~IncrementalPlot();    void appendCurvePoint(long curveId, double x, double y);    void appendCurveData(long curveId,        double *x, double *y, int size);    void removeCurveData(long curveId);private:    QIntDict<CurveData> d_curveDictionary;};#endif // _INCREMENTALPLOT_H_

⌨️ 快捷键说明

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