38 lines
561 B
C++
38 lines
561 B
C++
#ifndef DISPLAY_H
|
|
#define DISPLAY_H
|
|
|
|
#include <QDialog>
|
|
#include <QVector>
|
|
|
|
namespace Ui {
|
|
class display;
|
|
}
|
|
|
|
class Display : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Display(QWidget *parent = 0);
|
|
~Display();
|
|
|
|
|
|
void plot(const QVector<unsigned short> &data);
|
|
void plot();
|
|
void setTitle(QString title);
|
|
|
|
QVector<unsigned short> buffer;
|
|
|
|
public slots:
|
|
void showEvent(QShowEvent *event);
|
|
protected:
|
|
int nrPoints = 0;
|
|
QVector<double> dataX;
|
|
QVector<double> dataY;
|
|
private:
|
|
Ui::display *ui;
|
|
|
|
};
|
|
|
|
#endif // DISPLAY_H
|