NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkToolSelectorWidget.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 niftkToolSelectorWidget_h
16 #define niftkToolSelectorWidget_h
17 
18 #include <QWidget>
19 #include "ui_niftkToolSelectorWidget.h"
20 
21 namespace niftk
22 {
23 
31 class ToolSelectorWidget : public QWidget, private Ui::niftkToolSelectorWidget {
32 
33  Q_OBJECT
34 
35 public:
36 
38  ToolSelectorWidget(QWidget *parent = 0);
39 
42 
44  void SetEnabled(bool enabled);
45 
47  bool IsEnabled() const;
48 
50  mitk::ToolManager* GetToolManager() const;
51 
55  void SetToolManager(mitk::ToolManager* toolManager);
56 
57  void SetDisplayedToolGroups(const QString& toolGroups);
58 
59 private:
60 
61  ToolSelectorWidget(const ToolSelectorWidget&); // Purposefully not implemented.
62  void operator=(const ToolSelectorWidget&); // Purposefully not implemented.
63 
64 };
65 
66 }
67 
68 #endif
69 
mitk::ToolManager * GetToolManager() const
Retrieves the tool manager using the micro services API.
Definition: niftkToolSelectorWidget.cxx:55
GLenum GLsizei const GLuint GLboolean enabled
Definition: glew.h:2537
~ToolSelectorWidget()
Destructor.
Definition: niftkToolSelectorWidget.cxx:49
ToolSelectorWidget(QWidget *parent=0)
Constructor.
Definition: niftkToolSelectorWidget.cxx:22
void SetEnabled(bool enabled)
Set the widget to be enabled / disabled.
Definition: niftkToolSelectorWidget.cxx:69
void SetToolManager(mitk::ToolManager *toolManager)
Sets the tool manager nullptr is not allowed, a valid manager is required.
Definition: niftkToolSelectorWidget.cxx:62
Definition: niftkExceptionObject.h:21
Implements a widget containing the QmitkToolGUIArea and QmitkToolSelectionBox.
Definition: niftkToolSelectorWidget.h:31
bool IsEnabled() const
Get the enabled status.
Definition: niftkToolSelectorWidget.cxx:87
void SetDisplayedToolGroups(const QString &toolGroups)
Definition: niftkToolSelectorWidget.cxx:94