qvolray

view src/ui.h @ 31:c1dd5b120504

separated the transfer function to a different subwindow and added shortcut for quit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 22:32:14 +0300
parents 40df2cdc6323
children
line source
1 #ifndef UI_H_
2 #define UI_H_
4 #include <QMainWindow>
5 #include <QDockWidget>
6 #include "volray.h"
8 class SideWindow;
9 class XFerWin;
11 class MainGLView;
12 class SliceGLView;
13 class XFerGLView;
15 // This is the main application window (duh)
16 class MainWindow : public QMainWindow {
17 private:
18 Q_OBJECT
20 MainGLView *maingl;
21 SideWindow *sidewin;
22 XFerWin *xferwin;
24 private slots:
25 void open_volume();
27 public:
28 MainWindow();
29 };
31 /* This is the detachable window with the volume slice view
32 * transfer function, etc
33 */
34 class SideWindow : public QDockWidget {
35 private:
36 Q_OBJECT
38 SliceGLView *slice_view;
40 private slots:
41 void zslider_change(int val);
42 void clip_change(int checked);
44 public:
45 SideWindow();
46 };
48 class XFerWin : public QDockWidget {
49 private:
50 Q_OBJECT
52 XFerGLView *xfer_view;
54 public:
55 XFerWin();
56 };
58 // call to force a redisplay on all GL views
59 void post_redisplay();
62 #endif // UI_H_