Medical Imaging Interaction Toolkit  2016.11.0
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,
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 _QMITKTOFMESAPARAMETERWIDGET_H_INCLUDED
18 #define _QMITKTOFMESAPARAMETERWIDGET_H_INCLUDED
19 
20 #include <MitkToFUIExports.h>
21 #include "ui_QmitkToFMESAParameterWidgetControls.h"
22 
23 //QT headers
24 #include <QWidget>
25 
26 //mitk headers
27 #include "mitkToFImageGrabber.h"
28 
36 class MITKTOFUI_EXPORT QmitkToFMESAParameterWidget :public QWidget
37 {
38 
39  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
40  Q_OBJECT
41 
42  public:
43 
44  static const std::string VIEW_ID;
45 
46  QmitkToFMESAParameterWidget(QWidget* p = 0, Qt::WindowFlags f1 = 0);
47  virtual ~QmitkToFMESAParameterWidget();
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* GetToFImageGrabber();
59 
63  void SetToFImageGrabber(mitk::ToFImageGrabber* aToFImageGrabber);
64 
68  void ActivateAllParameters();
69 
70  signals:
71 
76  void ToFCameraConnected();
80  void ToFCameraDisconnected();
84  void ToFCameraStart();
88  void ToFCameraStop();
92  void ToFCameraSelected(int);
93 
94  protected slots:
95 
99  void OnChangeIntegrationTimeSpinBox(int value);
103  void OnChangeModulationFrequencyComboBox(int index);
104 
105  void OnChangeFPNCheckBox(bool checked);
106 
107  void OnChangeConvGrayCheckBox(bool checked);
108 
109  void OnChangeMedianCheckBox(bool checked);
110 
111  void OnChangeANFCheckBox(bool checked);
112 
113  protected:
114 
115  Ui::QmitkToFMESAParameterWidgetControls* m_Controls;
116 
118 
121 
122  private:
123 
124 };
125 
126 #endif // _QMITKTOFCONNECTIONWIDGET_H_INCLUDED
int m_IntegrationTime
member for the current integration time of the ToF device
Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing) ...
Image source providing ToF images. Interface for filters provided in ToFProcessing module...
mitk::ToFImageGrabber * m_ToFImageGrabber
member holding the current ToFImageGrabber
Ui::QmitkToFMESAParameterWidgetControls * m_Controls
member holding the UI elements of this widget
int m_ModulationFrequency
member for the current modulation frequency of the ToF device