This widget allows the user to select a OpenIGTLink message source.
More...
#include <QmitkIGTLMessageSourceSelectionWidget.h>
|
void | IGTLMessageSourceSelected (mitk::IGTLMessageSource::Pointer source) |
| This signal is emitted when a new OpenIGTLink message source is selected.
|
|
|
| QmitkIGTLMessageSourceSelectionWidget (QWidget *parent=nullptr, Qt::WindowFlags f={}) |
|
| ~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.
|
|
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::QmitkIGTLMessageSourceSelectionWidget |
( |
QWidget * | parent = nullptr, |
|
|
Qt::WindowFlags | f = {} ) |
◆ ~QmitkIGTLMessageSourceSelectionWidget()
QmitkIGTLMessageSourceSelectionWidget::~QmitkIGTLMessageSourceSelectionWidget |
( |
| ) |
|
|
override |
◆ AutoSelectFirstIGTLMessageSource()
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.
- Returns
- The pointer to the automatically selected message source. This might be a nullptr, if there is no message source available.
Definition at line 85 of file QmitkIGTLMessageSourceSelectionWidget.cpp.
◆ CreateConnections()
void QmitkIGTLMessageSourceSelectionWidget::CreateConnections |
( |
| ) |
|
|
protectedvirtual |
◆ CreateQtPartControl()
void QmitkIGTLMessageSourceSelectionWidget::CreateQtPartControl |
( |
QWidget * | parent | ) |
|
|
protectedvirtual |
◆ GetSelectedIGTLMessageSource()
mitk::IGTLMessageSource::Pointer QmitkIGTLMessageSourceSelectionWidget::GetSelectedIGTLMessageSource |
( |
| ) |
|
◆ IGTLMessageSourceSelected [1/2]
void QmitkIGTLMessageSourceSelectionWidget::IGTLMessageSourceSelected |
( |
mitk::IGTLMessageSource::Pointer | source | ) |
|
|
signal |
This signal is emitted when a new OpenIGTLink message source is selected.
- Parameters
-
source | Holds the new selected OpenIGTLink device source. Is null if the old source is deselected and no new source is selected. |
◆ IGTLMessageSourceSelected [2/2]
void QmitkIGTLMessageSourceSelectionWidget::IGTLMessageSourceSelected |
( |
us::ServiceReferenceU | s | ) |
|
|
protectedslot |
◆ m_Controls
Ui::QmitkIGTLMessageSourceSelectionWidgetControls* QmitkIGTLMessageSourceSelectionWidget::m_Controls |
|
protected |
◆ m_CurrentIGTLMessageSource
mitk::IGTLMessageSource::Pointer QmitkIGTLMessageSourceSelectionWidget::m_CurrentIGTLMessageSource |
|
protected |
◆ VIEW_ID
const std::string QmitkIGTLMessageSourceSelectionWidget::VIEW_ID |
|
static |
The documentation for this class was generated from the following files: