MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationFreezeButton.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 QmitkUSNavigationFreezeButton_h
14#define QmitkUSNavigationFreezeButton_h
15
16#include <QPushButton>
17
19
28class QmitkUSNavigationFreezeButton : public QPushButton
29{
30 Q_OBJECT
31
32signals:
37 void SignalFreezed(bool);
38
39protected slots:
40 void OnButtonClicked(bool checked);
42
43public:
44 explicit QmitkUSNavigationFreezeButton(QWidget* parent = nullptr);
46
53 void SetCombinedModality(mitk::AbstractUltrasoundTrackerDevice::Pointer combinedModality, int outputIndex = -1);
54
61 void Freeze();
62
69 void Unfreeze();
70
71private:
72 mitk::AbstractUltrasoundTrackerDevice::Pointer m_CombinedModality;
73 int m_OutputIndex;
74 bool m_FreezeButtonToggle;
75};
76
77#endif
QPushButton for freezing and unfreezing a combined modality. The button already has an icon and a tex...
void Unfreeze()
Unfreeze the combined modality. This does the same as clicking the button while the combined modality...
void Freeze()
Try to freeze the combined modality. This does the same as clicking the button while the combined mod...
QmitkUSNavigationFreezeButton(QWidget *parent=nullptr)
void SignalFreezed(bool)
Emitted every time the freeze state of the combined modality changed. True if the combined modality i...
void SetCombinedModality(mitk::AbstractUltrasoundTrackerDevice::Pointer combinedModality, int outputIndex=-1)
Setter for the combined modality to be freezed by this button. An index may be specified for a tracki...