MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkIGTLDeviceSourceManagementWidget Class Reference

An object of this class offers an UI to manage OpenIGTLink Device Sources and OpenIGTLink Devices. More...

#include <QmitkIGTLDeviceSourceManagementWidget.h>

Inheritance diagram for QmitkIGTLDeviceSourceManagementWidget:

Signals

void AdaptGUIToStateSignal ()
 used for thread seperation, the worker thread must not call AdaptGUIToState directly QT signals are thread safe and seperate the threads
 

Public Member Functions

void LoadSource (mitk::IGTLDeviceSource::Pointer sourceToLoad)
 
 QmitkIGTLDeviceSourceManagementWidget (QWidget *parent=nullptr, Qt::WindowFlags f={})
 
 ~QmitkIGTLDeviceSourceManagementWidget () override
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void OnSendMessage ()
 
void OnMessageReceived ()
 Is called when the current device received a message.
 
void OnCommandReceived ()
 Is called when the current device received a command.
 
void OnLostConnection ()
 Is called when the current device lost a connection to one of its sockets.
 
void OnNewConnection ()
 Is called when the current device connected to another device.
 
void AdaptGUIToState ()
 Adapts the GUI to the state of the device.
 

Protected Member Functions

void OnDeviceStateChanged ()
 Calls AdaptGUIToState()
 
void FillCommandsComboBox ()
 Fills the commands combo box with available commands.
 
virtual void CreateConnections ()
 Creation of the connections.
 
virtual void CreateQtPartControl (QWidget *parent)
 
void DisableSourceControls ()
 

Protected Attributes

Ui::QmitkIGTLDeviceSourceManagementWidgetControls * m_Controls
 
mitk::IGTLDevice::Pointer m_IGTLDevice
 holds the OpenIGTLink device
 
mitk::IGTLDeviceSource::Pointer m_IGTLDeviceSource
 holds the IGTLDeviceSource we are working with.
 
bool m_IsClient
 flag to indicate if the IGTL device is a client or a server
 
unsigned long m_MessageReceivedObserverTag
 
unsigned long m_CommandReceivedObserverTag
 
unsigned long m_LostConnectionObserverTag
 
unsigned long m_NewConnectionObserverTag
 
unsigned long m_StateModifiedObserverTag
 

Detailed Description

An object of this class offers an UI to manage OpenIGTLink Device Sources and OpenIGTLink Devices.

Documentation:

Definition at line 39 of file QmitkIGTLDeviceSourceManagementWidget.h.

Constructor & Destructor Documentation

◆ QmitkIGTLDeviceSourceManagementWidget()

QmitkIGTLDeviceSourceManagementWidget::QmitkIGTLDeviceSourceManagementWidget ( QWidget * parent = nullptr,
Qt::WindowFlags f = {} )

Definition at line 39 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ ~QmitkIGTLDeviceSourceManagementWidget()

QmitkIGTLDeviceSourceManagementWidget::~QmitkIGTLDeviceSourceManagementWidget ( )
override

Definition at line 49 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

Member Function Documentation

◆ AdaptGUIToState

void QmitkIGTLDeviceSourceManagementWidget::AdaptGUIToState ( )
protectedslot

Adapts the GUI to the state of the device.

Definition at line 89 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ AdaptGUIToStateSignal

void QmitkIGTLDeviceSourceManagementWidget::AdaptGUIToStateSignal ( )
signal

used for thread seperation, the worker thread must not call AdaptGUIToState directly QT signals are thread safe and seperate the threads

◆ CreateConnections()

void QmitkIGTLDeviceSourceManagementWidget::CreateConnections ( )
protectedvirtual

Creation of the connections.

Definition at line 72 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ CreateQtPartControl()

void QmitkIGTLDeviceSourceManagementWidget::CreateQtPartControl ( QWidget * parent)
protectedvirtual

Definition at line 58 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ DisableSourceControls()

