MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkPluginActivator.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 "mitkPluginActivator.h"
19
20//#include <mitkPersistenceService.h> //Workaround for bug in persistence module (see bug 16643 for details)
21 //CAN BE REMOVED WHEN THE BUG IS FIXED
22
23namespace mitk {
24
25 ctkPluginContext* PluginActivator::m_Context = nullptr;
26
27void PluginActivator::start(ctkPluginContext* context)
28{
29 // mitk::PersistenceService::LoadModule(); //Workaround for bug in persistence module (see bug 16643 for details)
30 //CAN BE REMOVED WHEN THE BUG IS FIXED
31 m_Context = context;
32
33 BERRY_REGISTER_EXTENSION_CLASS(QmitkMITKIGTNavigationToolManagerView, context)
34 BERRY_REGISTER_EXTENSION_CLASS(QmitkMITKIGTTrackingToolboxView , context)
35 BERRY_REGISTER_EXTENSION_CLASS(QmitkNavigationDataPlayerView , context)
36 BERRY_REGISTER_EXTENSION_CLASS(QmitkIGTNavigationToolCalibration , context)
37 BERRY_REGISTER_EXTENSION_CLASS(QmitkIGTFiducialRegistration, context)
38
39
40}
41
42void PluginActivator::stop(ctkPluginContext* context)
43{
44 m_Context = nullptr;
45
46 Q_UNUSED(context)
47}
48
49ctkPluginContext *PluginActivator::GetContext()
50{
51 return m_Context;
52}
53
54}
IGT Exceptions.