Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
mitkUSUIActivator.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 __mitkUSUIActivator_h
14 #define __mitkUSUIActivator_h
15 
17 
18 // Microservices
19 #include <usModuleContext.h>
20 #include <usModuleActivator.h>
21 
22 namespace mitk
23 {
24  class USUICustomWidgetFactory;
25 
31  public:
32 
33  USUIActivator();
34  ~USUIActivator() override;
35 
41  void Load(us::ModuleContext* context) override;
42 
47  void Unload(us::ModuleContext* context) override;
48 
49  protected:
50 
51  std::vector<QmitkUSAbstractCustomWidget*> m_USCustomWidgets;
52  };
53 } // namespace mitk
54 
56 
57 #endif // __mitkUSUIActivator_h
Module activator for the USUI module. Registers custom widget for mitk::USVideoDevice as microservice...
DataCollection - Class to facilitate loading/accessing structured data.
void Load(us::ModuleContext *context) override
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.
void Unload(us::ModuleContext *context) override
std::vector< QmitkUSAbstractCustomWidget * > m_USCustomWidgets
Contains the currently available US custom controls widgets which are loaded on Load() ...
~USUIActivator() override