void QmitkIGTLDeviceSourceManagementWidget::DisableSourceControls ( )
protected

Definition at line 207 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ FillCommandsComboBox()

void QmitkIGTLDeviceSourceManagementWidget::FillCommandsComboBox ( )
protected

Fills the commands combo box with available commands.

◆ LoadSource()

void QmitkIGTLDeviceSourceManagementWidget::LoadSource ( mitk::IGTLDeviceSource::Pointer sourceToLoad)

Loads a source to the widget. The old source is dropped, so be careful, if the source is not saved somewhere else it might be lost. You might want to ask the user if he wants to save the changes before calling this method.

Parameters
sourceToLoadThis source will be loaded and might be modified by the user.

Definition at line 132 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ OnCommandReceived

void QmitkIGTLDeviceSourceManagementWidget::OnCommandReceived ( )
protectedslot

Is called when the current device received a command.

Definition at line 229 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ OnDeviceStateChanged()

void QmitkIGTLDeviceSourceManagementWidget::OnDeviceStateChanged ( )
protected

◆ OnLostConnection

void QmitkIGTLDeviceSourceManagementWidget::OnLostConnection ( )
protectedslot

Is called when the current device lost a connection to one of its sockets.

Definition at line 234 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ OnMessageReceived

void QmitkIGTLDeviceSourceManagementWidget::OnMessageReceived ( )
protectedslot

Is called when the current device received a message.

Definition at line 224 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ OnNewConnection

void QmitkIGTLDeviceSourceManagementWidget::OnNewConnection ( )
protectedslot

Is called when the current device connected to another device.

Definition at line 239 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

◆ OnSendMessage

void QmitkIGTLDeviceSourceManagementWidget::OnSendMessage ( )
protectedslot

Definition at line 215 of file QmitkIGTLDeviceSourceManagementWidget.cpp.

Member Data Documentation

◆ m_CommandReceivedObserverTag

unsigned long QmitkIGTLDeviceSourceManagementWidget::m_CommandReceivedObserverTag
protected

Definition at line 120 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_Controls

Ui::QmitkIGTLDeviceSourceManagementWidgetControls* QmitkIGTLDeviceSourceManagementWidget::m_Controls
protected

Definition at line 108 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_IGTLDevice

mitk::IGTLDevice::Pointer QmitkIGTLDeviceSourceManagementWidget::m_IGTLDevice
protected

holds the OpenIGTLink device

Definition at line 111 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_IGTLDeviceSource

mitk::IGTLDeviceSource::Pointer QmitkIGTLDeviceSourceManagementWidget::m_IGTLDeviceSource
protected

holds the IGTLDeviceSource we are working with.

Definition at line 114 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_IsClient

bool QmitkIGTLDeviceSourceManagementWidget::m_IsClient
protected

flag to indicate if the IGTL device is a client or a server

Definition at line 117 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_LostConnectionObserverTag

unsigned long QmitkIGTLDeviceSourceManagementWidget::m_LostConnectionObserverTag
protected

Definition at line 121 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_MessageReceivedObserverTag

unsigned long QmitkIGTLDeviceSourceManagementWidget::m_MessageReceivedObserverTag
protected

Definition at line 119 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_NewConnectionObserverTag

unsigned long QmitkIGTLDeviceSourceManagementWidget::m_NewConnectionObserverTag
protected

Definition at line 122 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ m_StateModifiedObserverTag

unsigned long QmitkIGTLDeviceSourceManagementWidget::m_StateModifiedObserverTag
protected

Definition at line 123 of file QmitkIGTLDeviceSourceManagementWidget.h.

◆ VIEW_ID

const std::string QmitkIGTLDeviceSourceManagementWidget::VIEW_ID
static
Initial value:
=
"org.mitk.views.igtldevicesourcemanagementwidget"

Definition at line 44 of file QmitkIGTLDeviceSourceManagementWidget.h.


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