Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTrackingDeviceWidgetCollection.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef TrackingDeviceWidgetCollection_H_INCLUDED
18 #define TrackingDeviceWidgetCollection_H_INCLUDED
19 
20 #include <MitkIGTUIExports.h>
21 
24 
25 // Microservices
26 #include <mitkServiceInterface.h>
27 #include <usServiceRegistration.h>
28 
29 
30 namespace mitk {
38  class MITKIGTUI_EXPORT TrackingDeviceWidgetCollection
39  {
40  public:
41 
44 
49  virtual void RegisterAsMicroservice();
50 
54  virtual void UnRegisterMicroservice();
55 
56  void RegisterTrackingDeviceWidget(TrackingDeviceType type, QmitkAbstractTrackingDeviceWidget* widget);
57 
58  QmitkAbstractTrackingDeviceWidget* GetTrackingDeviceWidgetClone(TrackingDeviceType type);
59 
60  private:
61 
63 
64  std::vector<std::pair<TrackingDeviceType, QmitkAbstractTrackingDeviceWidget*> > m_TrackingDeviceWidgets;
65  };
66 } // namespace mitk
67 MITK_DECLARE_SERVICE_INTERFACE(mitk::TrackingDeviceWidgetCollection, "org.mitk.services.TrackingDeviceWidgetCollection")
68 #endif //TrackingDeviceWidgetCollection_H_INCLUDED
This class is a collection for all TrackingDeviceWidgets (derived from AbstractTrackingDeviceWidget) ...
DataCollection - Class to facilitate loading/accessing structured data.
std::string TrackingDeviceType
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")