NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkPaintbrushToolGUI.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkPaintbrushToolGUI_h
16 #define niftkPaintbrushToolGUI_h
17 
18 #include <QmitkToolGUI.h>
19 #include <niftkPaintbrushTool.h>
20 
21 class QSlider;
22 class QLabel;
23 class QFrame;
24 
25 namespace niftk
26 {
27 
37 class PaintbrushToolGUI : public QmitkToolGUI
38 {
39  Q_OBJECT
40 
41 public:
42 
43  mitkClassMacro(PaintbrushToolGUI, QmitkToolGUI)
44  itkNewMacro(PaintbrushToolGUI)
45 
46 
47  void OnCursorSizeChanged(int current);
48 
49 signals:
50 
51 public slots:
52 
53 protected slots:
54 
56  void OnNewToolAssociated(mitk::Tool*);
57 
59  void OnSliderValueChanged(int value);
60 
61 protected:
62 
64  virtual ~PaintbrushToolGUI();
65 
66  QSlider* m_Slider;
67  QLabel* m_SizeLabel;
68  QFrame* m_Frame;
69 
70  PaintbrushTool::Pointer m_PaintbrushTool;
71 };
72 
73 }
74 
75 #endif
76 
void OnCursorSizeChanged(int current)
Method to set or initialise the size of the cursor (radius of influence).
Definition: niftkPaintbrushToolGUI.cxx:100
void OnNewToolAssociated(mitk::Tool *)
Qt slot called when the tool is activated.
Definition: niftkPaintbrushToolGUI.cxx:72
QLabel * m_SizeLabel
Definition: niftkPaintbrushToolGUI.h:67
PaintbrushToolGUI()
Definition: niftkPaintbrushToolGUI.cxx:31
virtual ~PaintbrushToolGUI()
Definition: niftkPaintbrushToolGUI.cxx:62
void OnSliderValueChanged(int value)
Qt slot called when the user moves the slider.
Definition: niftkPaintbrushToolGUI.cxx:89
mitkClassMacro(PaintbrushToolGUI, QmitkToolGUI) static Pointer New()
GLsizei const GLfloat * value
Definition: glew.h:1833
PaintbrushTool::Pointer m_PaintbrushTool
Definition: niftkPaintbrushToolGUI.h:70
QSlider * m_Slider
Definition: niftkPaintbrushToolGUI.h:66
Definition: niftkPaintbrushToolGUI.h:37
Definition: niftkExceptionObject.h:21
QFrame * m_Frame
Definition: niftkPaintbrushToolGUI.h:68