Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToFConnectionWidget Class Reference

Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing) More...

#include <QmitkToFConnectionWidget.h>

Inheritance diagram for QmitkToFConnectionWidget:
Collaboration diagram for QmitkToFConnectionWidget:

Signals

void ToFCameraConnected ()
 This signal is sent if the user has connected the TOF camera. The ToFImageGrabber is now availiable if the method GetToFImageGrabber() is called. More...
 
void ToFCameraDisconnected ()
 This signal is sent if the user has disconnect the TOF camera. More...
 
void ToFCameraSelected (const QString selectedText)
 signal that is emitted when a ToF camera is selected More...
 
void KinectAcquisitionModeChanged ()
 
void ChangeCoronalWindowSelection (int)
 

Public Member Functions

 QmitkToFConnectionWidget (QWidget *p=0, Qt::WindowFlags f1=0)
 
virtual ~QmitkToFConnectionWidget ()
 
virtual void CreateQtPartControl (QWidget *parent)
 
virtual void CreateConnections ()
 
mitk::ToFImageGrabber::Pointer GetToFImageGrabber ()
 returns the ToFImageGrabber which was configured after selecting a camera / player More...
 
QString GetSelectedCameraName ()
 return the name of the currently selected camera More...
 
void ConnectCamera ()
 invokes the call of OnConnectCamera() More...
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void OnConnectCamera ()
 slot called when the "Connect Camera" button was pressed According to the selection in the camera combo box, the widget provides the desired instance of the ToFImageGrabber More...
 
void OnSelectCamera ()
 slot updating the GUI elements after the selection of the camera combo box has changed More...
 

Protected Attributes

Ui::QmitkToFConnectionWidgetControls2 * m_Controls
 member holding the UI elements of this widget More...
 
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
 member holding the current ToFImageGrabber More...
 
int m_IntegrationTime
 member for the current integration time of the ToF device More...
 
int m_ModulationFrequency
 member for the current modulation frequency of the ToF device More...
 
QString m_SelectedCameraName
 member holding the name of the currently selected camera More...
 

Detailed Description

Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing)

The widget basically allows to connect/disconnect to different ToF cameras

Definition at line 36 of file QmitkToFConnectionWidget.h.

Constructor & Destructor Documentation

QmitkToFConnectionWidget::QmitkToFConnectionWidget ( QWidget *  p = 0,
Qt::WindowFlags  f1 = 0 
)
QmitkToFConnectionWidget::~QmitkToFConnectionWidget ( )
virtual

Definition at line 49 of file QmitkToFConnectionWidget.cpp.

Member Function Documentation

void QmitkToFConnectionWidget::ChangeCoronalWindowSelection ( int  )
signal
void QmitkToFConnectionWidget::ConnectCamera ( )

invokes the call of OnConnectCamera()

Definition at line 395 of file QmitkToFConnectionWidget.cpp.

References m_Controls.

void QmitkToFConnectionWidget::CreateConnections ( )
virtual
void QmitkToFConnectionWidget::CreateQtPartControl ( QWidget *  parent)
virtual

Definition at line 54 of file QmitkToFConnectionWidget.cpp.

References CreateConnections(), and m_Controls.

Referenced by QmitkToFConnectionWidget().

QString QmitkToFConnectionWidget::GetSelectedCameraName ( )
inline

return the name of the currently selected camera

Definition at line 63 of file QmitkToFConnectionWidget.h.

mitk::ToFImageGrabber::Pointer QmitkToFConnectionWidget::GetToFImageGrabber ( )

returns the ToFImageGrabber which was configured after selecting a camera / player

Returns
ToFImageGrabber currently used by the widget

Definition at line 88 of file QmitkToFConnectionWidget.cpp.

References m_ToFImageGrabber.

void QmitkToFConnectionWidget::KinectAcquisitionModeChanged ( )
signal

Referenced by CreateConnections().

void QmitkToFConnectionWidget::OnConnectCamera ( )
protectedslot

slot called when the "Connect Camera" button was pressed According to the selection in the camera combo box, the widget provides the desired instance of the ToFImageGrabber

Definition at line 134 of file QmitkToFConnectionWidget.cpp.

References m_Controls, m_ToFImageGrabber, MITK_ERROR, MITK_WARN, mitk::CameraIntrinsicsProperty::New(), mitk::CameraIntrinsics::New(), OnSelectCamera(), ToFCameraConnected(), ToFCameraDisconnected(), and ToFCameraSelected().

Referenced by CreateConnections().

void QmitkToFConnectionWidget::OnSelectCamera ( )
protectedslot

slot updating the GUI elements after the selection of the camera combo box has changed

Definition at line 94 of file QmitkToFConnectionWidget.cpp.

References m_Controls, and m_SelectedCameraName.

Referenced by CreateConnections(), and OnConnectCamera().

void QmitkToFConnectionWidget::ToFCameraConnected ( )
signal

This signal is sent if the user has connected the TOF camera. The ToFImageGrabber is now availiable if the method GetToFImageGrabber() is called.

Referenced by OnConnectCamera().

void QmitkToFConnectionWidget::ToFCameraDisconnected ( )
signal

This signal is sent if the user has disconnect the TOF camera.

Referenced by OnConnectCamera().

void QmitkToFConnectionWidget::ToFCameraSelected ( const QString  selectedText)
signal

signal that is emitted when a ToF camera is selected

Referenced by OnConnectCamera().

Member Data Documentation

Ui::QmitkToFConnectionWidgetControls2* QmitkToFConnectionWidget::m_Controls
protected

member holding the UI elements of this widget

Definition at line 108 of file QmitkToFConnectionWidget.h.

Referenced by ConnectCamera(), CreateConnections(), CreateQtPartControl(), OnConnectCamera(), and OnSelectCamera().

int QmitkToFConnectionWidget::m_IntegrationTime
protected

member for the current integration time of the ToF device

Definition at line 112 of file QmitkToFConnectionWidget.h.

int QmitkToFConnectionWidget::m_ModulationFrequency
protected

member for the current modulation frequency of the ToF device

Definition at line 113 of file QmitkToFConnectionWidget.h.

QString QmitkToFConnectionWidget::m_SelectedCameraName
protected

member holding the name of the currently selected camera

Definition at line 114 of file QmitkToFConnectionWidget.h.

Referenced by OnSelectCamera().

mitk::ToFImageGrabber::Pointer QmitkToFConnectionWidget::m_ToFImageGrabber
protected

member holding the current ToFImageGrabber

Definition at line 110 of file QmitkToFConnectionWidget.h.

Referenced by GetToFImageGrabber(), OnConnectCamera(), and QmitkToFConnectionWidget().

const std::string QmitkToFConnectionWidget::VIEW_ID
static

Definition at line 44 of file QmitkToFConnectionWidget.h.


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