Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPaintbrushToolGUI Class Reference

GUI for mitk::PaintbrushTool. More...

#include <QmitkPaintbrushToolGUI.h>

Inheritance diagram for QmitkPaintbrushToolGUI:
Collaboration diagram for QmitkPaintbrushToolGUI:

Public Member Functions

 mitkClassMacro (QmitkPaintbrushToolGUI, QmitkToolGUI)
 
void OnSizeChanged (int current)
 
- Public Member Functions inherited from QmitkToolGUI
 mitkClassMacroItkParent (QmitkToolGUI, itk::Object)
 
void SetTool (mitk::Tool *tool)
 
virtual void Register () const override
 
virtual void UnRegister () const ITK_NOEXCEPT ITK_OVERRIDE
 
virtual void SetReferenceCount (int) override
 
virtual ~QmitkToolGUI ()
 

Protected Slots

void OnNewToolAssociated (mitk::Tool *)
 
void OnSliderValueChanged (int value)
 
void VisualizePaintbrushSize (int size)
 

Protected Member Functions

 QmitkPaintbrushToolGUI ()
 
virtual ~QmitkPaintbrushToolGUI ()
 
- Protected Member Functions inherited from QmitkToolGUI
virtual void BusyStateChanged (bool)
 

Protected Attributes

QSlider * m_Slider
 
QLabel * m_SizeLabel
 
QFrame * m_Frame
 
mitk::PaintbrushTool::Pointer m_PaintbrushTool
 
- Protected Attributes inherited from QmitkToolGUI
mitk::Tool::Pointer m_Tool
 

Additional Inherited Members

- Signals inherited from QmitkToolGUI
void NewToolAssociated (mitk::Tool *)
 

Detailed Description

GUI for mitk::PaintbrushTool.

See also
mitk::PaintbrushTool

This GUI shows a slider to change the pen's size.

Last contributor: $Author$

Definition at line 37 of file QmitkPaintbrushToolGUI.h.

Constructor & Destructor Documentation

QmitkPaintbrushToolGUI::QmitkPaintbrushToolGUI ( )
protected
QmitkPaintbrushToolGUI::~QmitkPaintbrushToolGUI ( )
protectedvirtual

Definition at line 65 of file QmitkPaintbrushToolGUI.cpp.

References m_PaintbrushTool, and OnSizeChanged().

Member Function Documentation

QmitkPaintbrushToolGUI::mitkClassMacro ( QmitkPaintbrushToolGUI  ,
QmitkToolGUI   
)
void QmitkPaintbrushToolGUI::OnNewToolAssociated ( mitk::Tool tool)
protectedslot

Definition at line 75 of file QmitkPaintbrushToolGUI.cpp.

References m_PaintbrushTool, and OnSizeChanged().

Referenced by QmitkPaintbrushToolGUI().

void QmitkPaintbrushToolGUI::OnSizeChanged ( int  current)

Definition at line 120 of file QmitkPaintbrushToolGUI.cpp.

References m_Slider.

Referenced by OnNewToolAssociated(), and ~QmitkPaintbrushToolGUI().

void QmitkPaintbrushToolGUI::OnSliderValueChanged ( int  value)
protectedslot

Definition at line 92 of file QmitkPaintbrushToolGUI.cpp.

References m_PaintbrushTool, and VisualizePaintbrushSize().

Referenced by QmitkPaintbrushToolGUI().

void QmitkPaintbrushToolGUI::VisualizePaintbrushSize ( int  size)
protectedslot

Definition at line 102 of file QmitkPaintbrushToolGUI.cpp.

References m_SizeLabel.

Referenced by OnSliderValueChanged().

Member Data Documentation

QFrame* QmitkPaintbrushToolGUI::m_Frame
protected

Definition at line 64 of file QmitkPaintbrushToolGUI.h.

mitk::PaintbrushTool::Pointer QmitkPaintbrushToolGUI::m_PaintbrushTool
protected
QLabel* QmitkPaintbrushToolGUI::m_SizeLabel
protected

Definition at line 63 of file QmitkPaintbrushToolGUI.h.

Referenced by QmitkPaintbrushToolGUI(), and VisualizePaintbrushSize().

QSlider* QmitkPaintbrushToolGUI::m_Slider
protected

Definition at line 62 of file QmitkPaintbrushToolGUI.h.

Referenced by OnSizeChanged(), and QmitkPaintbrushToolGUI().


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