Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
20
#include <
usPrototypeServiceFactory.h
>
21
22
class
QmitkUSAbstractCustomWidget
;
23
24
namespace
us
{
25
class
ModuleContext
;
26
}
27
28
namespace
mitk
{
32
class
USUICustomWidgetFactory
:
public
us::PrototypeServiceFactory
{
33
public
:
34
USUICustomWidgetFactory
(
QmitkUSAbstractCustomWidget
* prototype);
35
39
us::ServiceRegistration<QmitkUSAbstractCustomWidget>
RegisterService
(us::ModuleContext* context);
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
mitk::USUICustomWidgetFactory
Prototype service factory for creating unique instances of QmitUSAbstractCustomWidget.
Definition:
mitkUSUICustomWidgetFactory.h:32
ModuleContext
Definition:
usModuleContext.h:91
us::InterfaceMap
std::map< std::string, void * > InterfaceMap
Definition:
usServiceInterface.h:138
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitk::USUICustomWidgetFactory::UngetService
void UngetService(us::Module *, const us::ServiceRegistrationBase &, const us::InterfaceMap &service) override
Definition:
mitkUSUICustomWidgetFactory.cpp:39
us::ServiceRegistration< QmitkUSAbstractCustomWidget >
mitk::USUICustomWidgetFactory::USUICustomWidgetFactory
USUICustomWidgetFactory(QmitkUSAbstractCustomWidget *prototype)
Definition:
mitkUSUICustomWidgetFactory.cpp:23
mitk::USUICustomWidgetFactory::RegisterService
us::ServiceRegistration< QmitkUSAbstractCustomWidget > RegisterService(us::ModuleContext *context)
Registers this factory in the given module context.
Definition:
mitkUSUICustomWidgetFactory.cpp:28
us::Module
Definition:
usModule.h:78
QmitkUSAbstractCustomWidget
Abstract superclass for all custom control widgets of mitk::USDevice classes.
Definition:
QmitkUSAbstractCustomWidget.h:78
usPrototypeServiceFactory.h
us::PrototypeServiceFactory
Definition:
usPrototypeServiceFactory.h:59
mitk::USUICustomWidgetFactory::GetService
us::InterfaceMap GetService(us::Module *, const us::ServiceRegistrationBase &) override
Definition:
mitkUSUICustomWidgetFactory.cpp:33
us
Definition:
mitkAbstractFileReader.h:33
us::ServiceRegistrationBase
Definition:
usServiceRegistrationBase.h:56
git
MITK
Modules
USUI
mitkUSUICustomWidgetFactory.h
Generated on Fri Feb 3 2017 20:52:11 for Medical Imaging Interaction Toolkit by
1.8.9.1