Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLLayoutWidget.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 __qMRMLLayoutWidget_h
22 #define __qMRMLLayoutWidget_h
23 
24 // Qt includes
25 #include <QWidget>
26 
27 // qMRML includes
28 #include "qMRMLWidgetsExport.h"
29 
30 // MRML includes
31 #include <vtkMRMLLayoutNode.h>
32 
33 class qMRMLLayoutWidgetPrivate;
34 class qMRMLLayoutManager;
35 class vtkMRMLScene;
36 
37 class QMRML_WIDGETS_EXPORT qMRMLLayoutWidget : public QWidget
38 {
39  Q_OBJECT
40 public:
42  typedef QWidget Superclass;
43 
45  explicit qMRMLLayoutWidget(QWidget* widget);
46  ~qMRMLLayoutWidget() override;
47 
49  Q_INVOKABLE qMRMLLayoutManager* layoutManager()const;
51  Q_INVOKABLE void setLayoutManager(qMRMLLayoutManager* layoutManager);
52 
54  vtkMRMLScene* mrmlScene()const;
56  int layout()const;
57 
58 public slots:
60  void setMRMLScene(vtkMRMLScene* scene);
61 
63  void setLayout(int);
64 
65 protected:
66  qMRMLLayoutWidget(qMRMLLayoutWidgetPrivate* obj, QWidget* widget);
67  QScopedPointer<qMRMLLayoutWidgetPrivate> d_ptr;
68 
69 private:
70  Q_DECLARE_PRIVATE(qMRMLLayoutWidget);
71  Q_DISABLE_COPY(qMRMLLayoutWidget);
72 };
73 
74 #endif
QWidget Superclass
Superclass typedef.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
QScopedPointer< qMRMLLayoutWidgetPrivate > d_ptr