Medical Imaging Interaction Toolkit  2023.12.00
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkToFConnectionWidget_h
14 #define QmitkToFConnectionWidget_h
15 
16 #include <MitkToFUIExports.h>
17 #include "ui_QmitkToFConnectionWidgetControls.h"
18 
19 //QT headers
20 #include <QWidget>
21 
22 //mitk headers
23 #include "mitkToFImageGrabber.h"
24 
32 class MITKTOFUI_EXPORT QmitkToFConnectionWidget :public QWidget
33 {
34  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
35  Q_OBJECT
36 
37  public:
38 
39 
40  static const std::string VIEW_ID;
41 
42  QmitkToFConnectionWidget(QWidget* p = nullptr, Qt::WindowFlags f1 = nullptr);
43  ~QmitkToFConnectionWidget() override;
44 
45  /* @brief This method is part of the widget an needs not to be called seperately. */
46  virtual void CreateQtPartControl(QWidget *parent);
47  /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
48  virtual void CreateConnections();
49 
54  mitk::ToFImageGrabber::Pointer GetToFImageGrabber();
55 
60  {
61  return m_SelectedCameraName;
62  }
63 
67  void ConnectCamera();
68 
69  signals:
70 
75  void ToFCameraConnected();
79  void ToFCameraDisconnected();
83  void ToFCameraSelected(const QString selectedText);
84 
85  void KinectAcquisitionModeChanged();
86 
87  void ChangeCoronalWindowSelection(int);
88 
89  protected slots:
90 
96  void OnConnectCamera();
100  void OnSelectCamera();
101 
102  protected:
103 
104  Ui::QmitkToFConnectionWidgetControls2* m_Controls;
105 
107 
111 
112  private:
113 
114  void HideAllParameterWidgets();
115 };
116 
117 #endif
QmitkToFConnectionWidget::m_ModulationFrequency
int m_ModulationFrequency
member for the current modulation frequency of the ToF device
Definition: QmitkToFConnectionWidget.h:109
QmitkToFConnectionWidget
Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing)
Definition: QmitkToFConnectionWidget.h:32
QmitkToFConnectionWidget::m_Controls
Ui::QmitkToFConnectionWidgetControls2 * m_Controls
member holding the UI elements of this widget
Definition: QmitkToFConnectionWidget.h:104
itk::SmartPointer< Self >
QmitkToFConnectionWidget::m_ToFImageGrabber
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
member holding the current ToFImageGrabber
Definition: QmitkToFConnectionWidget.h:106
QmitkToFConnectionWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkToFConnectionWidget.h:40
QmitkToFConnectionWidget::m_IntegrationTime
int m_IntegrationTime
member for the current integration time of the ToF device
Definition: QmitkToFConnectionWidget.h:108
QmitkToFConnectionWidget::m_SelectedCameraName
QString m_SelectedCameraName
member holding the name of the currently selected camera
Definition: QmitkToFConnectionWidget.h:110
mitkToFImageGrabber.h
QmitkToFConnectionWidget::GetSelectedCameraName
QString GetSelectedCameraName()
return the name of the currently selected camera
Definition: QmitkToFConnectionWidget.h:59