MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSUIActivator.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 "mitkUSUIActivator.h"
15
19
23
24void mitk::USUIActivator::Load(us::ModuleContext* context)
25{
26 m_USCustomWidgets.push_back(new QmitkUSControlsCustomVideoDeviceWidget());
27
28 for (auto &widget : m_USCustomWidgets)
29 {
30 context->RegisterService(widget, widget->GetServiceProperties());
31 }
32}
33
34void mitk::USUIActivator::Unload(us::ModuleContext* /*context*/)
35{
36 for (auto &widget : m_USCustomWidgets)
37 {
38 delete widget;
39 }
40}
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomCon...
void Load(us::ModuleContext *context) override
void Unload(us::ModuleContext *context) override