Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkAutomatedLayoutWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
21 #ifndef QmitkAutomatedLayoutWidget_h
22 #define QmitkAutomatedLayoutWidget_h
23 
24 #include <MitkQtWidgetsExports.h>
25 
26 #include <mitkDataStorage.h>
27 
28 #include <QWidget>
29 #include <memory>
30 
31 namespace Ui
32 {
34 }
35 
47 {
48  Q_OBJECT
49 
50 private Q_SLOTS:
52  void OnSetLayoutClicked();
53 
55  void OnSelectionDialogClosed();
56 
57 Q_SIGNALS:
63  void SetDataBasedLayout(const QList<mitk::DataNode::Pointer>& nodes);
64 
65 public:
71  explicit QmitkAutomatedLayoutWidget(QWidget* parent = nullptr);
72 
75 
81  void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
82 
83 private:
84 
85  std::unique_ptr<Ui::QmitkAutomatedLayoutWidget> m_Controls;
86  mitk::DataStorage::Pointer m_DataStorage;
87 };
88 
89 
90 #endif
#define MITKQTWIDGETS_EXPORT
Widget that lets users select image nodes and request an automated render window layout.
void SetDataStorage(mitk::DataStorage::Pointer dataStorage)
Set the data storage from which image nodes can be selected.
QmitkAutomatedLayoutWidget(QWidget *parent=nullptr)
Construct the automated layout widget.
void SetDataBasedLayout(const QList< mitk::DataNode::Pointer > &nodes)
Emitted when the user confirms a node selection for automated layout.
~QmitkAutomatedLayoutWidget() override
Destructor.