MITK-IGT
IGT Extension of MITK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
org_mbi_gui_qt_usnavigation_Activator.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
14
15#include <usModuleInitialization.h>
16
20
22
23namespace mitk {
24 ctkPluginContext* org_mbi_gui_qt_usnavigation_Activator::m_Context = nullptr;
25
26 void org_mbi_gui_qt_usnavigation_Activator::start(ctkPluginContext* context)
27 {
28 m_Context = context;
29
30 BERRY_REGISTER_EXTENSION_CLASS(QmitkUltrasoundCalibration, context)
31 BERRY_REGISTER_EXTENSION_CLASS(QmitkUSNavigationMarkerPlacement, context)
32 BERRY_REGISTER_EXTENSION_CLASS(QmitkUSNavigationPerspective, context)
33
34 // create a combined modality persistence object for loading and storing
35 // combined modality objects persistently
36 m_USCombinedModalityPersistence = mitk::USNavigationCombinedModalityPersistence::New();
37 }
38
40 {
41 m_USCombinedModalityPersistence = nullptr;
42 m_Context = nullptr;
43 }
44
46 {
47 return m_Context;
48 }
49}
50
51// necessary for us::GetModuleContext() in USNavigationCombinedModalityPersistence
52// (see: https://www.mail-archive.com/mitk-users@lists.sourceforge.net/msg04421.html)
53US_INITIALIZE_MODULE
View for navigated marker placement using the combined modality. This view utilizes the QmitkUSNaviga...
Perspective for the ultrasound navigation process. This perspective displays the IGT tracking toolbox...
QmitkUltrasoundCalibration.
IGT Exceptions.