qvolray

view src/ui.h @ 27:011ac823600c

broken up the OpenGL code to multiple source files (untested)
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 06:37:31 +0300
parents f4cc61b5a3eb
children aeef3c2ae472
line source
1 #ifndef UI_H_
2 #define UI_H_
4 #include <QMainWindow>
5 #include <QDockWidget>
6 #include "volray.h"
7 #include "ui_maingl.h"
8 #include "ui_sliceview.h"
10 class SideWindow;
12 // This is the main application window (duh)
13 class MainWindow : public QMainWindow {
14 private:
15 Q_OBJECT
17 MainGLView *maingl;
18 SideWindow *sidewin;
20 private slots:
21 void open_volume();
23 public:
24 MainWindow();
25 };
27 /* This is the detachable window with the volume slice view
28 * transfer function, etc
29 */
30 class SideWindow : public QDockWidget {
31 private:
32 Q_OBJECT
34 SliceGLView *slice_view;
36 private slots:
37 void zslider_change(int val);
38 void clip_change(int checked);
40 public:
41 SideWindow();
42 };
44 // call to force a redisplay on all GL views
45 void post_redisplay();
48 #endif // UI_H_