#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL2)
VTK_MODULE_INIT(vtkInteractionStyle)
#include <vtkSmartPointer.h>
class vtkRenderer;
class vtkImageCanvasSource2D;
class vtkImageData;
class vtkImageViewer2;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
vtkSmartPointer<vtkRenderer> pRenderer;
vtkSmartPointer<vtkImageViewer2> pImageViewer;
vtkSmartPointer<vtkImageCanvasSource2D> pImageCanvas;
// vtkSmartPointer<vtkRenderer> pRenderer2;
// vtkSmartPointer<vtkImageData> pImageData;
// vtkSmartPointer<vtkImageViewer2> pImageViewer2;
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H