MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationCalibrationUpdateDepthDelegate.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#ifndef QmitkUSNavigationCalibrationUpdateDepthDelegate_h
13#define QmitkUSNavigationCalibrationUpdateDepthDelegate_h
14
15#include <QStyledItemDelegate>
16
18
22class QmitkUSNavigationCalibrationUpdateDepthDelegate : public QStyledItemDelegate
23{
24 Q_OBJECT
25
26public:
27 explicit QmitkUSNavigationCalibrationUpdateDepthDelegate(QObject* parent = nullptr);
29
30 void SetControlInterfaceBMode(mitk::USControlInterfaceBMode::Pointer controlInterfaceBMode);
31
38 bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override;
39
40private:
41 mitk::USControlInterfaceBMode::Pointer m_ControlInterfaceBMode;
42};
43
44#endif
QStyledItemDelegate that changes the current depth of the ultasound image on double click.
void SetControlInterfaceBMode(mitk::USControlInterfaceBMode::Pointer controlInterfaceBMode)
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
The depth of the b mode ultrasound is changed on double click. A mitk::USControlInterfaceBMode has to...