1 #ifndef QTVTKVIEWERWIDGET_H
2 #define QTVTKVIEWERWIDGET_H
6 #include "ui_qtvtkviewerwidget.h"
8 #include "qtvtkviewer.h"
10 #include "vtkRenderer.h"
11 #include <vtkLookupTable.h>
14 class QtVTKViewerWidget;
17 class QtVTKViewerWidget : public QWidget
22 QtVTKViewerWidget(QWidget *parent = 0);
25 vtkRenderer* getRenderer();
27 void setImage(vtkImageData* img);
29 void SetLookupTable(vtkLookupTable *lookuptable);
31 void SetOutputFormatToRGBA();
34 void on_checkBoxShowPlanes_clicked();
36 void on_checkBoxShowImageActor_clicked(bool checked);
38 void on_horizontalSliderX_valueChanged(int value);
40 void on_horizontalSliderY_valueChanged(int value);
42 void on_horizontalSliderZ_valueChanged(int value);
45 Ui::QtVTKViewerWidget *ui;
50 #endif // QTVTKVIEWERWIDGET_H