Medical Imaging Interaction Toolkit  2024.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 
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 
50  IDataStorageReference::Pointer GetDataStorageReference();
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
berryIPersistableElement.h
org_mitk_gui_common_Export.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
mitk::DataStorageEditorInput
An editor input based on a mitk::DataStorage.
Definition: mitkDataStorageEditorInput.h:34
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
berryIEditorInput.h
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
MITK_GUI_COMMON_PLUGIN
#define MITK_GUI_COMMON_PLUGIN
Definition: org_mitk_gui_common_Export.h:26
berry::IPersistableElement
Definition: berryIPersistableElement.h:45
berry::IEditorInput
Definition: berryIEditorInput.h:66
berry::Object::Pointer
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:82
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
mitkIDataStorageReference.h