NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
GUI component for the DrawTool, providing a single slider to control the radius in millimetres of the "erase" function. More...
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 |
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.
|
protected |
|
protectedvirtual |
niftk::DrawToolGUI::mitkClassMacro | ( | DrawToolGUI | , |
QmitkToolGUI | |||
) |
void niftk::DrawToolGUI::OnCursorSizeChanged | ( | double | cursorSize | ) |
Method to set or initialise the size of the cursor (radius of influence).
|
protectedslot |
Qt slot called when the tool is activated.
|
protectedslot |
Qt slot called when the user moves the slider.
|
protected |
|
protected |
|
protected |