Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLDisplayNodeViewComboBox.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 __qMRMLDisplayNodeViewComboBox_h
22 #define __qMRMLDisplayNodeViewComboBox_h
23 
24 // CTK includes
25 #include <ctkVTKObject.h>
26 
27 // qMRML includes
29 class qMRMLDisplayNodeViewComboBoxPrivate;
30 
31 // VTK includes
32 class vtkMRMLDisplayNode;
34 
40 class QMRML_WIDGETS_EXPORT qMRMLDisplayNodeViewComboBox
42 {
43  Q_OBJECT
44  QVTK_OBJECT
45 public:
48 
51  explicit qMRMLDisplayNodeViewComboBox(QWidget* parent = nullptr);
52  ~qMRMLDisplayNodeViewComboBox() override;
53 
54  vtkMRMLDisplayNode* mrmlDisplayNode()const;
55 
57  QList<vtkMRMLAbstractViewNode*> checkedViewNodes()const;
59  QList<vtkMRMLAbstractViewNode*> uncheckedViewNodes()const;
60 
61 public slots:
63  void setMRMLDisplayNode(vtkMRMLDisplayNode* node);
66  void setMRMLDisplayNode(vtkMRMLNode* displayNode);
67 
68 protected slots:
69  void updateWidgetFromMRML();
70  void updateMRMLFromWidget();
71 
72 protected:
73  QScopedPointer<qMRMLDisplayNodeViewComboBoxPrivate> d_ptr;
74 
75 private:
76  Q_DECLARE_PRIVATE(qMRMLDisplayNodeViewComboBox);
77  Q_DISABLE_COPY(qMRMLDisplayNodeViewComboBox);
78 };
79 
80 #endif
qMRMLCheckableNodeComboBox Superclass
Superclass typedef.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
Combobox of display node view nodes. Observe the view nodes of a display node and mark them as checke...
Abstract class that contains graphical display properties for displayable nodes.
QScopedPointer< qMRMLDisplayNodeViewComboBoxPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167