NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkDrawToolGUI.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 niftkDrawToolGUI_h
16 #define niftkDrawToolGUI_h
17 
18 #include <niftkDrawTool.h>
19 #include <QmitkToolGUI.h>
20 
21 class QFrame;
22 
23 class ctkSliderWidget;
24 
25 namespace niftk
26 {
27 
37 class DrawToolGUI : public QmitkToolGUI
38 {
39  Q_OBJECT
40 
41 public:
42 
43  mitkClassMacro(DrawToolGUI, QmitkToolGUI)
44  itkNewMacro(DrawToolGUI)
45 
46 
47  void OnCursorSizeChanged(double cursorSize);
48 
49 signals:
50 
51 public slots:
52 
53 protected slots:
54 
56  void OnNewToolAssociated(mitk::Tool*);
57 
59  void OnSliderValueChanged(double value);
60 
61 protected:
62 
63  DrawToolGUI();
64  virtual ~DrawToolGUI();
65 
66  ctkSliderWidget* m_Slider;
67  QFrame* m_Frame;
68 
69  DrawTool::Pointer m_DrawTool;
70 };
71 
72 }
73 
74 #endif
GUI component for the DrawTool, providing a single slider to control the radius in millimetres of the...
Definition: niftkDrawToolGUI.h:37
ctkSliderWidget * m_Slider
Definition: niftkDrawToolGUI.h:66
virtual ~DrawToolGUI()
Definition: niftkDrawToolGUI.cxx:60
QFrame * m_Frame
Definition: niftkDrawToolGUI.h:67
void OnNewToolAssociated(mitk::Tool *)
Qt slot called when the tool is activated.
Definition: niftkDrawToolGUI.cxx:70
void OnCursorSizeChanged(double cursorSize)
Method to set or initialise the size of the cursor (radius of influence).
Definition: niftkDrawToolGUI.cxx:98
DrawToolGUI()
Definition: niftkDrawToolGUI.cxx:31
GLsizei const GLfloat * value
Definition: glew.h:1833
DrawTool::Pointer m_DrawTool
Definition: niftkDrawToolGUI.h:69
mitkClassMacro(DrawToolGUI, QmitkToolGUI) static Pointer New()
void OnSliderValueChanged(double value)
Qt slot called when the user moves the slider.
Definition: niftkDrawToolGUI.cxx:88
Definition: niftkExceptionObject.h:21