NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Implements a widget containing the QmitkToolGUIArea and QmitkToolSelectionBox. More...
Public Member Functions | |
ToolSelectorWidget (QWidget *parent=0) | |
Constructor. More... | |
~ToolSelectorWidget () | |
Destructor. More... | |
void | SetEnabled (bool enabled) |
Set the widget to be enabled / disabled. More... | |
bool | IsEnabled () const |
Get the enabled status. More... | |
mitk::ToolManager * | GetToolManager () const |
Retrieves the tool manager using the micro services API. More... | |
void | SetToolManager (mitk::ToolManager *toolManager) |
Sets the tool manager nullptr is not allowed, a valid manager is required. More... | |
void | SetDisplayedToolGroups (const QString &toolGroups) |
Implements a widget containing the QmitkToolGUIArea and QmitkToolSelectionBox.
This widget provides SetEnabled() and GetEnabled(), which simplify the idea of enabling/disabling the toolbox.
niftk::ToolSelectorWidget::ToolSelectorWidget | ( | QWidget * | parent = 0 | ) |
Constructor.
Note: If we did not set a layout for the GUI container then one would be created with 9,9,9,9 margins.
Note: We set a minimum height for the tool GUI container so that if a tool needs additional GUI controls, they can be put into that 'empty' area, and the rest of the GUI controls do not 'jump down'. From the MIDAS tools only the paintbrush tool (morphological editor) and the draw tool (irregular editor) have such controls, both provide one slider. On Mac OS X Mountain Lion the required height for this is 24 pixels, but this might be different on other platforms.
niftk::ToolSelectorWidget::~ToolSelectorWidget | ( | ) |
Destructor.
mitk::ToolManager * niftk::ToolSelectorWidget::GetToolManager | ( | ) | const |
Retrieves the tool manager using the micro services API.
bool niftk::ToolSelectorWidget::IsEnabled | ( | ) | const |
Get the enabled status.
void niftk::ToolSelectorWidget::SetDisplayedToolGroups | ( | const QString & | toolGroups | ) |
void niftk::ToolSelectorWidget::SetEnabled | ( | bool | enabled | ) |
Set the widget to be enabled / disabled.
void niftk::ToolSelectorWidget::SetToolManager | ( | mitk::ToolManager * | toolManager | ) |
Sets the tool manager nullptr is not allowed, a valid manager is required.
toolManager |