Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerVolumeRenderingPropertiesWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __qSlicerVolumeRenderingPropertiesWidget_h
22 #define __qSlicerVolumeRenderingPropertiesWidget_h
23 
24 // Qt includes
25 #include <QWidget>
26 
27 // CTK includes
28 #include <ctkVTKObject.h>
29 
30 // Slicer includes
31 #include "qSlicerVolumeRenderingModuleWidgetsExport.h"
32 
33 class qSlicerVolumeRenderingPropertiesWidgetPrivate;
34 class vtkMRMLNode;
35 class vtkMRMLVolumeNode;
37 
39 class Q_SLICER_MODULE_VOLUMERENDERING_WIDGETS_EXPORT qSlicerVolumeRenderingPropertiesWidget
40  : public QWidget
41 {
42  Q_OBJECT
43  QVTK_OBJECT
44 public:
45  typedef QWidget Superclass;
46  qSlicerVolumeRenderingPropertiesWidget(QWidget *parent=nullptr);
48 
49  vtkMRMLNode* mrmlNode()const;
50  vtkMRMLVolumeRenderingDisplayNode* mrmlVolumeRenderingDisplayNode()const;
51  vtkMRMLVolumeNode* mrmlVolumeNode()const;
52 
53 public slots:
54  void setMRMLVolumeRenderingDisplayNode(vtkMRMLVolumeRenderingDisplayNode* node);
56  void setMRMLNode(vtkMRMLNode* node);
57 
58 protected slots:
59  virtual void updateWidgetFromMRML();
60  virtual void updateWidgetFromMRMLVolumeNode();
61 
62 protected:
63  QScopedPointer<qSlicerVolumeRenderingPropertiesWidgetPrivate> d_ptr;
64 
65 private:
66  Q_DECLARE_PRIVATE(qSlicerVolumeRenderingPropertiesWidget);
68 };
69 
70 #endif
QScopedPointer< qSlicerVolumeRenderingPropertiesWidgetPrivate > d_ptr
MRML node for representing a volume (image stack).
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167