Medical Imaging Interaction Toolkit  2023.12.00
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 (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 QmitkKinectParameterWidget_h
14 #define QmitkKinectParameterWidget_h
15 
16 #include <MitkToFUIExports.h>
17 #include "ui_QmitkKinectParameterWidgetControls.h"
18 
19 //mitk headers
20 #include <mitkToFImageGrabber.h>
21 
22 #include <QWidget>
23 
29 class MITKTOFUI_EXPORT QmitkKinectParameterWidget :public QWidget
30 {
31  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
32  Q_OBJECT
33 
34  public:
35 
36  static const std::string VIEW_ID;
37 
38  QmitkKinectParameterWidget(QWidget* p = nullptr, Qt::WindowFlags f = nullptr);
39  ~QmitkKinectParameterWidget() override;
40 
41  /* @brief This method is part of the widget an needs not to be called seperately. */
42  virtual void CreateQtPartControl(QWidget *parent);
43  /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
44  virtual void CreateConnections();
45 
50  mitk::ToFImageGrabber* GetToFImageGrabber();
51 
55  void SetToFImageGrabber(mitk::ToFImageGrabber* aToFImageGrabber);
56 
60  void ActivateAllParameters();
61 
62  bool IsAcquisitionModeRGB();
63  bool IsAcquisitionModeIR();
64 
65  signals:
66  void AcquisitionModeChanged();
67 
68  protected slots:
69  void OnAcquisitionModeChanged();
70 
71  protected:
72 
73  Ui::QmitkKinectParameterWidgetControls* m_Controls;
74 
76 
77  private:
78 };
79 
80 #endif
QmitkKinectParameterWidget::m_ToFImageGrabber
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
image grabber object to be configured by the widget
Definition: QmitkKinectParameterWidget.h:75
QmitkKinectParameterWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkKinectParameterWidget.h:36
mitk::ToFImageGrabber
Image source providing ToF images. Interface for filters provided in ToFProcessing module.
Definition: mitkToFImageGrabber.h:34
itk::SmartPointer< Self >
QmitkKinectParameterWidget
Widget for configuring the Kinect device.
Definition: QmitkKinectParameterWidget.h:29
QmitkKinectParameterWidget::m_Controls
Ui::QmitkKinectParameterWidgetControls * m_Controls
member holding the UI elements of this widget
Definition: QmitkKinectParameterWidget.h:73
mitkToFImageGrabber.h