Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationDataSourceSelectionWidget Class Reference

This widget allows the user to select a NavigationDataSource. Tools of this Source are also shown and the user can select one of these tools. More...

#include <QmitkNavigationDataSourceSelectionWidget.h>

Inheritance diagram for QmitkNavigationDataSourceSelectionWidget:
Collaboration diagram for QmitkNavigationDataSourceSelectionWidget:

Signals

void NavigationDataSourceSelected (mitk::NavigationDataSource::Pointer n)
 This signal is emitted when a new navigation data source is selected. More...
 
void NavigationToolSelected (mitk::NavigationTool::Pointer n)
 This signal is emitted when a new navigation data tool is selected. More...
 

Public Member Functions

 QmitkNavigationDataSourceSelectionWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~QmitkNavigationDataSourceSelectionWidget ()
 
mitk::NavigationDataSource::Pointer GetSelectedNavigationDataSource ()
 
int GetSelectedToolID ()
 
mitk::NavigationTool::Pointer GetSelectedNavigationTool ()
 
mitk::NavigationToolStorage::Pointer GetNavigationToolStorageOfSource ()
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void NavigationDataSourceSelected (us::ServiceReferenceU s)
 
void NavigationToolSelected (int selection)
 

Protected Member Functions

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

Protected Attributes

Ui::QmitkNavigationDataSourceSelectionWidgetControls * m_Controls
 
mitk::NavigationToolStorage::Pointer m_CurrentStorage
 
mitk::NavigationDataSource::Pointer m_CurrentSource
 

Detailed Description

This widget allows the user to select a NavigationDataSource. Tools of this Source are also shown and the user can select one of these tools.

Documentation:

Definition at line 36 of file QmitkNavigationDataSourceSelectionWidget.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file QmitkNavigationDataSourceSelectionWidget.cpp.

Member Function Documentation

void QmitkNavigationDataSourceSelectionWidget::CreateConnections ( )
protectedvirtual
void QmitkNavigationDataSourceSelectionWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual
mitk::NavigationToolStorage::Pointer QmitkNavigationDataSourceSelectionWidget::GetNavigationToolStorageOfSource ( )
Returns
Returns the NavigationToolStorage of the currently selected NavigationDataSource. Returns NULL if there is no source selected or if the source has no NavigationToolStorage assigned.

Definition at line 137 of file QmitkNavigationDataSourceSelectionWidget.cpp.

References m_CurrentStorage.

mitk::NavigationDataSource::Pointer QmitkNavigationDataSourceSelectionWidget::GetSelectedNavigationDataSource ( )
Returns
Returns the currently selected NavigationDataSource. Returns null if no source is selected at the moment.

Definition at line 117 of file QmitkNavigationDataSourceSelectionWidget.cpp.

References m_CurrentSource.

mitk::NavigationTool::Pointer QmitkNavigationDataSourceSelectionWidget::GetSelectedNavigationTool ( )
Returns
Returns the NavigationTool of the current selected tool if a NavigationToolStorage is available. Returns NULL if there is no storage available or if no tool is selected.

Definition at line 129 of file QmitkNavigationDataSourceSelectionWidget.cpp.

References m_Controls, and m_CurrentStorage.

int QmitkNavigationDataSourceSelectionWidget::GetSelectedToolID ( )
Returns
Returns the ID of the currently selected tool. You can get the corresponding NavigationData when calling GetOutput(id) on the source object. Returns -1 if there is no tool selected.

Definition at line 123 of file QmitkNavigationDataSourceSelectionWidget.cpp.

References m_Controls.

void QmitkNavigationDataSourceSelectionWidget::NavigationDataSourceSelected ( mitk::NavigationDataSource::Pointer  n)
signal

This signal is emitted when a new navigation data source is selected.

Parameters
nHolds the new selected navigation data source. Is null if the old source is deselected and no new source is selected.

Referenced by CreateConnections(), and NavigationDataSourceSelected().

void QmitkNavigationDataSourceSelectionWidget::NavigationToolSelected ( mitk::NavigationTool::Pointer  n)
signal

This signal is emitted when a new navigation data tool is selected.

Parameters
nHolds the new selected navigation tool. Is null if the old source is deselected and no new source is selected.

Referenced by CreateConnections(), and NavigationToolSelected().

void QmitkNavigationDataSourceSelectionWidget::NavigationToolSelected ( int  selection)
protectedslot

Member Data Documentation

Ui::QmitkNavigationDataSourceSelectionWidgetControls* QmitkNavigationDataSourceSelectionWidget::m_Controls
protected
mitk::NavigationDataSource::Pointer QmitkNavigationDataSourceSelectionWidget::m_CurrentSource
protected
mitk::NavigationToolStorage::Pointer QmitkNavigationDataSourceSelectionWidget::m_CurrentStorage
protected
const std::string QmitkNavigationDataSourceSelectionWidget::VIEW_ID
static

Definition at line 41 of file QmitkNavigationDataSourceSelectionWidget.h.


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