This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Neuro/gui/NeuroUI/errorplotter.h

34 lines
560 B
C++

#ifndef ERRORPLOTTER_H
#define ERRORPLOTTER_H
#include <QWidget>
class ErrorPlotter : public QWidget
{
Q_OBJECT
private:
std::list<double> m_errorValues;
double m_maxErrorValue;
size_t m_bufferSize = 10000;
public:
explicit ErrorPlotter(QWidget *parent = 0);
QSize minimumSizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const Q_DECL_OVERRIDE;
void clear();
protected:
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
signals:
public slots:
void addErrorValue(double errorValue);
};
#endif // ERRORPLOTTER_H