Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Module activator for the US module. Loads mitk::USVideoDevice objects from hard disk on module load and write them to hard disk on module unload. More...
#include <mitkUSActivator.h>
Public Member Functions | |
USActivator () | |
~USActivator () override | |
void | Load (us::ModuleContext *context) override |
The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service. More... | |
void | Unload (us::ModuleContext *context) override |
Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service. More... | |
Public Member Functions inherited from us::ModuleActivator | |
virtual | ~ModuleActivator () |
virtual void | Load (ModuleContext *context)=0 |
virtual void | Unload (ModuleContext *context)=0 |
Protected Member Functions | |
void | OnServiceEvent (const us::ServiceEvent event) |
Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly. More... | |
Protected Attributes | |
us::ModuleContext * | m_Context |
std::vector< USDevice::Pointer > | m_Devices |
Module activator for the US module. Loads mitk::USVideoDevice objects from hard disk on module load and write them to hard disk on module unload.
Pointers to mitk::USDevice objects are held to make sure that they will not be deleted while the module is loaded. A service event listener is registered, so that pointers to devices which are registered into micro service from a plugin for example can be held here, too.
Definition at line 34 of file mitkUSActivator.h.
mitk::USActivator::USActivator | ( | ) |
|
override |
|
override |
The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service.
|
protected |
Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly.
|
override |
Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service.
|
protected |
Definition at line 56 of file mitkUSActivator.h.
|
protected |
Definition at line 57 of file mitkUSActivator.h.