Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkXnatUploadFromDataStorageDialog.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 
13 #ifndef QmitkXnatUploadFromDataStorageDialog_h
14 #define QmitkXnatUploadFromDataStorageDialog_h
15 
16 #include <QDialog>
17 
18 #include <MitkXNATExports.h>
19 #include <mitkDataNode.h>
20 #include <memory>
21 
22 namespace Ui
23 {
25 }
26 
27 namespace mitk
28 {
29  class DataStorage;
30 }
31 
46 {
47  Q_OBJECT
48 
49 public:
59  explicit QmitkXnatUploadFromDataStorageDialog(QWidget *parent = nullptr);
60 
65 
72 
79  mitk::DataNode::Pointer GetSelectedNode();
80 
81 protected slots:
82 
86  void OnUpload();
87 
94 
98  void OnCancel();
99 
107  void OnMITKProjectFileNameEntered(const QString &text);
108 
116  void OnDataSelected(const mitk::DataNode *node);
117 
118 private:
119  std::unique_ptr<Ui::QmitkXnatUploadFromDataStorageDialog> ui;
120 
121  mitk::DataNode::Pointer m_SelectedNode;
122 };
123 
124 #endif
#define MITKXNAT_EXPORT
Dialog for selecting a data node from the MITK data storage for upload to XNAT.
void OnUploadSceneChecked()
Slot called when the "Upload MITK Project" checkbox is toggled.
QmitkXnatUploadFromDataStorageDialog(QWidget *parent=nullptr)
Construct the upload dialog.
void OnCancel()
Slot called when the Cancel button is clicked. Rejects the dialog.
void OnDataSelected(const mitk::DataNode *node)
Slot called when a data node is selected in the combo box.
~QmitkXnatUploadFromDataStorageDialog() override
Destructor.
void OnMITKProjectFileNameEntered(const QString &text)
Slot called when the user enters a MITK project file name.
void OnUpload()
Slot called when the Upload button is clicked. Accepts the dialog.
void SetDataStorage(mitk::DataStorage *ds)
Set the data storage to populate the node selection combo box.
mitk::DataNode::Pointer GetSelectedNode()
Retrieve the data node selected by the user for upload.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Find image slices visible on a given plane.