Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkUSActivator.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 mitkUSActivator_h
14 #define mitkUSActivator_h
15 
16 #include "mitkUSVideoDevice.h"
17 
18 // Microservices
19 #include <usModuleContext.h>
20 #include <usModuleActivator.h>
21 
22 namespace mitk
23 {
35 public:
36 
37  USActivator();
38  ~USActivator() override;
39 
43  void Load(us::ModuleContext* context) override;
44 
48  void Unload(us::ModuleContext* context) override;
49 
50 protected:
54  void OnServiceEvent(const us::ServiceEvent event);
55 
56  us::ModuleContext* m_Context;
57  std::vector<USDevice::Pointer> m_Devices;
58 };
59 } // namespace mitk
60 
62 
63 #endif
usModuleActivator.h
mitk::USActivator::USActivator
USActivator()
mitk::USActivator
Module activator for the US module. Loads mitk::USVideoDevice objects from hard disk on module load a...
Definition: mitkUSActivator.h:34
mitk::USActivator::OnServiceEvent
void OnServiceEvent(const us::ServiceEvent event)
Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly.
mitk::USActivator::Load
void Load(us::ModuleContext *context) override
The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service.
mitk::USActivator::Unload
void Unload(us::ModuleContext *context) override
Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service.
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
us::ModuleActivator
Definition: usModuleActivator.h:63
mitk::USActivator::m_Devices
std::vector< USDevice::Pointer > m_Devices
Definition: mitkUSActivator.h:57
US_EXPORT_MODULE_ACTIVATOR
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.
Definition: usModuleActivator.h:119
mitk::USActivator::~USActivator
~USActivator() override
mitkUSVideoDevice.h
us::ServiceEvent
Definition: usServiceEvent.h:55
usModuleContext.h
mitk::USActivator::m_Context
us::ModuleContext * m_Context
Definition: mitkUSActivator.h:56