Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkMultiLabelSegWithPreviewToolGUIBase.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkMultiLabelSegWithPreviewToolGUIBase_h
14 #define QmitkMultiLabelSegWithPreviewToolGUIBase_h
15 
17 
19 
21 
28 {
29  Q_OBJECT
30 
31 public:
33 
34 protected slots :
35 
37  void OnRadioTransferAllClicked(bool checked);
38 
39 protected:
42 
43  void InitializeUI(QBoxLayout* mainLayout) override;
44 
45  void EnableWidgets(bool enabled) override;
48 
53  void DisplayTransferWidgets(bool enabled);
54 
55 private:
56  QmitkSimpleLabelSetListWidget* m_LabelSelectionList = nullptr;
57  QWidget* m_RadioTransferAll = nullptr;
58  QWidget* m_RadioTransferSelected = nullptr;
59 };
60 
61 #endif
#define MITKSEGMENTATIONUI_EXPORT
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
void DisplayTransferWidgets(bool enabled)
Toggles visibility of "Transfer all labels" and "Transfer selected labels" radio buttons.
void OnLabelSelectionChanged(const QmitkSimpleLabelSetListWidget::LabelVectorType &selectedLabels)
void EnableWidgets(bool enabled) override
mitkClassMacro(QmitkMultiLabelSegWithPreviewToolGUIBase, QmitkSegWithPreviewToolGUIBase)
void SetLabelSetPreview(const mitk::MultiLabelSegmentation *preview)
void InitializeUI(QBoxLayout *mainLayout) override
GUI base class for tools derived from mitk::SegWithPreviewTool.
Widget that offers a simple list that displays all labels (color and name) in the active layer of a M...
std::vector< mitk::Label::ConstPointer > LabelVectorType
MultiLabelSegmentation class for handling labels and layers in a segmentation session.