qvolray

view src/ui.h @ 30:40df2cdc6323

transfer function window
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 22:10:30 +0300
parents aeef3c2ae472
children c1dd5b120504
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 MainGLView;
10 class SliceGLView;
11 class XFerGLView;
13 // This is the main application window (duh)
14 class MainWindow : public QMainWindow {
15 private:
16 Q_OBJECT
18 MainGLView *maingl;
19 SideWindow *sidewin;
21 private slots:
22 void open_volume();
24 public:
25 MainWindow();
26 };
28 /* This is the detachable window with the volume slice view
29 * transfer function, etc
30 */
31 class SideWindow : public QDockWidget {
32 private:
33 Q_OBJECT
35 SliceGLView *slice_view;
36 XFerGLView *xfer_view;
38 private slots:
39 void zslider_change(int val);
40 void clip_change(int checked);
42 public:
43 SideWindow();
44 };
46 // call to force a redisplay on all GL views
47 void post_redisplay();
50 #endif // UI_H_