38 #ifndef __usResliceMatrixViewer_h_
39 #define __usResliceMatrixViewer_h_
42 #include <visp3/ustk_core/usConfig.h>
44 #ifdef USTK_HAVE_VTK_QT
48 #include <visp3/ustk_core/usImageIo.h>
49 #include <visp3/ustk_gui/us2DSceneWidget.h>
50 #include <visp3/ustk_gui/us3DSceneWidget.h>
53 #include <vtkDistanceWidget.h>
54 #include <vtkImageMapper3D.h>
55 #include <vtkImagePlaneWidget.h>
57 #include <vtkResliceImageViewer.h>
58 #include <vtkResliceImageViewerMeasurements.h>
59 #include <vtkSmartPointer.h>
62 #if defined(USTK_HAVE_VTK_QT4)
63 #include <QtGui/QApplication>
64 #include <QtGui/QGridLayout>
65 #include <QtGui/QMainWindow>
66 #include <QtGui/QPushButton>
67 #elif defined(USTK_HAVE_VTK_QT4)
68 #include <QtWidgets/QApplication>
69 #include <QtWidgets/QGridLayout>
70 #include <QtWidgets/QMainWindow>
71 #include <QtWidgets/QPushButton>
88 void resizeEvent(QResizeEvent *event);
92 virtual void ResetViews();
93 virtual void Render();
94 virtual void slotExit();
97 void openPostScan3D();
102 QAction *actionOpenFile;
104 QAction *actionPrint;
107 QWidget *centralwidget;
108 QWidget *gridLayoutWidget;
109 QGridLayout *gridLayout_2;
115 QPushButton *resetButton;
116 QPushButton *openImageButton;
117 QPushButton *saveView1Button;
118 QPushButton *saveView4Button;
119 QPushButton *saveView3Button;
127 vtkMatrix4x4 *vtkMatrix1;
128 vtkMatrix4x4 *vtkMatrix2;
129 vtkMatrix4x4 *vtkMatrix3;
133 vtkSmartPointer<vtkImageData> vtkImage;
Graphical main window containing 4 vtk views.