MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkIGTUIActivator.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#include "mitkIGTConfig.h"
14#include "mitkIGTUIActivator.h"
15
16//All Tracking devices, which should be available by default
23
24//standard tracking devices, which always should be avaiable
31
32// Polhemus tracking device
33#ifdef MITK_USE_POLHEMUS_TRACKER
36#endif
37
38namespace mitk
39{
43
47
62
63 void IGTUIActivator::Unload(us::ModuleContext*)
64 {
65 try
66 {
67 m_DeviceWidgetCollection.UnRegisterMicroservice();
68 }
69 catch (std::exception& e)
70 {
71 MITK_WARN << "Unable to unregister IGTUI DeviceWidgetCollection Microservice: " << e.what();
72 }
73 }
74}
75
76US_EXPORT_MODULE_ACTIVATOR(mitk::IGTUIActivator)
Implementation of a configuration widget for Micron Tracking Devices.
Implementation of a configuration widget for NDI Aurora Devices.
Implementation of a configuration widget for NDI Polaris Devices.
Implementation of a configuration widget for NP Optitrack Tracking Devices.
Implementation of a configuration widget to use an Open IGT Link connection to track any device.
Implementation of a configuration widget for Polhemus Tracking Devices.
Implementation of a configuration widget for a Vitrual Tracking Device.
The load function of this class is executed every time, the module is loaded. Attention: don't do any...
void Unload(us::ModuleContext *) override
void Load(us::ModuleContext *) override
virtual void RegisterAsMicroservice()
Registers this object as a Microservice, making it available to every module and/or plugin....
virtual void UnRegisterMicroservice()
Registers this object as a Microservice, making it available to every module and/or plugin.
void RegisterTrackingDeviceWidget(TrackingDeviceType type, QmitkAbstractTrackingDeviceWidget *widget)
IGT Exceptions.