Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStaticDynamicSegmentationDialog.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 QmitkStaticDynamicSegmentationDialog_h
14 #define QmitkStaticDynamicSegmentationDialog_h
15 
17 
18 #include <QMessageBox>
19 
20 #include <mitkImage.h>
21 
31 {
32  Q_OBJECT
33 
34 public:
35 
37  QmitkStaticDynamicSegmentationDialog(QWidget* parent = nullptr);
38 
40  void SetReferenceImage(const mitk::Image* referenceImage);
42  mitk::Image::ConstPointer GetSegmentationTemplate() const;
43 
44 private Q_SLOTS:
45 
46  void OnStaticButtonClicked(bool checked = false);
47 
48 private:
49 
50  mitk::Image::ConstPointer m_SegmentationTemplate;
51  const mitk::Image* m_ReferenceImage;
52 };
53 
54 #endif
#define MITKSEGMENTATIONUI_EXPORT
Dialog for static / dynamic segmentation node creation.
QmitkStaticDynamicSegmentationDialog(QWidget *parent=nullptr)
Constructs the dialog.
mitk::Image::ConstPointer GetSegmentationTemplate() const
Returns the segmentation template image based on the user's choice (static or dynamic).
void SetReferenceImage(const mitk::Image *referenceImage)
Sets the reference image used to derive the segmentation template geometry.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76