qvolray
view src/ui.h @ 25:63bc059778d0
fixed ray marching
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Apr 2012 01:13:43 +0300 |
parents | 4c62be57fc1a |
children | f4cc61b5a3eb |
line source
1 #ifndef UI_H_
2 #define UI_H_
4 #include <QMainWindow>
5 #include <QDockWidget>
6 #include <QGLWidget>
7 #include "volray.h"
9 class GLView;
10 class SideWindow;
12 class MainWindow : public QMainWindow {
13 Q_OBJECT
14 private:
15 SideWindow *sidewin;
17 private slots:
18 void open_volume();
20 public:
21 MainWindow();
22 };
24 class SideWindow : public QDockWidget {
25 Q_OBJECT
26 private slots:
27 void zslider_change(int val);
28 void clip_change(int checked);
30 public:
31 SideWindow();
32 };
34 class GLView : public QGLWidget {
35 Q_OBJECT
37 protected:
38 void initializeGL();
39 void resizeGL(int xsz, int ysz);
40 void paintGL();
42 void mousePressEvent(QMouseEvent *ev);
43 void mouseReleaseEvent(QMouseEvent *ev);
44 void mouseMoveEvent(QMouseEvent *ev);
46 public:
47 GLView(QWidget *parent = 0);
49 QSize minimumSizeHint() const;
50 QSize sizeHint() const;
51 };
53 void post_redisplay();
56 #endif // UI_H_