qvolray

annotate src/ui.h @ 37:450d4c50470f

- 16bit floating point textures halve gpu texture memory usage - slower transfer function change
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Jan 2014 00:23:57 +0200
parents 40df2cdc6323
children
rev   line source
nuclear@13 1 #ifndef UI_H_
nuclear@13 2 #define UI_H_
nuclear@13 3
nuclear@13 4 #include <QMainWindow>
nuclear@14 5 #include <QDockWidget>
nuclear@13 6 #include "volray.h"
nuclear@13 7
nuclear@14 8 class SideWindow;
nuclear@31 9 class XFerWin;
nuclear@31 10
nuclear@30 11 class MainGLView;
nuclear@30 12 class SliceGLView;
nuclear@30 13 class XFerGLView;
nuclear@13 14
nuclear@26 15 // This is the main application window (duh)
nuclear@13 16 class MainWindow : public QMainWindow {
nuclear@26 17 private:
nuclear@13 18 Q_OBJECT
nuclear@26 19
nuclear@26 20 MainGLView *maingl;
nuclear@14 21 SideWindow *sidewin;
nuclear@31 22 XFerWin *xferwin;
nuclear@14 23
nuclear@13 24 private slots:
nuclear@13 25 void open_volume();
nuclear@13 26
nuclear@13 27 public:
nuclear@13 28 MainWindow();
nuclear@13 29 };
nuclear@13 30
nuclear@26 31 /* This is the detachable window with the volume slice view
nuclear@26 32 * transfer function, etc
nuclear@26 33 */
nuclear@14 34 class SideWindow : public QDockWidget {
nuclear@26 35 private:
nuclear@14 36 Q_OBJECT
nuclear@26 37
nuclear@26 38 SliceGLView *slice_view;
nuclear@26 39
nuclear@21 40 private slots:
nuclear@21 41 void zslider_change(int val);
nuclear@22 42 void clip_change(int checked);
nuclear@21 43
nuclear@14 44 public:
nuclear@14 45 SideWindow();
nuclear@14 46 };
nuclear@14 47
nuclear@31 48 class XFerWin : public QDockWidget {
nuclear@31 49 private:
nuclear@31 50 Q_OBJECT
nuclear@31 51
nuclear@31 52 XFerGLView *xfer_view;
nuclear@31 53
nuclear@31 54 public:
nuclear@31 55 XFerWin();
nuclear@31 56 };
nuclear@31 57
nuclear@26 58 // call to force a redisplay on all GL views
nuclear@13 59 void post_redisplay();
nuclear@13 60
nuclear@13 61
nuclear@13 62 #endif // UI_H_