forked from Pat-Tron/GeoAlgorithmStudy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQRenderWindow.h
More file actions
41 lines (31 loc) · 860 Bytes
/
QRenderWindow.h
File metadata and controls
41 lines (31 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <QApplication>
#include <QSurfaceFormat>
#include <QMainWindow>
#include "VTKViewer.h"
#ifndef GEOALGORITHMSTUDY_QRENDERWINDOW_H
#define GEOALGORITHMSTUDY_QRENDERWINDOW_H
/*
* See "The Single Inheritance Approach" in this link:
* [Using a Designer UI File in Your C++
* Application](https://doc.qt.io/qt-5/designer-using-a-ui-file.html)
*/
namespace Ui {
class QRenderWindow;
}
class QRenderWindow : public QMainWindow
{
Q_OBJECT
public:
explicit QRenderWindow(VTKViewer & viewer, QWidget* parent = nullptr);
void appendInfo(QString & info);
void appendInfo(const char * info);
~QRenderWindow() override;
private:
Ui::QRenderWindow* ui;
VTKViewer & viewer;
public slots:
void slotExit() { qApp->exit(); }
void onResetCamera();
void onLoadShape();
};
#endif //GEOALGORITHMSTUDY_QRENDERWINDOW_H