CurveCalibrator.h 920 Bytes
Newer Older
1 2 3 4 5 6 7
#ifndef CURVECALIBRATOR_H
#define CURVECALIBRATOR_H

#include <QWidget>
#include <QVector>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
8
//#include <qwt_array.h>
9 10 11 12
#include <QGridLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
13 14 15 16 17
#include <QPen>
#include <QColor>
#include <QString>
#include <QSignalMapper>
#include <QDebug>
18

19 20 21
#include "AbstractCalibrator.h"

class CurveCalibrator : public AbstractCalibrator
22 23 24 25
{
Q_OBJECT
public:
    explicit CurveCalibrator(QString title = QString(), QWidget *parent = 0);
26
    ~CurveCalibrator();
27 28

    void set(const QVector<float> &data);
29 30
//signals:
//    void setpointChanged(int setpoint, float raw);
31 32 33

protected slots:
    void setSetpoint(int setpoint);
34 35

protected:
36 37
    QVector<double> *setpoints;
    QVector<double> *positions;
38
//    QwtArrayData
39 40
    QwtPlot *plot;
    QwtPlotCurve *curve;
41 42

    QSignalMapper *signalMapper;
43 44 45
};

#endif // CURVECALIBRATOR_H