Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDataStorageEditorInput.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 mitkDataStorageEditorInput_h
14 #define mitkDataStorageEditorInput_h
15 
16 #include <berryIEditorInput.h>
18 
19 #include <mitkDataStorage.h>
21 
23 
24 namespace mitk
25 {
26 
35 class MITK_GUI_COMMON_PLUGIN DataStorageEditorInput : public berry::IEditorInput //, private berry::IPersistableElement
36 {
37 public:
39 
42 
43  bool Exists() const override;
44  QString GetName() const override;
45  QString GetToolTipText() const override;
46  QIcon GetIcon() const override;
47 
48  const berry::IPersistableElement* GetPersistable() const override;
49  Object* GetAdapter(const QString &adapterType) const override;
50 
60 
61  bool operator==(const berry::Object*) const override;
62 
63 private:
64 
65  //QString GetFactoryId() const;
66  //void SaveState(const berry::SmartPointer<berry::IMemento>& memento) const;
67 
68  DataStorageReference m_DataStorageReference;
69 };
70 
71 }
72 
73 #endif
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:68
An editor input based on a mitk::DataStorage.
QIcon GetIcon() const override
Object * GetAdapter(const QString &adapterType) const override
QString GetName() const override
QString GetToolTipText() const override
bool Exists() const override
bool operator==(const berry::Object *) const override
berryObjectMacro(DataStorageEditorInput)
const berry::IPersistableElement * GetPersistable() const override
DataStorageEditorInput(const DataStorageReference &reference)
DataStorageReference GetDataStorageReference()
Get the DataStorageReference associated with this input.
Lightweight metadata container for DataStorage instances.
Find image slices visible on a given plane.
#define MITK_GUI_COMMON_PLUGIN