MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSControlsCustomVideoDeviceWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
23namespace 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);
55public:
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
85protected:
86 void BlockSignalAndSetValue(QSpinBox* target, int value);
87
89
90private:
96 Ui::QmitkUSControlsCustomVideoDeviceWidget* ui;
97
98 mitk::USVideoDeviceCustomControls::Pointer m_ControlInterface;
99};
100
101#endif
Abstract superclass for all custom control widgets of mitk::USDevice classes.
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomCon...
QmitkUSAbstractCustomWidget * Clone(QWidget *parent=nullptr) const override
void Initialize() override
Method for initializing the Qt stuff of the widget (setupUI, connect). This method will be called in ...
mitk::USImageVideoSource::USImageCropping m_Cropping
Defines a region of interest by distances to the four image borders.