Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerVolumeDisplayWidget.h
Go to the documentation of this file.
1 #ifndef __qSlicerVolumeDisplayWidget_h
2 #define __qSlicerVolumeDisplayWidget_h
3 
4 // Qt includes
5 #include <QStackedWidget>
6 
7 // CTK includes
8 #include <ctkVTKObject.h>
9 
10 // Volumes includes
11 #include "qSlicerVolumesModuleWidgetsExport.h"
12 
13 class vtkMRMLNode;
14 class qSlicerVolumeDisplayWidgetPrivate;
15 
17 class Q_SLICER_QTMODULES_VOLUMES_WIDGETS_EXPORT qSlicerVolumeDisplayWidget : public QStackedWidget
18 {
19  Q_OBJECT
20  QVTK_OBJECT
21 
22 public:
24  typedef QStackedWidget Superclass;
25  explicit qSlicerVolumeDisplayWidget(QWidget* parent=nullptr);
26  ~qSlicerVolumeDisplayWidget() override;
27 
28 public slots:
30  void setMRMLVolumeNode(vtkMRMLNode* node);
31 
32 protected slots:
35  void updateFromMRML(vtkObject* volume);
36 protected:
37  QScopedPointer<qSlicerVolumeDisplayWidgetPrivate> d_ptr;
38 
39 private:
40  Q_DECLARE_PRIVATE(qSlicerVolumeDisplayWidget);
41  Q_DISABLE_COPY(qSlicerVolumeDisplayWidget);
42 };
43 
44 #endif
QScopedPointer< qSlicerVolumeDisplayWidgetPrivate > d_ptr
QStackedWidget Superclass
Constructors.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167