Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkMimeTypes.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 QmitkMimeTypes_h
14 #define QmitkMimeTypes_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
18 #include <QByteArray>
19 #include <QList>
20 #include <QMimeData>
21 #include <QString>
22 
23 namespace mitk
24 {
25  class DataNode;
26 }
27 
38 {
39 public:
41  static const QString DataNodePtrs;
42 
44  static const QString DataStorageTreeItemPtrs;
45 
51  static QList<mitk::DataNode *> ToDataNodePtrList(const QByteArray &ba);
52 
58  static QList<mitk::DataNode *> ToDataNodePtrList(const QMimeData *mimeData);
59 };
60 
61 #endif
#define MITKQTWIDGETS_EXPORT
Provides MIME type constants and conversion utilities for MITK data node drag-and-drop.
static QList< mitk::DataNode * > ToDataNodePtrList(const QMimeData *mimeData)
Extracts data node pointers from QMimeData.
static const QString DataNodePtrs
MIME type for serialized data node pointers ("application/x-qmitk-datanode-ptrs").
static const QString DataStorageTreeItemPtrs
MIME type for serialized data storage tree item pointers ("application/x-qmitk-datastorage-treeitem-p...
static QList< mitk::DataNode * > ToDataNodePtrList(const QByteArray &ba)
Deserializes a QByteArray into a list of data node raw pointers.
Find image slices visible on a given plane.