Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIGTActivator.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 "mitkIGTActivator.h"
18 
19 //All Tracking devices, which should be available by default
26 
27 namespace mitk
28 {
29 
31  {
32  }
33 
35  {
36  }
37 
38  void IGTActivator::Load(us::ModuleContext*)
39  {
40  m_DeviceTypeCollection.RegisterTrackingDeviceType(new mitk::NDIAuroraTypeInformation());
41  m_DeviceTypeCollection.RegisterTrackingDeviceType(new mitk::NDIPolarisTypeInformation());
46  m_DeviceTypeCollection.RegisterAsMicroservice();
47  }
48 
49  void IGTActivator::Unload(us::ModuleContext*)
50  {
51  try
52  {
53  m_DeviceTypeCollection.UnRegisterMicroservice();
54  }
55  catch (std::exception& e)
56  {
57  MITK_WARN << "Unable to unregister IGT DeviceTypeCollection Microservice: "<<e.what();
58  }
59  }
60 
61 }
62 
void Unload(us::ModuleContext *) override
The load function of this class is executed every time, the module is loaded. Attention: no static va...
Type information for tracking devices using OpenIGTLink.
Type information for NDI Polaris.
DataCollection - Class to facilitate loading/accessing structured data.
Type information for Micron Tracking Devices.
#define MITK_WARN
Definition: mitkLogMacros.h:23
virtual void UnRegisterMicroservice()
Registers this object as a Microservice, making it available to every module and/or plugin...
Type information for a virtual tracker.
void Load(us::ModuleContext *) override
Type information for NDI Aurora.
void RegisterTrackingDeviceType(TrackingDeviceTypeInformation *typeInformation)
virtual void RegisterAsMicroservice()
Registers this object as a Microservice, making it available to every module and/or plugin...
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)