qvolray
annotate src/ui.h @ 25:63bc059778d0
fixed ray marching
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Apr 2012 01:13:43 +0300 |
parents | 4c62be57fc1a |
children | f4cc61b5a3eb |
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 <QGLWidget> |
nuclear@13 | 7 #include "volray.h" |
nuclear@13 | 8 |
nuclear@13 | 9 class GLView; |
nuclear@14 | 10 class SideWindow; |
nuclear@13 | 11 |
nuclear@13 | 12 class MainWindow : public QMainWindow { |
nuclear@13 | 13 Q_OBJECT |
nuclear@14 | 14 private: |
nuclear@14 | 15 SideWindow *sidewin; |
nuclear@14 | 16 |
nuclear@13 | 17 private slots: |
nuclear@13 | 18 void open_volume(); |
nuclear@13 | 19 |
nuclear@13 | 20 public: |
nuclear@13 | 21 MainWindow(); |
nuclear@13 | 22 }; |
nuclear@13 | 23 |
nuclear@14 | 24 class SideWindow : public QDockWidget { |
nuclear@14 | 25 Q_OBJECT |
nuclear@21 | 26 private slots: |
nuclear@21 | 27 void zslider_change(int val); |
nuclear@22 | 28 void clip_change(int checked); |
nuclear@21 | 29 |
nuclear@14 | 30 public: |
nuclear@14 | 31 SideWindow(); |
nuclear@14 | 32 }; |
nuclear@14 | 33 |
nuclear@13 | 34 class GLView : public QGLWidget { |
nuclear@13 | 35 Q_OBJECT |
nuclear@13 | 36 |
nuclear@13 | 37 protected: |
nuclear@13 | 38 void initializeGL(); |
nuclear@13 | 39 void resizeGL(int xsz, int ysz); |
nuclear@13 | 40 void paintGL(); |
nuclear@13 | 41 |
nuclear@13 | 42 void mousePressEvent(QMouseEvent *ev); |
nuclear@13 | 43 void mouseReleaseEvent(QMouseEvent *ev); |
nuclear@13 | 44 void mouseMoveEvent(QMouseEvent *ev); |
nuclear@13 | 45 |
nuclear@13 | 46 public: |
nuclear@13 | 47 GLView(QWidget *parent = 0); |
nuclear@13 | 48 |
nuclear@13 | 49 QSize minimumSizeHint() const; |
nuclear@13 | 50 QSize sizeHint() const; |
nuclear@13 | 51 }; |
nuclear@13 | 52 |
nuclear@13 | 53 void post_redisplay(); |
nuclear@13 | 54 |
nuclear@13 | 55 |
nuclear@13 | 56 #endif // UI_H_ |