Medical Imaging Interaction Toolkit  2025.12.02
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 
20 
22 
23 namespace mitk
24 {
25 
34 class MITK_GUI_COMMON_PLUGIN DataStorageEditorInput : public berry::IEditorInput //, private berry::IPersistableElement
35 {
36 public:
38 
41 
42  bool Exists() const override;
43  QString GetName() const override;
44  QString GetToolTipText() const override;
45  QIcon GetIcon() const override;
46 
47  const berry::IPersistableElement* GetPersistable() const override;
48  Object* GetAdapter(const QString &adapterType) const override;
49 
51 
52  bool operator==(const berry::Object*) const override;
53 
54 private:
55 
56  //QString GetFactoryId() const;
57  //void SaveState(const berry::SmartPointer<berry::IMemento>& memento) const;
58 
59  IDataStorageReference::Pointer m_DataStorageRef;
60 };
61 
62 }
63 
64 #endif
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
Implements transparent reference counting.
An editor input based on a mitk::DataStorage.
IDataStorageReference::Pointer GetDataStorageReference()
QIcon GetIcon() const override
Object * GetAdapter(const QString &adapterType) const override
QString GetName() const override
QString GetToolTipText() const override
bool Exists() const override
DataStorageEditorInput(IDataStorageReference::Pointer ref)
bool operator==(const berry::Object *) const override
berryObjectMacro(DataStorageEditorInput)
const berry::IPersistableElement * GetPersistable() const override
Find image slices visible on a given plane.
#define MITK_GUI_COMMON_PLUGIN