Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkKinectParameterWidget.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 _QMITKKINECTPARAMETERWIDGET_H_INCLUDED
18 #define _QMITKKINECTPARAMETERWIDGET_H_INCLUDED
19 
20 #include <MitkToFUIExports.h>
21 #include "ui_QmitkKinectParameterWidgetControls.h"
22 
23 //mitk headers
24 #include <mitkToFImageGrabber.h>
25 
26 #include <QWidget>
27 
33 class MITKTOFUI_EXPORT QmitkKinectParameterWidget :public QWidget
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  QmitkKinectParameterWidget(QWidget* p = 0, Qt::WindowFlags f = 0);
43  virtual ~QmitkKinectParameterWidget();
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  bool IsAcquisitionModeRGB();
67  bool IsAcquisitionModeIR();
68 
69  signals:
70  void AcquisitionModeChanged();
71 
72  protected slots:
73  void OnAcquisitionModeChanged();
74 
75  protected:
76 
77  Ui::QmitkKinectParameterWidgetControls* m_Controls;
78 
80 
81  private:
82 };
83 
84 #endif // _QmitkKinectParameterWIDGET_H_INCLUDED
static const std::string VIEW_ID
Ui::QmitkKinectParameterWidgetControls * m_Controls
member holding the UI elements of this widget
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
image grabber object to be configured by the widget
Image source providing ToF images. Interface for filters provided in ToFProcessing module...
Widget for configuring the Kinect device.