Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkIGTLDeviceSourceSelectionWidget Class Reference

This widget allows the user to select a OpenIGTLink device source. More...

#include <QmitkIGTLDeviceSourceSelectionWidget.h>

Inheritance diagram for QmitkIGTLDeviceSourceSelectionWidget:
Collaboration diagram for QmitkIGTLDeviceSourceSelectionWidget:

Signals

void IGTLDeviceSourceSelected (mitk::IGTLDeviceSource::Pointer source)
 This signal is emitted when a new OpenIGTLink device source is selected. More...
 

Public Member Functions

 QmitkIGTLDeviceSourceSelectionWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkIGTLDeviceSourceSelectionWidget () override
 
mitk::IGTLDeviceSource::Pointer GetSelectedIGTLDeviceSource ()
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void IGTLDeviceSourceSelected (us::ServiceReferenceU s)
 

Protected Member Functions

virtual void CreateConnections ()
 Creation of the connections. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 

Protected Attributes

Ui::QmitkIGTLDeviceSourceSelectionWidgetControls * m_Controls
 
mitk::IGTLDeviceSource::Pointer m_CurrentIGTLDeviceSource
 

Detailed Description

This widget allows the user to select a OpenIGTLink device source.

Documentation:

   The widget lists all OpenIGTLink device sources which are available
   as microservice via the module context.

   A signal is emmited whenever the device selection changes.

Definition at line 39 of file QmitkIGTLDeviceSourceSelectionWidget.h.

Constructor & Destructor Documentation

◆ QmitkIGTLDeviceSourceSelectionWidget()

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

◆ ~QmitkIGTLDeviceSourceSelectionWidget()

QmitkIGTLDeviceSourceSelectionWidget::~QmitkIGTLDeviceSourceSelectionWidget ( )
override

Member Function Documentation

◆ CreateConnections()

virtual void QmitkIGTLDeviceSourceSelectionWidget::CreateConnections ( )
protectedvirtual

Creation of the connections.

◆ CreateQtPartControl()

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

◆ GetSelectedIGTLDeviceSource()

mitk::IGTLDeviceSource::Pointer QmitkIGTLDeviceSourceSelectionWidget::GetSelectedIGTLDeviceSource ( )
Returns
Returns the currently selected OpenIGTLink device source. Returns null if no source is selected at the moment.

◆ IGTLDeviceSourceSelected [1/2]

void QmitkIGTLDeviceSourceSelectionWidget::IGTLDeviceSourceSelected ( mitk::IGTLDeviceSource::Pointer  source)
signal

This signal is emitted when a new OpenIGTLink device source is selected.

Parameters
sourceHolds the new selected OpenIGTLink device source. Is null if the old source is deselected and no new source is selected.

◆ IGTLDeviceSourceSelected [2/2]

void QmitkIGTLDeviceSourceSelectionWidget::IGTLDeviceSourceSelected ( us::ServiceReferenceU  s)
protectedslot

Member Data Documentation

◆ m_Controls

Ui::QmitkIGTLDeviceSourceSelectionWidgetControls* QmitkIGTLDeviceSourceSelectionWidget::m_Controls
protected

Definition at line 73 of file QmitkIGTLDeviceSourceSelectionWidget.h.

◆ m_CurrentIGTLDeviceSource

mitk::IGTLDeviceSource::Pointer QmitkIGTLDeviceSourceSelectionWidget::m_CurrentIGTLDeviceSource
protected

Definition at line 75 of file QmitkIGTLDeviceSourceSelectionWidget.h.

◆ VIEW_ID

const std::string QmitkIGTLDeviceSourceSelectionWidget::VIEW_ID
static

Definition at line 44 of file QmitkIGTLDeviceSourceSelectionWidget.h.


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