Slicer  5.3
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 // Slicer includes
5 #include <qMRMLWidget.h>
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 qMRMLWidget
18 {
19  Q_OBJECT
20  QVTK_OBJECT
21 
22 public:
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
qMRMLWidget Superclass
Constructors.
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
QScopedPointer< qSlicerVolumeDisplayWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167