-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
124 lines (84 loc) · 2.28 KB
/
mainwindow.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <calib.h>
#include <capture.h>
#include <QSerialPort>
#include <QCameraInfo>
#include <QSerialPortInfo>
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <point_cloud.h>
#include <exportfile.h>
#include <QTimer>
#include <QtDataVisualization>
#include <QMetaType>
#include <QJsonObject>
using namespace QtDataVisualization;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
Q_DECLARE_METATYPE(std::vector<cv::Point3f>)
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
Calib *calib;
Capture *capture;
Exportfile *exportfile;
QSerialPort *m_serial;
QTimer *timer;
QTimer *timer1;
cv::Mat image;
Camera cam;
std::vector<cv::Point3f> pts;
QString dir;
// point cloud opengl
QWidget *graphContainer;
QScatterDataProxy *proxy;
Q3DScatter *scatter;
QScatter3DSeries *ser;
void initGraph3D();
float brightness, contrast, saturation;
private slots:
void on_Calib_clicked();
void on_port_clicked();
void update_window();
void update_window1();
void on_camera_clicked();
void on_export_file_clicked();
void on_capture_clicked();
void addPoint(std::vector<cv::Point3f>);
void on_test_clicked();
void on_actionData_camera_triggered();
void on_scan_fast_clicked();
void on_Brightness_valueChanged(int value);
void on_saturation_valueChanged(int value);
void on_Contrast_valueChanged(int value);
void on_exposure_valueChanged(int value);
void on_checkBox_3_stateChanged(int arg1);
void on_checkBox_stateChanged(int arg1);
void on_checkBox_2_stateChanged(int arg1);
void on_actionLaser_triggered();
public slots:
void slot_begin_camera();
void slot_control9();
void slot_remain_camera(int);
void slot_complete_camera();
void motor5L();
void slot_begin_laser();
void slot_laser_off();
void slot_laser_on();
void slot_complete_laser();
void slot_begin_turntable();
void slot_complete_turntable();
void slot_control_3turntable();
void slot_capture();
void read();
signals:
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H