-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotter.h
More file actions
37 lines (28 loc) · 791 Bytes
/
plotter.h
File metadata and controls
37 lines (28 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PLOTTER_H
#define PLOTTER_H
#include <QWidget>
#include <map>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
class QVBoxLayout;
long long int BinArrToDec(std::vector<double> d);
class plotter : public QWidget
{
Q_OBJECT
public:
plotter(QWidget *parent = 0);
void calculate(long n, char * name);
void changeCurve(QwtPlotCurve::CurveStyle n);
public slots:
void save();
// void update(double * xval, double * yval, long long size);
void update(const QVector<QPointF> & data);
void update();
private:
QwtPlot plot;
QwtPlotCurve curve;
std::map<long long int, long, std::less<long long int> > distrib;
std::map<long long int, long, std::less<long> >::iterator iter;
QVBoxLayout *layout;
};
#endif // PLOTTER_H