MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkIGTConnectionWidget.h
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#ifndef QmitkIGTConnectionWidget_h
14#define QmitkIGTConnectionWidget_h
15
16#include <QWidget>
17#include "MitkIGTUIExports.h"
18#include "ui_QmitkIGTConnectionWidgetControls.h"
19
20#include "mitkDataStorage.h"
22#include "mitkTrackingDevice.h"
24
25
26//itk headers
27
42class MITKIGTUI_EXPORT QmitkIGTConnectionWidget : public QWidget
43{
44 Q_OBJECT
45
46 public:
47 static const std::string VIEW_ID;
48
49 QmitkIGTConnectionWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {});
51
52 /* @return Returns the preconfigured and connected TrackingDeviceSource ready to use in an IGT pipeline.
53 */
54 mitk::TrackingDeviceSource::Pointer GetTrackingDeviceSource();
58 mitk::NavigationToolStorage::Pointer GetNavigationToolStorage();
62 void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
63
64
65 signals:
74
75 protected slots:
79 void OnConnect();
80
81 protected:
82
84 virtual void CreateConnections();
85
86 virtual void CreateQtPartControl(QWidget *parent);
87
93 bool LoadToolfile(QString qFilename);
94
98 void RemoveToolNodes();
99
100 Ui::QmitkIGTConnectionWidgetControls* m_Controls;
101
102 mitk::DataStorage::Pointer m_DataStorage;
103 mitk::TrackingDevice::Pointer m_TrackingDevice;
104 mitk::TrackingDeviceSource::Pointer m_TrackingDeviceSource;
105 mitk::NavigationToolStorage::Pointer m_NavigationToolStorage;
106
107 std::string m_ErrorMessage;
108};
109#endif
Simple and fast access to a pre-configured TrackingDeviceSource.
void TrackingDeviceDisconnected()
signal emitted when TrackingDevice was successfully disconnected
std::string m_ErrorMessage
current problem description
static const std::string VIEW_ID
mitk::NavigationToolStorage::Pointer m_NavigationToolStorage
holds all navigation tools currently loaded
mitk::TrackingDevice::Pointer m_TrackingDevice
tracking device currently connected
mitk::DataStorage::Pointer m_DataStorage
data storage to put navigation tools
void TrackingDeviceConnected()
signal emitted when TrackingDevice was successfully connected
Ui::QmitkIGTConnectionWidgetControls * m_Controls
mitk::TrackingDeviceSource::Pointer m_TrackingDeviceSource
holds the preconfigured source of the IGT pipeline which is provided by this widget for further proce...