Medical Imaging Interaction Toolkit  2018.4.99-b585543d
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 (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 QmitkUSControlsCustomVideoDeviceWidget_H
14 #define QmitkUSControlsCustomVideoDeviceWidget_H
15 
18 
19 #include "mitkUSVideoDevice.h"
20 
21 #include <QSpinBox>
22 
23 namespace Ui {
25 }
26 
32 {
33  Q_OBJECT
34 
35  private slots:
39  void OnCropAreaChanged();
40 
44  void OnDepthChanged();
45 
49  void OnProbeChanged();
50 
54  void SetDepthsForProbe(std::string probename);
55 public:
56 
59 
63  std::string GetDeviceClass() const override;
64 
74  QmitkUSAbstractCustomWidget* Clone(QWidget* parent = nullptr) const override;
75 
81  void OnDeviceSet() override;
82 
83  void Initialize() override;
84 
85 protected:
86  void BlockSignalAndSetValue(QSpinBox* target, int value);
87 
89 
90 private:
96  Ui::QmitkUSControlsCustomVideoDeviceWidget* ui;
97 
98  mitk::USVideoDeviceCustomControls::Pointer m_ControlInterface;
99 };
100 
101 #endif // QmitkUSControlsCustomVideoDeviceWidget_H
Defines a region of interest by distances to the four image borders.
mitk::USImageVideoSource::USImageCropping m_Cropping
Abstract superclass for all custom control widgets of mitk::USDevice classes.
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomCon...