MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationStepTumourSelection.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 QmitkUSNavigationStepTumourSelection_h
14#define QmitkUSNavigationStepTumourSelection_h
15
17
18namespace itk {
19template<class T> class SmartPointer;
20}
21
22namespace mitk {
23class NavigationDataSource;
24class DataStorage;
25class DataNode;
26class USZonesInteractor;
27class NodeDisplacementFilter;
28class Surface;
29}
30
31namespace Ui {
33}
34
35class USNavigationMarkerPlacement;
37
44{
45 Q_OBJECT
46
47protected slots:
51 void OnFreeze(bool freezed);
52
56 void OnTumourSizeChanged(int);
57
62
63public:
64 explicit QmitkUSNavigationStepTumourSelection(QWidget* parent = nullptr);
66
67 void SetTargetSelectionOptional (bool t);
68
73 bool OnStartStep() override;
74
81 bool OnStopStep() override;
82
87 bool OnRestartStep() override;
88
93 bool OnFinishStep() override;
94
99 bool OnActivateStep() override;
100
107 bool OnDeactivateStep() override;
108
112 void OnUpdate() override;
113
118 void OnSettingsChanged(const itk::SmartPointer<mitk::DataNode> settingsNode) override;
119
120 QString GetTitle() override;
121
125 FilterVector GetFilter() override;
126
127 void SetTumorColor(mitk::Color c);
128
131
132protected:
133 void OnSetCombinedModality() override;
134
135 void TumourNodeChanged(const mitk::DataNode*);
137
139
141
143
145
149
151
155
156 mitk::Color m_SphereColor;
157
158private:
159 mitk::MessageDelegate1<QmitkUSNavigationStepTumourSelection, const mitk::DataNode*> m_ListenerChangeNode;
160
161 Ui::QmitkUSNavigationStepTumourSelection *ui;
162};
163
164#endif
Abstract base class for navigation step widgets.
std::vector< itk::SmartPointer< mitk::NavigationDataToNavigationDataFilter > > FilterVector
Navigation step for creating and selecting a combined modality. Already created combined modalities c...
Navigation step for marking the tumor position and extent. The user can mark the position by interact...
void OnDeleteButtonClicked()
Just restarts the navigation step for deleting the tumour.
bool OnStartStep() override
Initializes tumour and target surface.
void OnTumourSizeChanged(int)
Updates the surface of the tumor node according to the new size.
void OnFreeze(bool freezed)
Activates or deactivates the ineractor for tumour creation.
itk::SmartPointer< mitk::NavigationDataSource > m_NavigationDataSource
itk::SmartPointer< mitk::USZonesInteractor > m_Interactor
void OnSetCombinedModality() override
Called every time SetCombinedModality() was called. This method may be implemented by a concrete subc...
QString GetTitle() override
Getter for the title of the navigation step. This title should be human readable and can be used to d...
bool OnFinishStep() override
(Re)creates the target surface.
itk::SmartPointer< mitk::NodeDisplacementFilter > m_NodeDisplacementFilter
bool OnRestartStep() override
Reinitializes buttons and sliders in addition of calling the default implementation.
itk::SmartPointer< mitk::DataNode > m_TargetSurfaceNode
bool OnActivateStep() override
Initializes (but not activates) the interactor for tumour selection.
bool OnStopStep() override
Removes target surface and tumour node from the data storage. Additionally an unfreeze is done and th...
void OnSettingsChanged(const itk::SmartPointer< mitk::DataNode > settingsNode) override
void OnUpdate() override
Updates tracking validity status and checks tumour node for the end of tumour creation.
itk::SmartPointer< mitk::NodeDisplacementFilter > GetTumourNodeDisplacementFilter()
bool OnDeactivateStep() override
Deactivates the interactor for tumour selection and removes data of the tumour node if selection wasn...
IGT Exceptions.