MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkIGTActivator.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 "mitkIGTActivator.h"
15
16//All Tracking devices, which should be available by default
20#ifdef MITK_USE_MICRON_TRACKER
22#endif
23#ifdef MITK_USE_OPTITRACK_TRACKER
25#endif
27#ifdef MITK_USE_POLHEMUS_TRACKER
29#endif
30
31namespace mitk
32{
33
37
41
42 void IGTActivator::Load(us::ModuleContext*)
43 {
48#ifdef MITK_USE_OPTITRACK_TRACKER
50#endif
51#ifdef MITK_USE_MICRON_TRACKER
53#endif
54#ifdef MITK_USE_POLHEMUS_TRACKER
56#endif
57 m_DeviceTypeCollection.RegisterAsMicroservice();
58 }
59
60 void IGTActivator::Unload(us::ModuleContext*)
61 {
62 try
63 {
64 m_DeviceTypeCollection.UnRegisterMicroservice();
65 }
66 catch (std::exception& e)
67 {
68 MITK_WARN << "Unable to unregister IGT DeviceTypeCollection Microservice: "<<e.what();
69 }
70 }
71
72}
73
74US_EXPORT_MODULE_ACTIVATOR(mitk::IGTActivator)
The load function of this class is executed every time, the module is loaded. Attention: no static va...
void Unload(us::ModuleContext *) override
void Load(us::ModuleContext *) override
Type information for Micron Tracking Devices.
Type information for NDI Aurora.
Type information for NDI Polaris.
Type information for tracking devices using OpenIGTLink.
Type information for Polhemus Tracking Devices.
void RegisterTrackingDeviceType(TrackingDeviceTypeInformation *typeInformation)
virtual void UnRegisterMicroservice()
Registers this object as a Microservice, making it available to every module and/or plugin.
virtual void RegisterAsMicroservice()
Registers this object as a Microservice, making it available to every module and/or plugin....
Type information for a virtual tracker.
IGT Exceptions.