/
screenwidget.h
78 lines (45 loc) · 1.09 KB
/
screenwidget.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
#ifndef __screenwidget_h
#define __screenwidget_h
//#include <QGLWidget>
#include <QtWidgets>
class PaintHelper;
class QLabel;
class QPaintEvent;
class QWidget;
class ScreenWidget : public QWidget
{
Q_OBJECT
public:
ScreenWidget(PaintHelper *helper, QWidget *parent);
double get_redscale_factor();
void setMousexy(QMouseEvent* event);
void setEulerPaintHelper();
void rotate();
void refresh();
public slots:
void animate();
protected:
void paintEvent(QPaintEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
public:
PaintHelper *paint_helper;
QPoint pmouse_akt;
int elapsed;
bool mouse_moved;
bool colmat_valid;
double euler_phi;
double euler_theta;
double euler_psi;
double zsobel_thresh;
double nsobel_thresh;
bool displayFlowLines;
int shade_type;
int mousex, mousey;
bool is_pressed_non_left;
QLabel *main_info_label;
double scale;
};
const int gl_win_size = 800;
#endif