38 #ifndef __usMedicalImageViewer_h_
39 #define __usMedicalImageViewer_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/us3DSceneWidget.h>
50 #include <visp3/ustk_gui/usViewerWidget.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 ResetColorMap();
94 virtual void Render();
95 virtual void AddDistanceMeasurementToView1();
96 virtual void AddDistanceMeasurementToView(
int);
97 virtual void slotExit();
100 vtkSmartPointer<vtkResliceImageViewer> riw[3];
101 vtkSmartPointer<vtkImagePlaneWidget> planeWidget[3];
102 vtkSmartPointer<vtkDistanceWidget> DistanceWidget[3];
103 vtkSmartPointer<vtkResliceImageViewerMeasurements> ResliceMeasurements[3];
110 QAction *actionOpenFile;
112 QAction *actionPrint;
115 QWidget *centralwidget;
116 QWidget *gridLayoutWidget;
117 QGridLayout *gridLayout_2;
122 QPushButton *resetButton;
123 QPushButton *resetColorsButton;
124 QPushButton *AddDistance1Button;
132 vtkImageResliceMapper *imageMapper1;
133 vtkImageResliceMapper *imageMapper2;
134 vtkImageResliceMapper *imageMapper3;
138 vtkSmartPointer<vtkImageData> vtkImage;
Graphical main window containing 4 vtk views.