Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkToFMESAParameterWidget.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 QmitkToFMESAParameterWidget_h
14 #define QmitkToFMESAParameterWidget_h
15 
16 #include <MitkToFUIExports.h>
17 #include "ui_QmitkToFMESAParameterWidgetControls.h"
18 
19 //QT headers
20 #include <QWidget>
21 
22 //mitk headers
23 #include "mitkToFImageGrabber.h"
24 
32 class MITKTOFUI_EXPORT QmitkToFMESAParameterWidget :public QWidget
33 {
34 
35  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
36  Q_OBJECT
37 
38  public:
39 
40  static const std::string VIEW_ID;
41 
42  QmitkToFMESAParameterWidget(QWidget* p = nullptr, Qt::WindowFlags f1 = nullptr);
43  ~QmitkToFMESAParameterWidget() 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* GetToFImageGrabber();
55 
59  void SetToFImageGrabber(mitk::ToFImageGrabber* aToFImageGrabber);
60 
64  void ActivateAllParameters();
65 
66  signals:
67 
72  void ToFCameraConnected();
76  void ToFCameraDisconnected();
80  void ToFCameraStart();
84  void ToFCameraStop();
88  void ToFCameraSelected(int);
89 
90  protected slots:
91 
95  void OnChangeIntegrationTimeSpinBox(int value);
99  void OnChangeModulationFrequencyComboBox(int index);
100 
101  void OnChangeFPNCheckBox(bool checked);
102 
103  void OnChangeConvGrayCheckBox(bool checked);
104 
105  void OnChangeMedianCheckBox(bool checked);
106 
107  void OnChangeANFCheckBox(bool checked);
108 
109  protected:
110 
111  Ui::QmitkToFMESAParameterWidgetControls* m_Controls;
112 
114 
117 
118  private:
119 
120 };
121 
122 #endif
QmitkToFMESAParameterWidget::m_IntegrationTime
int m_IntegrationTime
member for the current integration time of the ToF device
Definition: QmitkToFMESAParameterWidget.h:115
QmitkToFMESAParameterWidget::m_ModulationFrequency
int m_ModulationFrequency
member for the current modulation frequency of the ToF device
Definition: QmitkToFMESAParameterWidget.h:116
mitk::ToFImageGrabber
Image source providing ToF images. Interface for filters provided in ToFProcessing module.
Definition: mitkToFImageGrabber.h:34
QmitkToFMESAParameterWidget::m_Controls
Ui::QmitkToFMESAParameterWidgetControls * m_Controls
member holding the UI elements of this widget
Definition: QmitkToFMESAParameterWidget.h:111
QmitkToFMESAParameterWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkToFMESAParameterWidget.h:40
QmitkToFMESAParameterWidget
Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing)
Definition: QmitkToFMESAParameterWidget.h:32
mitkToFImageGrabber.h
QmitkToFMESAParameterWidget::m_ToFImageGrabber
mitk::ToFImageGrabber * m_ToFImageGrabber
member holding the current ToFImageGrabber
Definition: QmitkToFMESAParameterWidget.h:113