Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkUSUIActivator.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkUSUIActivator.h"
16 
18 {
19 }
20 
22 {
23 }
24 
25 void mitk::USUIActivator::Load(us::ModuleContext* context)
26 {
29 
30  for (auto &widget : m_USCustomWidgets)
31  {
32  context->RegisterService(widget, widget->GetServiceProperties());
33  }
34 }
35 
36 void mitk::USUIActivator::Unload(us::ModuleContext* /*context*/)
37 {
38  for (auto &widget : m_USCustomWidgets)
39  {
40  delete widget;
41  }
42 }
Widget for custom controls of mitk::USDiPhASDevice. This class handles the itk::USDiPhASDeviceCustomC...
void Load(us::ModuleContext *context) override
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomCon...
void Unload(us::ModuleContext *context) override
std::vector< QmitkUSAbstractCustomWidget * > m_USCustomWidgets
Contains the currently available US custom controls widgets which are loaded on Load() ...