Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryIElementFactory.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 BERRYIELEMENTFACTORY_H
14 #define BERRYIELEMENTFACTORY_H
15 
17 
18 #include <berrySmartPointer.h>
19 #include <QtPlugin>
20 
21 namespace berry {
22 
23 struct IAdaptable;
24 struct IMemento;
25 
45 {
46  virtual ~IElementFactory();
47 
65  virtual IAdaptable* CreateElement(const SmartPointer<IMemento>& memento) = 0;
66 };
67 
68 }
69 
70 Q_DECLARE_INTERFACE(berry::IElementFactory, "org.blueberry.ui.IElementFactory")
71 
72 #endif // BERRYIELEMENTFACTORY_H
Implements transparent reference counting.
#define BERRY_UI_QT
virtual IAdaptable * CreateElement(const SmartPointer< IMemento > &memento)=0