Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkEditableContourToolGUIBase.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 QmitkEditableContourToolGUIBase_h
14 #define QmitkEditableContourToolGUIBase_h
15 
16 #include <QmitkToolGUI.h>
18 #include <memory>
19 
20 namespace mitk
21 {
22  class EditableContourTool;
23 }
24 
25 namespace Ui
26 {
27  class QmitkEditableContourToolGUIControls;
28 }
29 
43 {
44  Q_OBJECT
45 
46 public:
50  enum class Mode
51  {
52  Add,
53  Subtract
54  };
55 
57  itkFactorylessNewMacro(Self);
58 
59 protected slots:
60 
64  void OnAutoConfirm(bool on);
65  void OnModeToggled(Mode mode);
66  void OnShowInformation(bool on);
67 
68 protected:
71 
72  std::unique_ptr<Ui::QmitkEditableContourToolGUIControls> m_Controls;
74 };
75 
76 #endif
#define MITKSEGMENTATIONUI_EXPORT
Base GUI class for editable contour-based segmentation tools.
void OnNewToolAssociated(mitk::Tool *)
Mode
Mode of operation for the contour tool.
std::unique_ptr< Ui::QmitkEditableContourToolGUIControls > m_Controls
itk::SmartPointer< mitk::EditableContourTool > m_NewTool
mitkClassMacro(QmitkEditableContourToolGUIBase, QmitkToolGUI)
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:32
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:80
Find image slices visible on a given plane.