Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkIGTConnectionWidget Class Reference

Simple and fast access to a pre-configured TrackingDeviceSource. More...

#include <QmitkIGTConnectionWidget.h>

Inheritance diagram for QmitkIGTConnectionWidget:
Collaboration diagram for QmitkIGTConnectionWidget:

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=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkIGTConnectionWidget () override
 
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...
 

Detailed 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.

Constructor & Destructor Documentation

◆ QmitkIGTConnectionWidget()

QmitkIGTConnectionWidget::QmitkIGTConnectionWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)

◆ ~QmitkIGTConnectionWidget()

QmitkIGTConnectionWidget::~QmitkIGTConnectionWidget ( )
override

Definition at line 43 of file QmitkIGTConnectionWidget.cpp.

Member Function Documentation

◆ CreateConnections()

void QmitkIGTConnectionWidget::CreateConnections ( )
protectedvirtual

Creation of the connections.

Definition at line 57 of file QmitkIGTConnectionWidget.cpp.

References m_Controls, and OnConnect().

Referenced by QmitkIGTConnectionWidget().

◆ CreateQtPartControl()

void QmitkIGTConnectionWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Definition at line 47 of file QmitkIGTConnectionWidget.cpp.

References m_Controls.

Referenced by QmitkIGTConnectionWidget().

◆ GetNavigationToolStorage()

mitk::NavigationToolStorage::Pointer QmitkIGTConnectionWidget::GetNavigationToolStorage ( )

Get the NavigationToolStorage holding all tools with corresponding surface objects.

Definition at line 208 of file QmitkIGTConnectionWidget.cpp.

References m_NavigationToolStorage.

◆ GetTrackingDeviceSource()

mitk::TrackingDeviceSource::Pointer QmitkIGTConnectionWidget::GetTrackingDeviceSource ( )

Definition at line 198 of file QmitkIGTConnectionWidget.cpp.

References m_TrackingDeviceSource.

◆ LoadToolfile()

bool QmitkIGTConnectionWidget::LoadToolfile ( QString  qFilename)
protected

Load NavigationToolStorage from given filename and set according member.

Parameters
qFilenamefile location of the NavigationToolStorage
Returns
success of load operation (true if load successful, false otherwise) m_ErrorMessage holds the problem description

Definition at line 134 of file QmitkIGTConnectionWidget.cpp.

References m_DataStorage, m_ErrorMessage, m_NavigationToolStorage, and m_TrackingDevice.

Referenced by OnConnect().

◆ OnConnect

void QmitkIGTConnectionWidget::OnConnect ( )
protectedslot

◆ RemoveToolNodes()

void QmitkIGTConnectionWidget::RemoveToolNodes ( )
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.

References m_DataStorage, and m_NavigationToolStorage.

Referenced by OnConnect().

◆ SetDataStorage()

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.

References m_DataStorage.

◆ TrackingDeviceConnected

void QmitkIGTConnectionWidget::TrackingDeviceConnected ( )
signal

signal emitted when TrackingDevice was successfully connected

Referenced by OnConnect().

◆ TrackingDeviceDisconnected

void QmitkIGTConnectionWidget::TrackingDeviceDisconnected ( )
signal

signal emitted when TrackingDevice was successfully disconnected

Referenced by OnConnect().

Member Data Documentation

◆ m_Controls

Ui::QmitkIGTConnectionWidgetControls* QmitkIGTConnectionWidget::m_Controls
protected

◆ m_DataStorage

mitk::DataStorage::Pointer QmitkIGTConnectionWidget::m_DataStorage
protected

data storage to put navigation tools

Definition at line 102 of file QmitkIGTConnectionWidget.h.

Referenced by LoadToolfile(), QmitkIGTConnectionWidget(), RemoveToolNodes(), and SetDataStorage().

◆ m_ErrorMessage

std::string QmitkIGTConnectionWidget::m_ErrorMessage
protected

current problem description

Definition at line 107 of file QmitkIGTConnectionWidget.h.

Referenced by LoadToolfile(), OnConnect(), and QmitkIGTConnectionWidget().

◆ m_NavigationToolStorage

mitk::NavigationToolStorage::Pointer QmitkIGTConnectionWidget::m_NavigationToolStorage
protected

holds all navigation tools currently loaded

Definition at line 105 of file QmitkIGTConnectionWidget.h.

Referenced by GetNavigationToolStorage(), LoadToolfile(), OnConnect(), QmitkIGTConnectionWidget(), and RemoveToolNodes().

◆ m_TrackingDevice

mitk::TrackingDevice::Pointer QmitkIGTConnectionWidget::m_TrackingDevice
protected

tracking device currently connected

Definition at line 103 of file QmitkIGTConnectionWidget.h.

Referenced by LoadToolfile(), OnConnect(), and QmitkIGTConnectionWidget().

◆ m_TrackingDeviceSource

mitk::TrackingDeviceSource::Pointer QmitkIGTConnectionWidget::m_TrackingDeviceSource
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.

Referenced by GetTrackingDeviceSource(), OnConnect(), and QmitkIGTConnectionWidget().

◆ VIEW_ID

const std::string QmitkIGTConnectionWidget::VIEW_ID
static

Definition at line 47 of file QmitkIGTConnectionWidget.h.


The documentation for this class was generated from the following files: