qvolray

view src/ui.h @ 28:aeef3c2ae472

the slice widget works fine
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 16:35:30 +0300
parents 011ac823600c
children 40df2cdc6323
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();
26 void update();
27 };
29 /* This is the detachable window with the volume slice view
30 * transfer function, etc
31 */
32 class SideWindow : public QDockWidget {
33 private:
34 Q_OBJECT
36 SliceGLView *slice_view;
38 private slots:
39 void zslider_change(int val);
40 void clip_change(int checked);
42 public:
43 SideWindow();
45 void update();
46 };
48 // call to force a redisplay on all GL views
49 void post_redisplay();
52 #endif // UI_H_