ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
d_viewer_plot.h
Go to the documentation of this file.
1 /************************************
2  * added: 11.03.2019 *
3  * author: David Eilenstein *
4  * contact: D.Eilenstein@gsi.de *
5  * project: ImageD *
6  * facility: GSI Darmstadt, Ger *
7  ************************************/
8 
9 #ifndef D_VIEWER_PLOT_H
10 #define D_VIEWER_PLOT_H
11 
12 //own
13 #include <d_enum.h>
14 #include <d_error_handler.h>
15 #include <d_math.h>
16 #include <d_plot.h>
17 
18 //general
19 #include <iostream>
20 #include <vector>
21 
22 //Qt
23 #include <QObject>
24 #include <QPixmap>
25 #include <QString>
26 #include <QDebug>
27 #include <QMessageBox>
28 #include <QFileDialog>
29 #include <QFileInfo>
30 #include <QDir>
31 #include <QElapsedTimer>
32 #include <QGridLayout>
33 
34 //Qt-Charts
35 #include <QtCharts/QChartView>
36 #include <QtCharts/QChart>
37 
38 //openCV
39 #include <opencv2/core/core.hpp>
40 #include <opencv2/highgui/highgui.hpp>
41 #include <opencv2/imgproc/imgproc.hpp>
42 
43 //namespaces
44 using namespace std;
45 //using namespace cv; (prohibited because of abigous names with qtdatavisualization)
46 #include <d_opencv_typedefs.h>
47 
52 class D_Viewer_Plot : public QWidget
53 {
54  Q_OBJECT
55 
56 public:
57  D_Viewer_Plot();
58  D_Viewer_Plot(QGridLayout *pGL);
59  void set_Layout(QGridLayout *pGL);
60 
61  //int Plot_X1D_Y1D(vector<double> vX, vector<double> vY, int mode, QString QS_Title, QString QS_X, QString QS_Y, QString QS_Series);
62 
63 private:
64 
65 
66 private slots:
67 
68 
69 signals:
70 
71 private:
72  //ui
73  QGridLayout *Layout;
74  QChartView *pChartView;
75 
76  //data & transformation
77  //x
78  vector<double> *vX;
79  vector<vector<double>> *vvX;
80  int trans_x;
81  double min_x;
82  double min_x_trans;
83  double max_x;
84  double max_x_trans;
85  //y
86  vector<double> *vY;
87  vector<vector<double>> *vvY;
88  int trans_y;
89  double min_y;
90  double min_y_trans;
91  double max_y;
92  double max_y_trans;
93 
94 
95  bool state_GL_set = false;
96 };
97 
98 #endif // D_VIEWER_PLOT_H
d_math.h
d_plot.h
D_Viewer_Plot::set_Layout
void set_Layout(QGridLayout *pGL)
Definition: d_viewer_plot.cpp:21
d_viewer_plot.h
D_Viewer_Plot::D_Viewer_Plot
D_Viewer_Plot()
Definition: d_viewer_plot.cpp:11
d_opencv_typedefs.h
d_enum.h
d_error_handler.h
D_Viewer_Plot
The D_Viewer_Plot class WIP.
Definition: d_viewer_plot.h:53