Volume Renderer DoF
MainWindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include "../GeneratedFiles/ui_MainWindow.h"
5 #include "Volume.h"
6 
7 #include <QtWidgets\qwidget.h>
8 #include <QtWidgets\qlabel.h>
9 #include <QtWidgets\qprogressbar.h>
10 #include <QtWidgets\qstatusbar.h>
11 #include <QtWidgets\qpushbutton.h>
12 #include <QtWidgets\qmainwindow.h>
13 
14 //#include <QVariant>
15 #include "ViewWindow.h"
16 #include "TransferWindow.h"
17 
19 class MainWindow : public QMainWindow
20 {
21 
22  Q_OBJECT
23 
24 public:
25 
26  MainWindow(QWidget *parent = 0);
27  ~MainWindow();
28 
29 
30  protected slots :
31 
33  void openFileAction();
34 
36  void closeAction();
37 
39  void openSettingDialog();
40 
42  void newTransferDialog();
43 
45  void editTransfer1Dialog();
46 
48  void editTransfer2Dialog();
49 
51  void editTransfer3Dialog();
52 
54  void editTransfer4Dialog();
55 
57  void editTransfer5Dialog();
58 
59 
60 
61 private:
62 
63  // USER INTERFACE ELEMENTS
64 
66  Ui_MainWindow *m_Ui;
67 
69  GLWidget *glWidget;
70 
72  ViewWindow* view;
73 
75  TransferWindow* transfer;
76 
78  const QString ERR_INDEX = "Unset transfer function!";
79 
81  const QString ERR_SIZE = "Max number of transfer functions reached!";
82  // DATA
83 
89  void openTransferDialog(int ind, bool check, const QString& message);
90 
91  enum DataType
92  {
93  VOLUME = 0
94  };
95 
96  struct FileType
97  {
98  QString filename;
99  DataType type;
100  } m_FileType;
101 
103  Volume *m_Volume;
104 
105 };
106 
107 #endif
void editTransfer5Dialog()
Definition: MainWindow.cpp:134
Definition: Volume.h:63
void closeAction()
Definition: MainWindow.cpp:94
Definition: TransferWindow.h:12
~MainWindow()
Definition: MainWindow.cpp:28
Definition: ViewWindow.h:11
void editTransfer3Dialog()
Definition: MainWindow.cpp:122
void openSettingDialog()
Definition: MainWindow.cpp:99
Definition: ui_MainWindow.h:28
void newTransferDialog()
Definition: MainWindow.cpp:105
void openFileAction()
Definition: MainWindow.cpp:43
MainWindow(QWidget *parent=0)
Definition: MainWindow.cpp:11
void editTransfer2Dialog()
Definition: MainWindow.cpp:116
void editTransfer4Dialog()
Definition: MainWindow.cpp:128
void editTransfer1Dialog()
Definition: MainWindow.cpp:110
Definition: MainWindow.h:19
Definition: GLWidget.h:18