Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Qt toolbar representing mitk::MouseModeSwitcher. More...
#include <QmitkMouseModeSwitcher.h>
Public Types | |
typedef mitk::MouseModeSwitcher::MouseMode | MouseMode |
Public Slots | |
void | setMouseModeSwitcher (mitk::MouseModeSwitcher *) |
Connect to non-GUI class. More... | |
Signals | |
void | MouseModeSelected (mitk::MouseModeSwitcher::MouseMode id) |
Mode activated. More... | |
Public Member Functions | |
QmitkMouseModeSwitcher (QWidget *parent=0) | |
virtual | ~QmitkMouseModeSwitcher () |
Protected Slots | |
void | modeSelectedByUser () |
void | addButton (MouseMode id, const QString &toolName, const QIcon &icon, bool on=false) |
Protected Member Functions | |
void | OnMouseModeChanged (const itk::EventObject &) |
Protected Attributes | |
QActionGroup * | m_ActionGroup |
mitk::MouseModeSwitcher * | m_MouseModeSwitcher |
unsigned long | m_ObserverTag |
bool | m_InObservationReaction |
Qt toolbar representing mitk::MouseModeSwitcher.
Provides buttons for the interaction modes defined in mitk::MouseModeSwitcher and communicates with this non-graphical class.
Can be used in a GUI to provide a mouse mode selector to the user.
Definition at line 36 of file QmitkMouseModeSwitcher.h.
Definition at line 44 of file QmitkMouseModeSwitcher.h.
QmitkMouseModeSwitcher::QmitkMouseModeSwitcher | ( | QWidget * | parent = 0 | ) |
Definition at line 20 of file QmitkMouseModeSwitcher.cpp.
References addButton(), mitk::MouseModeSwitcher::LevelWindow, m_ActionGroup, mitk::MouseModeSwitcher::MousePointer, mitk::MouseModeSwitcher::Pan, mitk::MouseModeSwitcher::Scroll, and mitk::MouseModeSwitcher::Zoom.
|
virtual |
Definition at line 49 of file QmitkMouseModeSwitcher.cpp.
References m_MouseModeSwitcher, and m_ObserverTag.
|
protectedslot |
Definition at line 38 of file QmitkMouseModeSwitcher.cpp.
References m_ActionGroup, and modeSelectedByUser().
Referenced by QmitkMouseModeSwitcher().
|
protectedslot |
Definition at line 76 of file QmitkMouseModeSwitcher.cpp.
References m_InObservationReaction, m_MouseModeSwitcher, MouseModeSelected(), mitk::MouseModeSwitcher::SelectMouseMode(), and mitk::MouseModeSwitcher::SetInteractionScheme().
Referenced by addButton().
|
signal |
Mode activated.
This signal is needed for other GUI element to react appropriately. Sadly this is needed to provide "normal" functionality of QmitkStdMultiWidget, because this must enable/disable automatic reaction of SliceNavigationControllers to mouse clicks - depending on which mode is active.
Referenced by modeSelectedByUser().
|
protected |
Definition at line 97 of file QmitkMouseModeSwitcher.cpp.
References mitk::MouseModeSwitcher::GetCurrentMouseMode(), m_ActionGroup, m_InObservationReaction, and m_MouseModeSwitcher.
Referenced by setMouseModeSwitcher().
|
slot |
Connect to non-GUI class.
When a button is pressed, given mitk::MouseModeSwitcher is informed to adapt interactors.
Definition at line 57 of file QmitkMouseModeSwitcher.cpp.
References m_MouseModeSwitcher, m_ObserverTag, mitk::New(), and OnMouseModeChanged().
|
protected |
Definition at line 81 of file QmitkMouseModeSwitcher.h.
Referenced by addButton(), OnMouseModeChanged(), and QmitkMouseModeSwitcher().
|
protected |
Definition at line 86 of file QmitkMouseModeSwitcher.h.
Referenced by modeSelectedByUser(), and OnMouseModeChanged().
|
protected |
Definition at line 82 of file QmitkMouseModeSwitcher.h.
Referenced by modeSelectedByUser(), OnMouseModeChanged(), setMouseModeSwitcher(), and ~QmitkMouseModeSwitcher().
|
protected |
Definition at line 84 of file QmitkMouseModeSwitcher.h.
Referenced by setMouseModeSwitcher(), and ~QmitkMouseModeSwitcher().