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

GUI component for the DrawTool, providing a single slider to control the radius in millimetres of the "erase" function. More...

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

Public Member Functions

 mitkClassMacro (DrawToolGUI, QmitkToolGUI) static Pointer New()
 
void OnCursorSizeChanged (double cursorSize)
 Method to set or initialise the size of the cursor (radius of influence). More...
 

Protected Slots

void OnNewToolAssociated (mitk::Tool *)
 Qt slot called when the tool is activated. More...
 
void OnSliderValueChanged (double value)
 Qt slot called when the user moves the slider. More...
 

Protected Member Functions

 DrawToolGUI ()
 
virtual ~DrawToolGUI ()
 

Protected Attributes

ctkSliderWidget * m_Slider
 
QFrame * m_Frame
 
DrawTool::Pointer m_DrawTool
 

Detailed Description

GUI component for the DrawTool, providing a single slider to control the radius in millimetres of the "erase" function.

Notice how this class can have a reference to the mitk::Tool it is controlling, and registers with the mitk::Tool in the OnNewToolAssociated method, and de-registers with the mitk::Tool in the destructor.

The reverse is not true. Any mitk::Tool must not know that it has a GUI, and hence the reason they are in a different library / Module.

Constructor & Destructor Documentation

niftk::DrawToolGUI::DrawToolGUI ( )
protected
niftk::DrawToolGUI::~DrawToolGUI ( )
protectedvirtual

Member Function Documentation

niftk::DrawToolGUI::mitkClassMacro ( DrawToolGUI  ,
QmitkToolGUI   
)
void niftk::DrawToolGUI::OnCursorSizeChanged ( double  cursorSize)

Method to set or initialise the size of the cursor (radius of influence).

void niftk::DrawToolGUI::OnNewToolAssociated ( mitk::Tool *  tool)
protectedslot

Qt slot called when the tool is activated.

void niftk::DrawToolGUI::OnSliderValueChanged ( double  value)
protectedslot

Qt slot called when the user moves the slider.

Member Data Documentation

DrawTool::Pointer niftk::DrawToolGUI::m_DrawTool
protected
QFrame* niftk::DrawToolGUI::m_Frame
protected
ctkSliderWidget* niftk::DrawToolGUI::m_Slider
protected

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