Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerCropVolumeModuleWidget.h
Go to the documentation of this file.
1 #ifndef __qSlicerCropVolumeModuleWidget_h
2 #define __qSlicerCropVolumeModuleWidget_h
3 
4 // Slicer includes
6 
7 #include "qSlicerCropVolumeModuleExport.h"
8 
9 class qSlicerCropVolumeModuleWidgetPrivate;
10 class vtkMRMLNode;
12 
14 class Q_SLICER_QTMODULES_CROPVOLUME_EXPORT qSlicerCropVolumeModuleWidget :
16 {
17  Q_OBJECT
18 
19 public:
20 
22  qSlicerCropVolumeModuleWidget(QWidget *parent=nullptr);
24 
25  bool setEditedNode(vtkMRMLNode* node, QString role = QString(), QString context = QString()) override;
26 
27 public slots:
28  void setParametersNode(vtkMRMLNode* node);
29 
30 protected:
31  QScopedPointer<qSlicerCropVolumeModuleWidgetPrivate> d_ptr;
32 
33  void setup() override;
34  void enter() override;
35  void setMRMLScene(vtkMRMLScene*) override;
36 
37 protected slots:
38  void setInputVolume(vtkMRMLNode*);
39  void setOutputVolume(vtkMRMLNode* node);
40  void setInputROI(vtkMRMLNode*);
41  void initializeInputROI(vtkMRMLNode*);
44  void onInputROIAdded(vtkMRMLNode* node);
45 
46  void onROIVisibilityChanged(bool);
47  void onROIFit();
48  void onInterpolationModeChanged();
49  void onApply();
50  void onFixAlignment();
51  void updateWidgetFromMRML();
52  void onSpacingScalingValueChanged(double);
53  void onIsotropicModeChanged(bool);
54  void onMRMLSceneEndBatchProcessEvent();
55  void onInterpolationEnabled(bool interpolationEnabled);
56  void onVolumeInformationSectionClicked(bool isOpen);
57  void onFillValueChanged(double);
58 
59  void updateVolumeInfo();
60 
61 private:
62  Q_DECLARE_PRIVATE(qSlicerCropVolumeModuleWidget);
63  Q_DISABLE_COPY(qSlicerCropVolumeModuleWidget);
64 };
65 
66 #endif
Q_INVOKABLE bool setEditedNode(vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
Node editing.
void setMRMLScene(vtkMRMLScene *scene) override
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
QScopedPointer< qSlicerCropVolumeModuleWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
qSlicerAbstractModuleWidget Superclass
virtual Q_INVOKABLE void enter()