Medical Imaging Interaction Toolkit  2016.11.0
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=0, Qt::WindowFlags f=0)
 
 ~QmitkIGTLDeviceSourceSelectionWidget ()
 
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 43 of file QmitkIGTLDeviceSourceSelectionWidget.h.

Constructor & Destructor Documentation

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

Definition at line 25 of file QmitkIGTLDeviceSourceSelectionWidget.cpp.

References CreateQtPartControl(), and m_Controls.

QmitkIGTLDeviceSourceSelectionWidget::~QmitkIGTLDeviceSourceSelectionWidget ( )

Definition at line 33 of file QmitkIGTLDeviceSourceSelectionWidget.cpp.

Member Function Documentation

void QmitkIGTLDeviceSourceSelectionWidget::CreateConnections ( )
protectedvirtual
void QmitkIGTLDeviceSourceSelectionWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual
mitk::IGTLDeviceSource::Pointer QmitkIGTLDeviceSourceSelectionWidget::GetSelectedIGTLDeviceSource ( )
Returns
Returns the currently selected OpenIGTLink device source. Returns null if no source is selected at the moment.

Definition at line 83 of file QmitkIGTLDeviceSourceSelectionWidget.cpp.

References m_CurrentIGTLDeviceSource.

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.

Referenced by CreateConnections(), and IGTLDeviceSourceSelected().

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

Member Data Documentation

Ui::QmitkIGTLDeviceSourceSelectionWidgetControls* QmitkIGTLDeviceSourceSelectionWidget::m_Controls
protected
mitk::IGTLDeviceSource::Pointer QmitkIGTLDeviceSourceSelectionWidget::m_CurrentIGTLDeviceSource
protected
const std::string QmitkIGTLDeviceSourceSelectionWidget::VIEW_ID
static

Definition at line 48 of file QmitkIGTLDeviceSourceSelectionWidget.h.


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