Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
This widget allows the user to select a OpenIGTLink message source. More...
#include <QmitkIGTLMessageSourceSelectionWidget.h>
Signals | |
void | IGTLMessageSourceSelected (mitk::IGTLMessageSource::Pointer source) |
This signal is emitted when a new OpenIGTLink message source is selected. More... | |
Public Member Functions | |
QmitkIGTLMessageSourceSelectionWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~QmitkIGTLMessageSourceSelectionWidget () override | |
mitk::IGTLMessageSource::Pointer | GetSelectedIGTLMessageSource () |
mitk::IGTLMessageSource::Pointer | AutoSelectFirstIGTLMessageSource () |
Automatically selects the first available OpenIGTLink message source of the messageSourceSelectionWidget as message source and assigns it to the class member m_CurrentIGTLMessageSource. If there is no OpenIGTLink message source available, a nullptr will be assigned to the m_CurrentIGTLMessageSource. It is important to call this method whenever a new OpenIGTLink client connects to the active OpenIGTLink server. Otherwise, the connection between PLUS and MITK or between Slicer and MITK won't work automatically. More... | |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | IGTLMessageSourceSelected (us::ServiceReferenceU s) |
Protected Member Functions | |
virtual void | CreateConnections () |
Creation of the connections. More... | |
virtual void | CreateQtPartControl (QWidget *parent) |
Protected Attributes | |
Ui::QmitkIGTLMessageSourceSelectionWidgetControls * | m_Controls |
mitk::IGTLMessageSource::Pointer | m_CurrentIGTLMessageSource |
This widget allows the user to select a OpenIGTLink message source.
Documentation: The widget lists all OpenIGTLink message sources which are available as microservice via the module context.
A signal is emmited whenever the selection changes.
Definition at line 40 of file QmitkIGTLMessageSourceSelectionWidget.h.
QmitkIGTLMessageSourceSelectionWidget::QmitkIGTLMessageSourceSelectionWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 21 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
References CreateQtPartControl(), m_Controls, and m_CurrentIGTLMessageSource.
|
override |
Definition at line 30 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
mitk::IGTLMessageSource::Pointer QmitkIGTLMessageSourceSelectionWidget::AutoSelectFirstIGTLMessageSource | ( | ) |
Automatically selects the first available OpenIGTLink message source of the messageSourceSelectionWidget as message source and assigns it to the class member m_CurrentIGTLMessageSource. If there is no OpenIGTLink message source available, a nullptr will be assigned to the m_CurrentIGTLMessageSource. It is important to call this method whenever a new OpenIGTLink client connects to the active OpenIGTLink server. Otherwise, the connection between PLUS and MITK or between Slicer and MITK won't work automatically.
Definition at line 85 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
References us::GetModuleContext(), m_Controls, m_CurrentIGTLMessageSource, and MITK_WARN.
|
protectedvirtual |
Creation of the connections.
Definition at line 48 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
References IGTLMessageSourceSelected(), m_Controls, and mitk::IGTLMessageSource::US_PROPKEY_DEVICENAME.
Referenced by CreateQtPartControl().
|
protectedvirtual |
Definition at line 35 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
References CreateConnections(), and m_Controls.
Referenced by QmitkIGTLMessageSourceSelectionWidget().
mitk::IGTLMessageSource::Pointer QmitkIGTLMessageSourceSelectionWidget::GetSelectedIGTLMessageSource | ( | ) |
Definition at line 80 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
References m_CurrentIGTLMessageSource.
|
signal |
This signal is emitted when a new OpenIGTLink message source is selected.
source | Holds the new selected OpenIGTLink device source. Is null if the old source is deselected and no new source is selected. |
Referenced by CreateConnections(), and IGTLMessageSourceSelected().
|
protectedslot |
Definition at line 63 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
References us::GetModuleContext(), IGTLMessageSourceSelected(), and m_CurrentIGTLMessageSource.
|
protected |
Definition at line 90 of file QmitkIGTLMessageSourceSelectionWidget.h.
Referenced by AutoSelectFirstIGTLMessageSource(), CreateConnections(), CreateQtPartControl(), and QmitkIGTLMessageSourceSelectionWidget().
|
protected |
Definition at line 92 of file QmitkIGTLMessageSourceSelectionWidget.h.
Referenced by AutoSelectFirstIGTLMessageSource(), GetSelectedIGTLMessageSource(), IGTLMessageSourceSelected(), and QmitkIGTLMessageSourceSelectionWidget().
|
static |
Definition at line 46 of file QmitkIGTLMessageSourceSelectionWidget.h.