Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitk::MouseModeSwitcher Class Reference

#include <mitkMouseModeSwitcher.h>

Inheritance diagram for mitk::MouseModeSwitcher:
Collaboration diagram for mitk::MouseModeSwitcher:

Public Types

enum  InteractionScheme {
  PACS, MITK, ROTATION, ROTATIONLINKED,
  SWIVEL
}
 
enum  MouseMode {
  MousePointer, Scroll, LevelWindow, Zoom,
  Pan
}
 
typedef MouseModeSwitcher Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

 itkEventMacro (MouseModeChangedEvent, itk::AnyEvent)
 Can be observed by GUI class to update button states when mode is changed programatically. More...
 
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
void SetInteractionScheme (InteractionScheme)
 Setter for interaction scheme. More...
 
void SelectMouseMode (MouseMode mode)
 Setter for mouse mode. More...
 
MouseMode GetCurrentMouseMode () const
 Returns the current mouse mode. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 

Protected Member Functions

 MouseModeSwitcher ()
 
 ~MouseModeSwitcher () override
 

Detailed Description

Definition at line 57 of file mitkMouseModeSwitcher.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Definition at line 67 of file mitkMouseModeSwitcher.h.

Member Enumeration Documentation

◆ InteractionScheme

Enumerator
PACS 
MITK 
ROTATION 
ROTATIONLINKED 
SWIVEL 

Definition at line 72 of file mitkMouseModeSwitcher.h.

◆ MouseMode

Enumerator
MousePointer 
Scroll 
LevelWindow 
Zoom 
Pan 

Definition at line 81 of file mitkMouseModeSwitcher.h.

Constructor & Destructor Documentation

◆ MouseModeSwitcher()

mitk::MouseModeSwitcher::MouseModeSwitcher ( )
protected

Definition at line 20 of file mitkMouseModeSwitcher.cpp.

References SetInteractionScheme().

◆ ~MouseModeSwitcher()

mitk::MouseModeSwitcher::~MouseModeSwitcher ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::MouseModeSwitcher::Clone ( ) const

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::MouseModeSwitcher::GetClassHierarchy ( ) const
inlinevirtual

Definition at line 67 of file mitkMouseModeSwitcher.h.

◆ GetClassName()

virtual const char* mitk::MouseModeSwitcher::GetClassName ( ) const
virtual

◆ GetCurrentMouseMode()

mitk::MouseModeSwitcher::MouseMode mitk::MouseModeSwitcher::GetCurrentMouseMode ( ) const

Returns the current mouse mode.

Definition at line 122 of file mitkMouseModeSwitcher.cpp.

Referenced by QmitkMouseModeSwitcher::OnMouseModeChangedViaCommand().

◆ GetStaticNameOfClass()

static const char* mitk::MouseModeSwitcher::GetStaticNameOfClass ( )
inlinestatic

Definition at line 67 of file mitkMouseModeSwitcher.h.

◆ itkEventMacro()

mitk::MouseModeSwitcher::itkEventMacro ( MouseModeChangedEvent  ,
itk::AnyEvent   
)

Can be observed by GUI class to update button states when mode is changed programatically.

◆ New()

static Pointer mitk::MouseModeSwitcher::New ( )
static

◆ SelectMouseMode()

void mitk::MouseModeSwitcher::SelectMouseMode ( MouseMode  mode)

Setter for mouse mode.

Definition at line 84 of file mitkMouseModeSwitcher.cpp.

References LevelWindow, MousePointer, PACS, Pan, Scroll, and Zoom.

Referenced by QmitkMouseModeSwitcher::OnMouseModeChangedViaButton().

◆ SetInteractionScheme()

void mitk::MouseModeSwitcher::SetInteractionScheme ( InteractionScheme  scheme)

Setter for interaction scheme.

Definition at line 47 of file mitkMouseModeSwitcher.cpp.

References MITK, PACS, ROTATION, ROTATIONLINKED, and SWIVEL.

Referenced by MouseModeSwitcher(), and QmitkMouseModeSwitcher::OnMouseModeChangedViaButton().


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