Medical Imaging Interaction Toolkit  2023.12.00
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::OnDeviceSet
void OnDeviceSet() override
mitk::USImageVideoSource::USImageCropping
Defines a region of interest by distances to the four image borders.
Definition: mitkUSImageVideoSource.h:65
QmitkUSControlsCustomVideoDeviceWidget::QmitkUSControlsCustomVideoDeviceWidget
QmitkUSControlsCustomVideoDeviceWidget()
mitkUSVideoDeviceCustomControls.h
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkUSControlsCustomVideoDeviceWidget::~QmitkUSControlsCustomVideoDeviceWidget
~QmitkUSControlsCustomVideoDeviceWidget() override
QmitkUSControlsCustomVideoDeviceWidget::GetDeviceClass
std::string GetDeviceClass() const override
QmitkUSAbstractCustomWidget.h
QmitkUSControlsCustomVideoDeviceWidget
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomCon...
Definition: QmitkUSControlsCustomVideoDeviceWidget.h:31
QmitkUSControlsCustomVideoDeviceWidget::BlockSignalAndSetValue
void BlockSignalAndSetValue(QSpinBox *target, int value)
mitkUSVideoDevice.h
QmitkUSControlsCustomVideoDeviceWidget::m_Cropping
mitk::USImageVideoSource::USImageCropping m_Cropping
Definition: QmitkUSControlsCustomVideoDeviceWidget.h:88
QmitkUSControlsCustomVideoDeviceWidget::Initialize
void Initialize() override
Method for initializing the Qt stuff of the widget (setupUI, connect). This method will be called in ...
QmitkUSAbstractCustomWidget
Abstract superclass for all custom control widgets of mitk::USDevice classes.
Definition: QmitkUSAbstractCustomWidget.h:65
QmitkUSControlsCustomVideoDeviceWidget::Clone
QmitkUSAbstractCustomWidget * Clone(QWidget *parent=nullptr) const override