Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToFConnectionWidget.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _QMITKTOFCONNECTIONWIDGET_H_INCLUDED
18 #define _QMITKTOFCONNECTIONWIDGET_H_INCLUDED
19 
20 #include <MitkToFUIExports.h>
21 #include "ui_QmitkToFConnectionWidgetControls.h"
22 
23 //QT headers
24 #include <QWidget>
25 
26 //mitk headers
27 #include "mitkToFImageGrabber.h"
28 
36 class MITKTOFUI_EXPORT QmitkToFConnectionWidget :public QWidget
37 {
38  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
39  Q_OBJECT
40 
41  public:
42 
43 
44  static const std::string VIEW_ID;
45 
46  QmitkToFConnectionWidget(QWidget* p = 0, Qt::WindowFlags f1 = 0);
47  virtual ~QmitkToFConnectionWidget();
48 
49  /* @brief This method is part of the widget an needs not to be called seperately. */
50  virtual void CreateQtPartControl(QWidget *parent);
51  /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
52  virtual void CreateConnections();
53 
58  mitk::ToFImageGrabber::Pointer GetToFImageGrabber();
59 
64  {
65  return m_SelectedCameraName;
66  }
67 
71  void ConnectCamera();
72 
73  signals:
74 
79  void ToFCameraConnected();
83  void ToFCameraDisconnected();
87  void ToFCameraSelected(const QString selectedText);
88 
89  void KinectAcquisitionModeChanged();
90 
91  void ChangeCoronalWindowSelection(int);
92 
93  protected slots:
94 
100  void OnConnectCamera();
104  void OnSelectCamera();
105 
106  protected:
107 
108  Ui::QmitkToFConnectionWidgetControls2* m_Controls;
109 
111 
115 
116  private:
117 
118  void HideAllParameterWidgets();
119 };
120 
121 #endif // _QMITKTOFCONNECTIONWIDGET_H_INCLUDED
Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing) ...
Ui::QmitkToFConnectionWidgetControls2 * m_Controls
member holding the UI elements of this widget
int m_IntegrationTime
member for the current integration time of the ToF device
QString m_SelectedCameraName
member holding the name of the currently selected camera
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
member holding the current ToFImageGrabber
static const std::string VIEW_ID
QString GetSelectedCameraName()
return the name of the currently selected camera
int m_ModulationFrequency
member for the current modulation frequency of the ToF device