NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkBaseSegmentorGUI.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 niftkBaseSegmentorGUI_h
16 #define niftkBaseSegmentorGUI_h
17 
18 #include <niftkBaseGUI.h>
19 
20 namespace mitk
21 {
22 class ToolManager;
23 }
24 
25 namespace niftk
26 {
27 
28 class SegmentationSelectorWidget;
29 class ToolSelectorWidget;
30 
36 class BaseSegmentorGUI : public BaseGUI
37 {
38  Q_OBJECT
39 
40 public:
41 
42  BaseSegmentorGUI(QWidget* parent);
43  virtual ~BaseSegmentorGUI();
44 
45 public:
46 
48  bool IsToolSelectorEnabled() const;
49 
52 
54  void SetToolManager(mitk::ToolManager* toolManager);
55 
57  mitk::ToolManager* GetToolManager() const;
58 
59 signals:
60 
63 
64 protected:
65 
67  virtual void EnableSegmentationWidgets(bool enabled);
68 
69 private:
70 
71  void OnWorkingDataChanged();
72 
73 protected:
74 
77 
80 
83 
86 
87  mitk::ToolManager* m_ToolManager;
88 
89 };
90 
91 }
92 
93 #endif
bool IsToolSelectorEnabled() const
Tells if the tool selection box is on/off.
Definition: niftkBaseSegmentorGUI.cxx:75
void SetToolManager(mitk::ToolManager *toolManager)
Sets the tool manager of the tool selection box.
Definition: niftkBaseSegmentorGUI.cxx:89
GLenum GLsizei const GLuint GLboolean enabled
Definition: glew.h:2537
Implements the widget to select a reference image, and create a new segmentation. ...
Definition: niftkSegmentationSelectorWidget.h:36
Definition: ReceptorMemberCommandTest.cxx:25
BaseSegmentorGUI(QWidget *parent)
Definition: niftkBaseSegmentorGUI.cxx:26
QWidget * m_ContainerForToolWidget
Container for Tool Widget.
Definition: niftkBaseSegmentorGUI.h:85
void SetToolSelectorEnabled(bool enabled)
Turns the tool selection box on/off.
Definition: niftkBaseSegmentorGUI.cxx:82
QWidget * m_ContainerForSelectorWidget
Container for Selector Widget.
Definition: niftkBaseSegmentorGUI.h:82
virtual ~BaseSegmentorGUI()
Definition: niftkBaseSegmentorGUI.cxx:49
SegmentationSelectorWidget * m_SegmentationSelectorWidget
Common widget, enabling selection of Image and Segmentation, that might be replaced once we have a da...
Definition: niftkBaseSegmentorGUI.h:76
Base class for GUI controls on BlueBerry views.
Definition: niftkBaseGUI.h:29
mitk::ToolManager * GetToolManager() const
Gets the tool manager of the tool selection box.
Definition: niftkBaseSegmentorGUI.cxx:114
ToolSelectorWidget * m_ToolSelectorWidget
Common widget, enabling selection of a segmentation tool.
Definition: niftkBaseSegmentorGUI.h:79
Base class for GUI controls on MIDAS segmentor views.
Definition: niftkBaseSegmentorGUI.h:36
mitk::ToolManager * m_ToolManager
Definition: niftkBaseSegmentorGUI.h:87
void NewSegmentationButtonClicked()
Emitted when the user clicks on the 'Start/restart segmentation' button.
virtual void EnableSegmentationWidgets(bool enabled)
Method to enable derived classes to turn widgets off/on, with default do nothing implementation.
Definition: niftkBaseSegmentorGUI.cxx:69
Definition: niftkExceptionObject.h:21
Implements a widget containing the QmitkToolGUIArea and QmitkToolSelectionBox.
Definition: niftkToolSelectorWidget.h:31