MITK-IGT
IGT Extension of MITK
|
Simple and fast access to a pre-configured TrackingDeviceSource. More...
#include <QmitkIGTConnectionWidget.h>
Signals | |
void | TrackingDeviceConnected () |
signal emitted when TrackingDevice was successfully connected | |
void | TrackingDeviceDisconnected () |
signal emitted when TrackingDevice was successfully disconnected | |
Public Member Functions | |
QmitkIGTConnectionWidget (QWidget *parent=nullptr, Qt::WindowFlags f={}) | |
~QmitkIGTConnectionWidget () override | |
mitk::TrackingDeviceSource::Pointer | GetTrackingDeviceSource () |
mitk::NavigationToolStorage::Pointer | GetNavigationToolStorage () |
Get the NavigationToolStorage holding all tools with corresponding surface objects. | |
void | SetDataStorage (mitk::DataStorage::Pointer dataStorage) |
set DataStorage that is used to put the navigation tools | |
Static Public Attributes | |
static const std::string | VIEW_ID = "org.mitk.views.igtconnectionwidget" |
Protected Slots | |
void | OnConnect () |
Asks the user to specify a tool file and finally connects the TrackingDeviceSource. | |
Protected Member Functions | |
virtual void | CreateConnections () |
Creation of the connections. | |
virtual void | CreateQtPartControl (QWidget *parent) |
bool | LoadToolfile (QString qFilename) |
Load NavigationToolStorage from given filename and set according member. | |
void | RemoveToolNodes () |
Remove the tool nodes currently associated to the tools hold in the NavigationToolStorage from the DataStorage. | |
Protected Attributes | |
Ui::QmitkIGTConnectionWidgetControls * | m_Controls |
mitk::DataStorage::Pointer | m_DataStorage |
data storage to put navigation tools | |
mitk::TrackingDevice::Pointer | m_TrackingDevice |
tracking device currently connected | |
mitk::TrackingDeviceSource::Pointer | m_TrackingDeviceSource |
holds the preconfigured source of the IGT pipeline which is provided by this widget for further processing | |
mitk::NavigationToolStorage::Pointer | m_NavigationToolStorage |
holds all navigation tools currently loaded | |
std::string | m_ErrorMessage |
current problem description | |
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 42 of file QmitkIGTConnectionWidget.h.
QmitkIGTConnectionWidget::QmitkIGTConnectionWidget | ( | QWidget * | parent = nullptr, |
Qt::WindowFlags | f = {} ) |
Definition at line 29 of file QmitkIGTConnectionWidget.cpp.
|
override |
Definition at line 43 of file QmitkIGTConnectionWidget.cpp.
|
protectedvirtual |
Creation of the connections.
Definition at line 57 of file QmitkIGTConnectionWidget.cpp.
|
protectedvirtual |
Definition at line 47 of file QmitkIGTConnectionWidget.cpp.
mitk::NavigationToolStorage::Pointer QmitkIGTConnectionWidget::GetNavigationToolStorage | ( | ) |
Get the NavigationToolStorage holding all tools with corresponding surface objects.
Definition at line 208 of file QmitkIGTConnectionWidget.cpp.
mitk::TrackingDeviceSource::Pointer QmitkIGTConnectionWidget::GetTrackingDeviceSource | ( | ) |
Definition at line 198 of file QmitkIGTConnectionWidget.cpp.
|
protected |
Load NavigationToolStorage from given filename and set according member.
qFilename | file location of the NavigationToolStorage |
Definition at line 134 of file QmitkIGTConnectionWidget.cpp.
|
protectedslot |
Asks the user to specify a tool file and finally connects the TrackingDeviceSource.
Definition at line 65 of file QmitkIGTConnectionWidget.cpp.
|
protected |
Remove the tool nodes currently associated to the tools hold in the NavigationToolStorage from the DataStorage.
Definition at line 186 of file QmitkIGTConnectionWidget.cpp.
void QmitkIGTConnectionWidget::SetDataStorage | ( | mitk::DataStorage::Pointer | dataStorage | ) |
set DataStorage that is used to put the navigation tools
Definition at line 203 of file QmitkIGTConnectionWidget.cpp.
|
signal |
signal emitted when TrackingDevice was successfully connected
|
signal |
signal emitted when TrackingDevice was successfully disconnected
|
protected |
Definition at line 100 of file QmitkIGTConnectionWidget.h.
|
protected |
data storage to put navigation tools
Definition at line 102 of file QmitkIGTConnectionWidget.h.
|
protected |
current problem description
Definition at line 107 of file QmitkIGTConnectionWidget.h.
|
protected |
holds all navigation tools currently loaded
Definition at line 105 of file QmitkIGTConnectionWidget.h.
|
protected |
tracking device currently connected
Definition at line 103 of file QmitkIGTConnectionWidget.h.
|
protected |
holds the preconfigured source of the IGT pipeline which is provided by this widget for further processing
Definition at line 104 of file QmitkIGTConnectionWidget.h.
|
static |
Definition at line 47 of file QmitkIGTConnectionWidget.h.