Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIGTUIActivator.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkIGTUIActivator.h"
18 
19 //All Tracking devices, which should be available by default
26 
27 //standard tracking devices, which always should be avaiable
28 #include "QmitkNDIAuroraWidget.h"
29 #include "QmitkNDIPolarisWidget.h"
31 #include "QmitkNPOptitrackWidget.h"
33 #include "QmitkOpenIGTLinkWidget.h"
34 
35 namespace mitk
36 {
38  {
39  }
40 
42  {
43  }
44 
45  void IGTUIActivator::Load(us::ModuleContext*)
46  {
47  m_DeviceWidgetCollection.RegisterAsMicroservice();
48  //Add widgets of standard tracking devices
55  }
56 
57  void IGTUIActivator::Unload(us::ModuleContext*)
58  {
59  try
60  {
61  m_DeviceWidgetCollection.UnRegisterMicroservice();
62  }
63  catch (std::exception& e)
64  {
65  MITK_WARN << "Unable to unregister IGTUI DeviceWidgetCollection Microservice: " << e.what();
66  }
67  }
68 }
69 
Implementation of a configuration widget for NDI Polaris Devices.
void Load(us::ModuleContext *) override
DataCollection - Class to facilitate loading/accessing structured data.
void Unload(us::ModuleContext *) override
Implementation of a configuration widget for NP Optitrack Tracking Devices.
#define MITK_WARN
Definition: mitkLogMacros.h:23
Implementation of a configuration widget to use an Open IGT Link connection to track any device...
The load function of this class is executed every time, the module is loaded. Attention: don't do any...
Implementation of a configuration widget for Micron Tracking Devices.
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)
Implementation of a configuration widget for a Vitrual Tracking Device.
Implementation of a configuration widget for NDI Aurora Devices.
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)