Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkUSControlsCustomVideoDeviceWidget.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 QmitkUSControlsCustomVideoDeviceWidget_H
18 #define QmitkUSControlsCustomVideoDeviceWidget_H
19 
22 
23 #include "mitkUSVideoDevice.h"
24 
25 #include <QSpinBox>
26 
27 namespace Ui {
29 }
30 
36 {
37  Q_OBJECT
38 
39  private slots:
43  void OnCropAreaChanged();
44 
48  void OnDepthChanged();
49 
53  void OnProbeChanged();
54 
58  void SetDepthsForProbe(std::string probename);
59 public:
64  explicit QmitkUSControlsCustomVideoDeviceWidget(QWidget *parent = 0);
66 
70  virtual std::string GetDeviceClass() const override;
71 
81  virtual QmitkUSAbstractCustomWidget* Clone(QWidget* parent = 0) const override;
82 
88  virtual void OnDeviceSet() override;
89 
90  virtual void Initialize() override;
91 
92 protected:
93  void BlockSignalAndSetValue(QSpinBox* target, int value);
94 
96 
97 private:
98  Ui::QmitkUSControlsCustomVideoDeviceWidget* ui;
99 
101 };
102 
103 #endif // QmitkUSControlsCustomVideoDeviceWidget_H
itk::SmartPointer< Self > Pointer
Defines a region of interest by distances to the four image borders.
mitk::USImageVideoSource::USImageCropping m_Cropping
virtual void Initialize() override
Method for initializing the Qt stuff of the widget (setupUI, connect). This method will be called in ...
virtual QmitkUSAbstractCustomWidget * Clone(QWidget *parent=0) const override
Abstract superclass for all custom control widgets of mitk::USDevice classes.
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomCon...