Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkStructureSensorParameterWidget.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 QmitkStructureSensorParameterWidget_h
18 #define QmitkStructureSensorParameterWidget_h
19 
20 #include "MitkToFUIExports.h"
21 #include "ui_QmitkStructureSensorParameterWidgetControls.h"
22 
23 #include <mitkToFImageGrabber.h>
24 
25 #include <QWidget>
26 
36 class MITKTOFUI_EXPORT QmitkStructureSensorParameterWidget :public QWidget
37 {
38  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
39  Q_OBJECT
40 
41  public:
42 
43  static const std::string VIEW_ID;
44 
45  QmitkStructureSensorParameterWidget(QWidget* p = 0, Qt::WindowFlags f = 0);
47 
48  /* @brief This method is part of the widget an needs not to be called seperately. */
49  virtual void CreateQtPartControl(QWidget *parent);
50  /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
51  virtual void CreateConnections();
52 
57  mitk::ToFImageGrabber* GetToFImageGrabber();
58 
62  void SetToFImageGrabber(mitk::ToFImageGrabber* aToFImageGrabber);
63 
67  void ActivateAllParameters();
68 
73  int GetSelectedResolution();
74 
75  protected slots:
79  void OnResolutionChanged();
80 
81  protected:
82 
83  Ui::QmitkStructureSensorParameterWidgetControls* m_Controls;
84 
86 };
87 
88 #endif // QmitkStructureSensorParameterWidget_h
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
image grabber object to be configured by the widget
Widget for configuring the Structure Sensor device (Occipital, Inc.)
Image source providing ToF images. Interface for filters provided in ToFProcessing module...
Ui::QmitkStructureSensorParameterWidgetControls * m_Controls
member holding the UI elements of this widget