Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkPaintbrushToolGUI.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 QmitkPaintbrushToolGUI_h
14 #define QmitkPaintbrushToolGUI_h
15 
16 #include <QmitkToolGUI.h>
17 #include <mitkPaintbrushTool.h>
19 
20 class QSlider;
21 class QLabel;
22 class QFrame;
23 
31 {
32  Q_OBJECT
33 
34 public:
36 
38  void OnSizeChanged(int current);
39 
40 signals:
41 
42 public slots:
43 
44 protected slots:
45 
47 
48  void OnSliderValueChanged(int value);
49 
50  void VisualizePaintbrushSize(int size);
51 
52 protected:
55 
56  QSlider *m_Slider;
57  QLabel *m_SizeLabel;
58  QFrame *m_Frame;
59 
60  mitk::PaintbrushTool::Pointer m_PaintbrushTool;
61 };
62 
63 #endif
#define MITKSEGMENTATIONUI_EXPORT
GUI for mitk::PaintbrushTool.
void OnSizeChanged(int current)
Called when the paintbrush size changes in the tool. Updates the slider.
~QmitkPaintbrushToolGUI() override
void VisualizePaintbrushSize(int size)
void OnSliderValueChanged(int value)
mitk::PaintbrushTool::Pointer m_PaintbrushTool
mitkClassMacro(QmitkPaintbrushToolGUI, QmitkToolGUI)
void OnNewToolAssociated(mitk::Tool *)
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