Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkIGTConnectionWidget.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 QmitkIGTConnectionWidget_H
18 #define QmitkIGTConnectionWidget_H
19 
20 #include <QWidget>
21 #include "MitkIGTUIExports.h"
22 #include "ui_QmitkIGTConnectionWidgetControls.h"
23 
24 #include "mitkDataStorage.h"
26 #include "mitkTrackingDevice.h"
28 
29 
30 //itk headers
31 
46 class MITKIGTUI_EXPORT QmitkIGTConnectionWidget : public QWidget
47 {
48  Q_OBJECT
49 
50  public:
51  static const std::string VIEW_ID;
52 
53  QmitkIGTConnectionWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
55 
56  /* @return Returns the preconfigured and connected TrackingDeviceSource ready to use in an IGT pipeline.
57  */
58  mitk::TrackingDeviceSource::Pointer GetTrackingDeviceSource();
62  mitk::NavigationToolStorage::Pointer GetNavigationToolStorage();
66  void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
67 
68 
69  signals:
73  void TrackingDeviceConnected();
77  void TrackingDeviceDisconnected();
78 
79  protected slots:
83  void OnConnect();
84 
85  protected:
86 
88  virtual void CreateConnections();
89 
90  virtual void CreateQtPartControl(QWidget *parent);
91 
97  bool LoadToolfile(QString qFilename);
98 
102  void RemoveToolNodes();
103 
104  Ui::QmitkIGTConnectionWidgetControls* m_Controls;
105 
110 
111  std::string m_ErrorMessage;
112 };
113 #endif
itk::SmartPointer< Self > Pointer
Ui::QmitkIGTConnectionWidgetControls * m_Controls
mitk::DataStorage::Pointer m_DataStorage
data storage to put navigation tools
Simple and fast access to a pre-configured TrackingDeviceSource.
std::string m_ErrorMessage
current problem description
mitk::TrackingDeviceSource::Pointer m_TrackingDeviceSource
holds the preconfigured source of the IGT pipeline which is provided by this widget for further proce...
mitk::NavigationToolStorage::Pointer m_NavigationToolStorage
holds all navigation tools currently loaded
static const std::string VIEW_ID
mitk::TrackingDevice::Pointer m_TrackingDevice
tracking device currently connected