Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qMRMLVolumeWidget.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 __qMRMLVolumeWidget_h
22#define __qMRMLVolumeWidget_h
23
24// Qt includes
25#include <QWidget>
26
27// CTK includes
28#include <ctkVTKObject.h>
29#include "qMRMLWidgetsExport.h"
30
31class vtkMRMLNode;
34class qMRMLVolumeWidgetPrivate;
35
38class QMRML_WIDGETS_EXPORT qMRMLVolumeWidget : public QWidget
39{
40 Q_OBJECT
41 QVTK_OBJECT
42
43public:
45 typedef QWidget Superclass;
46 explicit qMRMLVolumeWidget(QWidget* parentWidget = nullptr);
48
52
53public slots:
56
60
61protected slots:
68
74
75protected:
76 QScopedPointer<qMRMLVolumeWidgetPrivate> d_ptr;
77 qMRMLVolumeWidget(qMRMLVolumeWidgetPrivate* ptr,
78 QWidget* parentWidget = nullptr);
79
82
83private:
84 Q_DECLARE_PRIVATE(qMRMLVolumeWidget);
85 Q_DISABLE_COPY(qMRMLVolumeWidget);
86
88 void setMRMLVolumeDisplayNode(vtkMRMLScalarVolumeDisplayNode* displayNode);
89};
90
91#endif
qMRMLVolumeWidget(qMRMLVolumeWidgetPrivate *ptr, QWidget *parentWidget=nullptr)
QWidget Superclass
Constructors.
~qMRMLVolumeWidget() override
vtkMRMLScalarVolumeDisplayNode * mrmlDisplayNode() const
Return the volume display node.
Q_INVOKABLE vtkMRMLScalarVolumeNode * mrmlVolumeNode() const
Return the current MRML node of interest.
qMRMLVolumeWidget(QWidget *parentWidget=nullptr)
QScopedPointer< qMRMLVolumeWidgetPrivate > d_ptr
void setMRMLVolumeNode(vtkMRMLNode *node)
void setMRMLVolumeNode(vtkMRMLScalarVolumeNode *displayNode)
Set the volume to observe.
virtual void updateWidgetFromMRMLVolumeNode()
virtual void updateWidgetFromMRMLDisplayNode()
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a volume display attributes.
MRML node for representing a volume (image stack).