Medical Imaging Interaction Toolkit  2025.12.02
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 
29 {
30  Q_OBJECT
31 
32 public:
34 
35 protected slots :
36 
38  void OnRadioTransferAllClicked(bool checked);
39 
40 protected:
43 
44  void InitializeUI(QBoxLayout* mainLayout) override;
45 
46  void EnableWidgets(bool enabled) override;
49 
54  void DisplayTransferWidgets(bool enabled);
55 
56 private:
57  QmitkSimpleLabelSetListWidget* m_LabelSelectionList = nullptr;
58  QWidget* m_RadioTransferAll = nullptr;
59  QWidget* m_RadioTransferSelected = nullptr;
60 };
61 
62 #endif
#define MITKSEGMENTATIONUI_EXPORT
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
void DisplayTransferWidgets(bool enabled)
To toggle 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 clase 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.