Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Simple and fast access to a pre-configured TrackingDeviceSource. More...
#include <QmitkIGTConnectionWidget.h>
Signals | |
void | TrackingDeviceConnected () |
signal emitted when TrackingDevice was successfully connected More... | |
void | TrackingDeviceDisconnected () |
signal emitted when TrackingDevice was successfully disconnected More... | |
Public Member Functions | |
QmitkIGTConnectionWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
~QmitkIGTConnectionWidget () | |
mitk::TrackingDeviceSource::Pointer | GetTrackingDeviceSource () |
mitk::NavigationToolStorage::Pointer | GetNavigationToolStorage () |
Get the NavigationToolStorage holding all tools with corresponding surface objects. More... | |
void | SetDataStorage (mitk::DataStorage::Pointer dataStorage) |
set DataStorage that is used to put the navigation tools More... | |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | OnConnect () |
Asks the user to specify a tool file and finally connects the TrackingDeviceSource. More... | |
Protected Member Functions | |
virtual void | CreateConnections () |
Creation of the connections. More... | |
virtual void | CreateQtPartControl (QWidget *parent) |
bool | LoadToolfile (QString qFilename) |
Load NavigationToolStorage from given filename and set according member. More... | |
void | RemoveToolNodes () |
Remove the tool nodes currently associated to the tools hold in the NavigationToolStorage from the DataStorage. More... | |
Protected Attributes | |
Ui::QmitkIGTConnectionWidgetControls * | m_Controls |
mitk::DataStorage::Pointer | m_DataStorage |
data storage to put navigation tools More... | |
mitk::TrackingDevice::Pointer | m_TrackingDevice |
tracking device currently connected More... | |
mitk::TrackingDeviceSource::Pointer | m_TrackingDeviceSource |
holds the preconfigured source of the IGT pipeline which is provided by this widget for further processing More... | |
mitk::NavigationToolStorage::Pointer | m_NavigationToolStorage |
holds all navigation tools currently loaded More... | |
std::string | m_ErrorMessage |
current problem description More... | |
Simple and fast access to a pre-configured TrackingDeviceSource.
Documentation: This widget creates a fully configured, connected and started TrackingDeviceSource. Clicking "Connect" requires to specify a NavigationToolStorage that holds all tools to be used in the application. Corresponding surfaces are added to the DataStorage that has to be set for the widget.
Inputs: DataStorage Outputs: TrackingDeviceSource, NavigationToolStorage Signals: TrackingDeviceConnected, TrackingDeviceDisconnected
Definition at line 46 of file QmitkIGTConnectionWidget.h.
QmitkIGTConnectionWidget::QmitkIGTConnectionWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 32 of file QmitkIGTConnectionWidget.cpp.
References CreateConnections(), CreateQtPartControl(), m_Controls, m_DataStorage, m_ErrorMessage, m_NavigationToolStorage, m_TrackingDevice, and m_TrackingDeviceSource.
QmitkIGTConnectionWidget::~QmitkIGTConnectionWidget | ( | ) |
Definition at line 46 of file QmitkIGTConnectionWidget.cpp.
|
protectedvirtual |
Creation of the connections.
Definition at line 60 of file QmitkIGTConnectionWidget.cpp.
References m_Controls, and OnConnect().
Referenced by QmitkIGTConnectionWidget().
|
protectedvirtual |
Definition at line 50 of file QmitkIGTConnectionWidget.cpp.
References m_Controls.
Referenced by QmitkIGTConnectionWidget().
mitk::NavigationToolStorage::Pointer QmitkIGTConnectionWidget::GetNavigationToolStorage | ( | ) |
Get the NavigationToolStorage holding all tools with corresponding surface objects.
Definition at line 210 of file QmitkIGTConnectionWidget.cpp.
References m_NavigationToolStorage.
mitk::TrackingDeviceSource::Pointer QmitkIGTConnectionWidget::GetTrackingDeviceSource | ( | ) |
Definition at line 200 of file QmitkIGTConnectionWidget.cpp.
References m_TrackingDeviceSource.
|
protected |
Load NavigationToolStorage from given filename and set according member.
qFilename | file location of the NavigationToolStorage |
Definition at line 136 of file QmitkIGTConnectionWidget.cpp.
References filename, m_DataStorage, m_ErrorMessage, m_NavigationToolStorage, m_TrackingDevice, and mitk::New().
Referenced by OnConnect().
|
protectedslot |
Asks the user to specify a tool file and finally connects the TrackingDeviceSource.
Definition at line 68 of file QmitkIGTConnectionWidget.cpp.
References LoadToolfile(), m_Controls, m_ErrorMessage, m_NavigationToolStorage, m_TrackingDevice, m_TrackingDeviceSource, MITK_ERROR, mitk::New(), RemoveToolNodes(), TrackingDeviceConnected(), and TrackingDeviceDisconnected().
Referenced by CreateConnections().
|
protected |
Remove the tool nodes currently associated to the tools hold in the NavigationToolStorage from the DataStorage.
Definition at line 188 of file QmitkIGTConnectionWidget.cpp.
References m_DataStorage, and m_NavigationToolStorage.
Referenced by OnConnect().
void QmitkIGTConnectionWidget::SetDataStorage | ( | mitk::DataStorage::Pointer | dataStorage | ) |
set DataStorage that is used to put the navigation tools
Definition at line 205 of file QmitkIGTConnectionWidget.cpp.
References m_DataStorage.
|
signal |
signal emitted when TrackingDevice was successfully connected
Referenced by OnConnect().
|
signal |
signal emitted when TrackingDevice was successfully disconnected
Referenced by OnConnect().
|
protected |
Definition at line 104 of file QmitkIGTConnectionWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), OnConnect(), and QmitkIGTConnectionWidget().
|
protected |
data storage to put navigation tools
Definition at line 106 of file QmitkIGTConnectionWidget.h.
Referenced by LoadToolfile(), QmitkIGTConnectionWidget(), RemoveToolNodes(), and SetDataStorage().
|
protected |
current problem description
Definition at line 111 of file QmitkIGTConnectionWidget.h.
Referenced by LoadToolfile(), OnConnect(), and QmitkIGTConnectionWidget().
|
protected |
holds all navigation tools currently loaded
Definition at line 109 of file QmitkIGTConnectionWidget.h.
Referenced by GetNavigationToolStorage(), LoadToolfile(), OnConnect(), QmitkIGTConnectionWidget(), and RemoveToolNodes().
|
protected |
tracking device currently connected
Definition at line 107 of file QmitkIGTConnectionWidget.h.
Referenced by LoadToolfile(), OnConnect(), and QmitkIGTConnectionWidget().
|
protected |
holds the preconfigured source of the IGT pipeline which is provided by this widget for further processing
Definition at line 108 of file QmitkIGTConnectionWidget.h.
Referenced by GetTrackingDeviceSource(), OnConnect(), and QmitkIGTConnectionWidget().
|
static |
Definition at line 51 of file QmitkIGTConnectionWidget.h.