Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkIGTLStreamingManagementWidget Class Reference

An object of this class offers an UI to manage the streaming of message sources. More...

#include <QmitkIGTLStreamingManagementWidget.h>

Inheritance diagram for QmitkIGTLStreamingManagementWidget:
Collaboration diagram for QmitkIGTLStreamingManagementWidget:

Signals

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

Public Member Functions

void LoadSource (mitk::IGTLMessageProvider::Pointer provider)
 
 QmitkIGTLStreamingManagementWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkIGTLStreamingManagementWidget () override
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void OnStartStreaming ()
 
void OnStopStreaming ()
 
void OnStreamingTimerTimeout ()
 
void SourceSelected (mitk::IGTLMessageSource::Pointer source)
 Is called when a new source is selected. More...
 
void AdaptGUIToState ()
 Adapts the GUI to the state of the device. More...
 
void SelectSourceAndAdaptGUI ()
 selects the current source and adapts the GUI according to the selection More...
 

Protected Member Functions

void OnMessageReceived ()
 Is called when the current device received a message. More...
 
void OnCommandReceived ()
 Is called when the current device received a command. More...
 
void OnLostConnection ()
 Is called when the current device lost a connection to one of its sockets. More...
 
void OnNewConnection ()
 Is called when the current device connected to another device. More...
 
void OnStartStreamingTimer ()
 Is called when provider requests the start of the streaming timer. More...
 
void OnStopStreamingTimer ()
 Is called when provider requests the stop of the streaming timer. More...
 
void OnDeviceStateChanged ()
 Calls AdaptGUIToState() More...
 
void FillCommandsComboBox ()
 Fills the commands combo box with available commands. More...
 
virtual void CreateConnections ()
 Creation of the connections. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 
void DisableSourceControls ()
 
void RemoveObserver ()
 

Protected Attributes

Ui::QmitkIGTLStreamingManagementWidgetControls * m_Controls
 
mitk::IGTLDevice::Pointer m_IGTLDevice
 holds the OpenIGTLink device More...
 
mitk::IGTLMessageProvider::Pointer m_IGTLMsgProvider
 holds the IGTL Message Provider that will send the stream More...
 
mitk::IGTLMessageSource::Pointer m_IGTLMsgSource
 holds the IGTLDeviceSource we are working with. More...
 
bool m_IsClient
 flag to indicate if the IGTL device is a client or a server More...
 
QTimer m_StreamingTimer
 the streaming timer that periodically calls the update method of the provider More...
 
unsigned long m_MessageReceivedObserverTag
 
unsigned long m_CommandReceivedObserverTag
 
unsigned long m_LostConnectionObserverTag
 
unsigned long m_NewConnectionObserverTag
 
unsigned long m_StateModifiedObserverTag
 
unsigned long m_StartStreamingTimerObserverTag
 
unsigned long m_StopStreamingTimerObserverTag
 

Detailed Description

An object of this class offers an UI to manage the streaming of message sources.

Documentation:

Definition at line 39 of file QmitkIGTLStreamingManagementWidget.h.

Constructor & Destructor Documentation

◆ QmitkIGTLStreamingManagementWidget()

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

◆ ~QmitkIGTLStreamingManagementWidget()

QmitkIGTLStreamingManagementWidget::~QmitkIGTLStreamingManagementWidget ( )
override

Member Function Documentation

◆ AdaptGUIToState

void QmitkIGTLStreamingManagementWidget::AdaptGUIToState ( )
protectedslot

Adapts the GUI to the state of the device.

◆ AdaptGUIToStateSignal

void QmitkIGTLStreamingManagementWidget::AdaptGUIToStateSignal ( )
signal

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

◆ CreateConnections()

virtual void QmitkIGTLStreamingManagementWidget::CreateConnections ( )
protectedvirtual

Creation of the connections.

◆ CreateQtPartControl()

virtual void QmitkIGTLStreamingManagementWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

◆ DisableSourceControls()

void QmitkIGTLStreamingManagementWidget::DisableSourceControls ( )
protected

◆ FillCommandsComboBox()

void QmitkIGTLStreamingManagementWidget::FillCommandsComboBox ( )
protected

Fills the commands combo box with available commands.

◆ LoadSource()

void QmitkIGTLStreamingManagementWidget::LoadSource ( mitk::IGTLMessageProvider::Pointer  provider)

Loads a provider 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
providerThis provider will be loaded and might be modified by the user.

