Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkUSUICustomWidgetFactory.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKUSUICUSTOMWIDGETFACTORY_H
18 #define MITKUSUICUSTOMWIDGETFACTORY_H
19 
21 
23 
24 namespace us {
25 class ModuleContext;
26 }
27 
28 namespace mitk {
33 public:
35 
40 
41  us::InterfaceMap GetService(us::Module* /*module*/, const us::ServiceRegistrationBase& /*registration*/) override;
42  void UngetService(us::Module*, const us::ServiceRegistrationBase&, const us::InterfaceMap& service) override;
43 
44 private:
45  QmitkUSAbstractCustomWidget* const m_Prototype;
46 };
47 } // namespace mitk
48 
49 #endif // MITKUSUICUSTOMWIDGETFACTORY_H
Prototype service factory for creating unique instances of QmitUSAbstractCustomWidget.
std::map< std::string, void * > InterfaceMap
DataCollection - Class to facilitate loading/accessing structured data.
void UngetService(us::Module *, const us::ServiceRegistrationBase &, const us::InterfaceMap &service) override
USUICustomWidgetFactory(QmitkUSAbstractCustomWidget *prototype)
us::ServiceRegistration< QmitkUSAbstractCustomWidget > RegisterService(us::ModuleContext *context)
Registers this factory in the given module context.
Abstract superclass for all custom control widgets of mitk::USDevice classes.
us::InterfaceMap GetService(us::Module *, const us::ServiceRegistrationBase &) override