MITK-IGT
IGT Extension of MITK
|
QPushButton for freezing and unfreezing a combined modality. The button already has an icon and a text. On every successful freeze or unfreeze the signal SignalFrezzed() is emitted. One should listen to this signal rather than to the clicked() signal of the QPushButton as the combined modality may not be freezed after clicked() was emitted. More...
#include <QmitkUSNavigationFreezeButton.h>
Signals | |
void | SignalFreezed (bool) |
Emitted every time the freeze state of the combined modality changed. True if the combined modality is freezed now, false if it isn't. | |
Public Member Functions | |
QmitkUSNavigationFreezeButton (QWidget *parent=nullptr) | |
~QmitkUSNavigationFreezeButton () override | |
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 tracking data output. The combined modality will only be freezed then, if the current tracking data of this output is valid. | |
void | Freeze () |
Try to freeze the combined modality. This does the same as clicking the button while the combined modality isn't freezed. If the combined modality is already freezed this method does nothing. | |
void | Unfreeze () |
Unfreeze the combined modality. This does the same as clicking the button while the combined modality is freezed. If the combined modality isn't freezed this method does nothing. | |
Protected Slots | |
void | OnButtonClicked (bool checked) |
void | OnFreezeButtonToggle () |
QPushButton for freezing and unfreezing a combined modality. The button already has an icon and a text. On every successful freeze or unfreeze the signal SignalFrezzed() is emitted. One should listen to this signal rather than to the clicked() signal of the QPushButton as the combined modality may not be freezed after clicked() was emitted.
Definition at line 28 of file QmitkUSNavigationFreezeButton.h.
|
explicit |
Definition at line 16 of file QmitkUSNavigationFreezeButton.cpp.
|
override |
Definition at line 32 of file QmitkUSNavigationFreezeButton.cpp.
void QmitkUSNavigationFreezeButton::Freeze | ( | ) |
Try to freeze the combined modality. This does the same as clicking the button while the combined modality isn't freezed. If the combined modality is already freezed this method does nothing.
Definition at line 42 of file QmitkUSNavigationFreezeButton.cpp.
|
protectedslot |
Definition at line 68 of file QmitkUSNavigationFreezeButton.cpp.
|
protectedslot |
Definition at line 59 of file QmitkUSNavigationFreezeButton.cpp.
void QmitkUSNavigationFreezeButton::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 tracking data output. The combined modality will only be freezed then, if the current tracking data of this output is valid.
Definition at line 36 of file QmitkUSNavigationFreezeButton.cpp.
|
signal |
Emitted every time the freeze state of the combined modality changed. True if the combined modality is freezed now, false if it isn't.
void QmitkUSNavigationFreezeButton::Unfreeze | ( | ) |
Unfreeze the combined modality. This does the same as clicking the button while the combined modality is freezed. If the combined modality isn't freezed this method does nothing.
Definition at line 51 of file QmitkUSNavigationFreezeButton.cpp.