MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationStepCombinedModality.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 QmitkUSNavigationStepCombinedModality_h
14#define QmitkUSNavigationStepCombinedModality_h
15
17
18namespace Ui {
20}
21
30{
31 Q_OBJECT
32
33protected slots:
38
44 void OnLoadCalibration();
45
50
55
57
63
65
67
73
74public:
75 explicit QmitkUSNavigationStepCombinedModality(QWidget *parent = nullptr);
77
78 bool OnStartStep() override;
79 bool OnRestartStep() override;
80 bool OnFinishStep() override;
81
82 bool OnActivateStep() override;
83 void OnUpdate() override;
84
85 QString GetTitle() override;
86 bool GetIsRestartable() override;
87
88 mitk::AbstractUltrasoundTrackerDevice::Pointer GetSelectedCombinedModality();
89
91
92 void OnDevicePropertyChanged(const std::string&, const std::string&);
93
94protected:
96 void SetCombinedModalityEditWidgetEnabled(bool enabled);
98
101
106
107 std::string m_LoadedCalibration; //<<< Temporary saving point for loaded calibration data.
108 std::string m_LastCalibrationFilename; //<<< saves the filename last loaded calibration
109
111
112private:
113 mitk::MessageDelegate2<QmitkUSNavigationStepCombinedModality, const std::string&, const std::string&> m_ListenerDeviceChanged;
114
115 Ui::QmitkUSNavigationStepCombinedModality *ui;
116};
117
118#endif
Abstract base class for navigation step widgets.
Navigation step for creating and selecting a combined modality. Already created combined modalities c...
void OnCombinedModalityCreateNewButtonClicked()
Triggered, when the button for creating a new combined modality was clicked.
bool GetIsRestartable() override
Indicates if it makes sense to be able to restart the step. This method must be implemented by concre...
void OnCombinedModalityCreationExit()
Triggered, when the dialog for creating a new combined modality was closed.
bool OnRestartStep() override
Called when restarting a navigation step. This method may be implemented by a concrete subclass to ha...
bool OnStartStep() override
Called when the navigation step gets started. This method has to be implemented by a concrete subclas...
QString GetTitle() override
Getter for the title of the navigation step. This title should be human readable and can be used to d...
void OnDisconnectButtonClicked()
Triggered, when the button for disconnecting a combined modality was clicked. The state of the combin...
itk::SmartPointer< mitk::AbstractUltrasoundTrackerDevice > m_CombinedModality
The Combined Modality which was selected by the user.
void OnLoadCalibration()
Triggered, when the user has clicked "Load Calibration". Opens a file open dialog and sets the select...
void OnDeleteButtonClicked()
Triggered, when the button for deleting a combined modality was clicked. Unregisters the combined mod...
void OnDeviceSelectionChanged()
Triggered, when the selection in the service list widget has changed.
void OnUpdate() override
Called periodically while a navigation step is active. This method has to be implemented by a concret...
bool OnFinishStep() override
Called when all necessary actions for the step where done. This method has to be implemented by a con...
mitk::AbstractUltrasoundTrackerDevice::Pointer GetSelectedCombinedModality()
void OnDevicePropertyChanged(const std::string &, const std::string &)
bool OnActivateStep() override
Called when the navigation step gets activated. This method has to be implemented by a concrete subcl...