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
QmitkToFPMDParameterWidget.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 _QMITKTOFPMDPARAMETERWIDGET_H_INCLUDED
18 #define _QMITKTOFPMDPARAMETERWIDGET_H_INCLUDED
19 
20 #include <MitkToFUIExports.h>
21 #include "ui_QmitkToFPMDParameterWidgetControls.h"
22 
23 //QT headers
24 #include <QWidget>
25 
26 //mitk headers
27 #include "mitkToFImageGrabber.h"
28 
36 class MITKTOFUI_EXPORT QmitkToFPMDParameterWidget :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  QmitkToFPMDParameterWidget(QWidget* p = 0, Qt::WindowFlags f1 = 0);
47  virtual ~QmitkToFPMDParameterWidget();
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 OnChangeModulationFrequencySpinBox(int value);
104 
105  protected:
106 
107  Ui::QmitkToFPMDParameterWidgetControls* m_Controls;
108 
110 
113 
114  private:
115 
116 };
117 
118 #endif // _QMITKTOFCONNECTIONWIDGET_H_INCLUDED
Ui::QmitkToFPMDParameterWidgetControls * m_Controls
member holding the UI elements of this widget
int m_ModulationFrequency
member for the current modulation frequency of the ToF device
int m_IntegrationTime
member for the current integration time of the ToF device
static const std::string VIEW_ID
mitk::ToFImageGrabber * m_ToFImageGrabber
member holding the current ToFImageGrabber
Image source providing ToF images. Interface for filters provided in ToFProcessing module...
Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing) ...