Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
An object of this class offers an UI to manage the streaming of message sources. More...
#include <QmitkIGTLStreamingManagementWidget.h>
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=0, Qt::WindowFlags f=0) | |
~QmitkIGTLStreamingManagementWidget () | |
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 |
An object of this class offers an UI to manage the streaming of message sources.
Documentation:
Definition at line 43 of file QmitkIGTLStreamingManagementWidget.h.
QmitkIGTLStreamingManagementWidget::QmitkIGTLStreamingManagementWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 43 of file QmitkIGTLStreamingManagementWidget.cpp.
References CreateQtPartControl(), m_Controls, and m_IGTLDevice.
QmitkIGTLStreamingManagementWidget::~QmitkIGTLStreamingManagementWidget | ( | ) |
Definition at line 52 of file QmitkIGTLStreamingManagementWidget.cpp.
References RemoveObserver().
|
protectedslot |
Adapts the GUI to the state of the device.
Definition at line 105 of file QmitkIGTLStreamingManagementWidget.cpp.
References DisableSourceControls(), m_Controls, m_IGTLDevice, m_IGTLMsgProvider, m_IGTLMsgSource, mitkThrow, mitk::IGTLDevice::Ready, mitk::IGTLDevice::Running, and mitk::IGTLDevice::Setup.
Referenced by CreateConnections(), LoadSource(), OnStartStreaming(), OnStopStreaming(), and SourceSelected().
|
signal |
used for thread seperation, the worker thread must not call AdaptGUIToState directly. QT signals are thread safe and seperate the threads
Referenced by CreateConnections(), OnDeviceStateChanged(), OnLostConnection(), OnStartStreamingTimer(), and OnStopStreamingTimer().
|
protectedvirtual |
Creation of the connections.
Definition at line 86 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToState(), AdaptGUIToStateSignal(), m_Controls, OnStartStreaming(), OnStopStreaming(), SelectSourceAndAdaptGUI(), SelectSourceAndAdaptGUISignal(), and SourceSelected().
Referenced by CreateQtPartControl().
|
protectedvirtual |
Definition at line 72 of file QmitkIGTLStreamingManagementWidget.cpp.
References CreateConnections(), and m_Controls.
Referenced by QmitkIGTLStreamingManagementWidget().
|
protected |
Definition at line 270 of file QmitkIGTLStreamingManagementWidget.cpp.
References m_Controls.
Referenced by AdaptGUIToState(), LoadSource(), and SourceSelected().
|
protected |
Fills the commands combo box with available commands.
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.
provider | This provider will be loaded and might be modified by the user. |
Definition at line 193 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToState(), DisableSourceControls(), m_IGTLDevice, m_IGTLMsgProvider, m_IsClient, m_LostConnectionObserverTag, m_NewConnectionObserverTag, m_StartStreamingTimerObserverTag, m_StateModifiedObserverTag, m_StopStreamingTimerObserverTag, m_StreamingTimer, mitk::New(), OnDeviceStateChanged(), OnLostConnection(), OnNewConnection(), OnStartStreamingTimer(), OnStopStreamingTimer(), and RemoveObserver().
|
protected |
Is called when the current device received a command.
Definition at line 315 of file QmitkIGTLStreamingManagementWidget.cpp.
|
protected |
Calls AdaptGUIToState()
Definition at line 319 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToStateSignal().
Referenced by LoadSource().
|
protected |
Is called when the current device lost a connection to one of its sockets.
Definition at line 324 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToStateSignal().
Referenced by LoadSource().
|
protected |
Is called when the current device received a message.
Definition at line 311 of file QmitkIGTLStreamingManagementWidget.cpp.
|
protected |
Is called when the current device connected to another device.
Definition at line 329 of file QmitkIGTLStreamingManagementWidget.cpp.
References SelectSourceAndAdaptGUISignal().
Referenced by LoadSource().
|
protectedslot |
Definition at line 298 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToState(), m_Controls, m_IGTLMsgProvider, and m_IGTLMsgSource.
Referenced by CreateConnections().
|
protected |
Is called when provider requests the start of the streaming timer.
Definition at line 334 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToStateSignal(), m_IGTLMsgProvider, m_StreamingTimer, and OnStreamingTimerTimeout().
Referenced by LoadSource().
|
protectedslot |
Definition at line 305 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToState(), m_IGTLMsgProvider, and m_IGTLMsgSource.
Referenced by CreateConnections().
|
protected |
Is called when provider requests the stop of the streaming timer.
Definition at line 348 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToStateSignal(), m_IGTLMsgProvider, m_StreamingTimer, and OnStreamingTimerTimeout().
Referenced by LoadSource().
|
protectedslot |
Definition at line 361 of file QmitkIGTLStreamingManagementWidget.cpp.
References m_IGTLMsgProvider, and m_IGTLMsgSource.
Referenced by OnStartStreamingTimer(), and OnStopStreamingTimer().
|
protected |
Definition at line 57 of file QmitkIGTLStreamingManagementWidget.cpp.
References m_IGTLDevice, m_IGTLMsgProvider, m_LostConnectionObserverTag, m_NewConnectionObserverTag, m_StartStreamingTimerObserverTag, m_StateModifiedObserverTag, and m_StopStreamingTimerObserverTag.
Referenced by LoadSource(), and ~QmitkIGTLStreamingManagementWidget().
|
protectedslot |
selects the current source and adapts the GUI according to the selection
Definition at line 369 of file QmitkIGTLStreamingManagementWidget.cpp.
References m_Controls, and SourceSelected().
Referenced by CreateConnections().
|
signal |
used for thread seperation, the worker thread must not call SelectSourceAndAdaptGUI directly. QT signals are thread safe and seperate the threads
Referenced by CreateConnections(), and OnNewConnection().
|
protectedslot |
Is called when a new source is selected.
source | the newly selected source |
Definition at line 282 of file QmitkIGTLStreamingManagementWidget.cpp.
References AdaptGUIToState(), DisableSourceControls(), m_Controls, and m_IGTLMsgSource.
Referenced by CreateConnections(), and SelectSourceAndAdaptGUI().
|
protected |
Definition at line 160 of file QmitkIGTLStreamingManagementWidget.h.
|
protected |
Definition at line 142 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by AdaptGUIToState(), CreateConnections(), CreateQtPartControl(), DisableSourceControls(), OnStartStreaming(), QmitkIGTLStreamingManagementWidget(), SelectSourceAndAdaptGUI(), and SourceSelected().
|
protected |
holds the OpenIGTLink device
Definition at line 145 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by AdaptGUIToState(), LoadSource(), QmitkIGTLStreamingManagementWidget(), and RemoveObserver().
|
protected |
holds the IGTL Message Provider that will send the stream
Definition at line 148 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by AdaptGUIToState(), LoadSource(), OnStartStreaming(), OnStartStreamingTimer(), OnStopStreaming(), OnStopStreamingTimer(), OnStreamingTimerTimeout(), and RemoveObserver().
|
protected |
holds the IGTLDeviceSource we are working with.
Definition at line 151 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by AdaptGUIToState(), OnStartStreaming(), OnStopStreaming(), OnStreamingTimerTimeout(), and SourceSelected().
|
protected |
flag to indicate if the IGTL device is a client or a server
Definition at line 154 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource().
|
protected |
Definition at line 161 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource(), and RemoveObserver().
|
protected |
Definition at line 159 of file QmitkIGTLStreamingManagementWidget.h.
|
protected |
Definition at line 162 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource(), and RemoveObserver().
|
protected |
Definition at line 164 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource(), and RemoveObserver().
|
protected |
Definition at line 163 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource(), and RemoveObserver().
|
protected |
Definition at line 165 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource(), and RemoveObserver().
|
protected |
the streaming timer that periodically calls the update method of the provider
Definition at line 157 of file QmitkIGTLStreamingManagementWidget.h.
Referenced by LoadSource(), OnStartStreamingTimer(), and OnStopStreamingTimer().
|
static |
Definition at line 48 of file QmitkIGTLStreamingManagementWidget.h.