-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.h
More file actions
49 lines (37 loc) · 896 Bytes
/
plot.h
File metadata and controls
49 lines (37 loc) · 896 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
38
39
40
41
42
43
44
45
46
47
48
#ifndef PLOT_H
#define PLOT_H
#include <QGridLayout>
#include <QWidget>
#include <qwt_plot_zoomer.h>
#include <qwt_plot_panner.h>
#include <qwt_plot_renderer.h>
// This class defines the complete plot area with attached controls
class QwtPlotZoomer;
class QLabel;
// class QwtPlotPicker;
// class QwtPlotPanner;
class PxPlot; // the actual graph
class Curve;
class Plot : public QWidget
{
Q_OBJECT
public:
Plot(QWidget *parent = nullptr);
bool addDataFile(const QString & name, const QString & format);
QList<Curve*> curveList();
bool removeCurve(Curve* c);
public slots:
// void moved(const QPoint &);
void fexport();
void print();
// void exportSVG();
// void enableZoomMode(bool);
void zoomToFit();
private:
PxPlot *px;
QwtPlotZoomer *zoomer;
QLabel *label;
// QwtPlotPicker *picker;
QwtPlotPanner *panner;
};
#endif