◆ OnCommandReceived()

void QmitkIGTLStreamingManagementWidget::OnCommandReceived ( )
protected

Is called when the current device received a command.

◆ OnDeviceStateChanged()

void QmitkIGTLStreamingManagementWidget::OnDeviceStateChanged ( )
protected

◆ OnLostConnection()

void QmitkIGTLStreamingManagementWidget::OnLostConnection ( )
protected

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

◆ OnMessageReceived()

void QmitkIGTLStreamingManagementWidget::OnMessageReceived ( )
protected

Is called when the current device received a message.

◆ OnNewConnection()

void QmitkIGTLStreamingManagementWidget::OnNewConnection ( )
protected

Is called when the current device connected to another device.

◆ OnStartStreaming

void QmitkIGTLStreamingManagementWidget::OnStartStreaming ( )
protectedslot

◆ OnStartStreamingTimer()

void QmitkIGTLStreamingManagementWidget::OnStartStreamingTimer ( )
protected

Is called when provider requests the start of the streaming timer.

◆ OnStopStreaming

void QmitkIGTLStreamingManagementWidget::OnStopStreaming ( )
protectedslot

◆ OnStopStreamingTimer()

void QmitkIGTLStreamingManagementWidget::OnStopStreamingTimer ( )
protected

Is called when provider requests the stop of the streaming timer.

◆ OnStreamingTimerTimeout

void QmitkIGTLStreamingManagementWidget::OnStreamingTimerTimeout ( )
protectedslot

◆ RemoveObserver()

void QmitkIGTLStreamingManagementWidget::RemoveObserver ( )
protected

◆ SelectSourceAndAdaptGUI

void QmitkIGTLStreamingManagementWidget::SelectSourceAndAdaptGUI ( )
protectedslot

selects the current source and adapts the GUI according to the selection

◆ SelectSourceAndAdaptGUISignal

void QmitkIGTLStreamingManagementWidget::SelectSourceAndAdaptGUISignal ( )
signal

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

◆ SourceSelected

void QmitkIGTLStreamingManagementWidget::SourceSelected ( mitk::IGTLMessageSource::Pointer  source)
protectedslot

Is called when a new source is selected.

Parameters
sourcethe newly selected source

Member Data Documentation

◆ m_CommandReceivedObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_CommandReceivedObserverTag
protected

Definition at line 156 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_Controls

Ui::QmitkIGTLStreamingManagementWidgetControls* QmitkIGTLStreamingManagementWidget::m_Controls
protected

Definition at line 138 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_IGTLDevice

mitk::IGTLDevice::Pointer QmitkIGTLStreamingManagementWidget::m_IGTLDevice
protected

holds the OpenIGTLink device

Definition at line 141 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_IGTLMsgProvider

mitk::IGTLMessageProvider::Pointer QmitkIGTLStreamingManagementWidget::m_IGTLMsgProvider
protected

holds the IGTL Message Provider that will send the stream

Definition at line 144 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_IGTLMsgSource

mitk::IGTLMessageSource::Pointer QmitkIGTLStreamingManagementWidget::m_IGTLMsgSource
protected

holds the IGTLDeviceSource we are working with.

Definition at line 147 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_IsClient

bool QmitkIGTLStreamingManagementWidget::m_IsClient
protected

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

Definition at line 150 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_LostConnectionObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_LostConnectionObserverTag
protected

Definition at line 157 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_MessageReceivedObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_MessageReceivedObserverTag
protected

Definition at line 155 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_NewConnectionObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_NewConnectionObserverTag
protected

Definition at line 158 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_StartStreamingTimerObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_StartStreamingTimerObserverTag
protected

Definition at line 160 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_StateModifiedObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_StateModifiedObserverTag
protected

Definition at line 159 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_StopStreamingTimerObserverTag

unsigned long QmitkIGTLStreamingManagementWidget::m_StopStreamingTimerObserverTag
protected

Definition at line 161 of file QmitkIGTLStreamingManagementWidget.h.

◆ m_StreamingTimer

QTimer QmitkIGTLStreamingManagementWidget::m_StreamingTimer
protected

the streaming timer that periodically calls the update method of the provider

Definition at line 153 of file QmitkIGTLStreamingManagementWidget.h.

◆ VIEW_ID

const std::string QmitkIGTLStreamingManagementWidget::VIEW_ID
static

Definition at line 44 of file QmitkIGTLStreamingManagementWidget.h.


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