MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::USActivator Class Reference

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>

Inheritance diagram for mitk::USActivator:

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.
 
void Unload (us::ModuleContext *context) override
 Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service.
 

Protected Member Functions

void OnServiceEvent (const us::ServiceEvent event)
 Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly.
 

Protected Attributes

us::ModuleContext * m_Context
 
std::vector< USDevice::Pointer > m_Devices
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ USActivator()

mitk::USActivator::USActivator ( )

Definition at line 16 of file mitkUSActivator.cpp.

◆ ~USActivator()

mitk::USActivator::~USActivator ( )
override

Definition at line 20 of file mitkUSActivator.cpp.

Member Function Documentation

◆ Load()

void mitk::USActivator::Load ( us::ModuleContext * context)
override

The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service.

Definition at line 24 of file mitkUSActivator.cpp.

◆ OnServiceEvent()

void mitk::USActivator::OnServiceEvent ( const us::ServiceEvent event)
protected

Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly.

Definition at line 59 of file mitkUSActivator.cpp.

◆ Unload()

void mitk::USActivator::Unload ( us::ModuleContext * context)
override

Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service.

Definition at line 44 of file mitkUSActivator.cpp.

Member Data Documentation

◆ m_Context

us::ModuleContext* mitk::USActivator::m_Context
protected

Definition at line 56 of file mitkUSActivator.h.

◆ m_Devices

std::vector<USDevice::Pointer> mitk::USActivator::m_Devices
protected

Definition at line 57 of file mitkUSActivator.h.


The documentation for this class was generated from the following files: