NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | List of all members
niftk::ToolSelectorWidget Class Reference

Implements a widget containing the QmitkToolGUIArea and QmitkToolSelectionBox. More...

Inheritance diagram for niftk::ToolSelectorWidget:
Inheritance graph
[legend]
Collaboration diagram for niftk::ToolSelectorWidget:
Collaboration graph
[legend]

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)
 

Detailed Description

Implements a widget containing the QmitkToolGUIArea and QmitkToolSelectionBox.

This widget provides SetEnabled() and GetEnabled(), which simplify the idea of enabling/disabling the toolbox.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Parameters
toolManager

The documentation for this class was generated from the following files: