Medical Imaging Interaction Toolkit  2016.11.0
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 ()
 
virtual ~MouseModeSwitcher ()
 

Detailed Description

Definition at line 61 of file mitkMouseModeSwitcher.h.

Member Typedef Documentation

Definition at line 71 of file mitkMouseModeSwitcher.h.

Member Enumeration Documentation

Enumerator
PACS 
MITK 
ROTATION 
ROTATIONLINKED 
SWIVEL 

Definition at line 75 of file mitkMouseModeSwitcher.h.

Enumerator
MousePointer 
Scroll 
LevelWindow 
Zoom 
Pan 

Definition at line 84 of file mitkMouseModeSwitcher.h.

Constructor & Destructor Documentation

mitk::MouseModeSwitcher::MouseModeSwitcher ( )
protected

Definition at line 24 of file mitkMouseModeSwitcher.cpp.

References SetInteractionScheme().

mitk::MouseModeSwitcher::~MouseModeSwitcher ( )
protectedvirtual

Definition at line 31 of file mitkMouseModeSwitcher.cpp.

Member Function Documentation

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

Definition at line 71 of file mitkMouseModeSwitcher.h.

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

Returns the current mouse mode.

Definition at line 126 of file mitkMouseModeSwitcher.cpp.

Referenced by QmitkMouseModeSwitcher::OnMouseModeChanged().

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

Definition at line 71 of file mitkMouseModeSwitcher.h.

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

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

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

Setter for mouse mode.

Definition at line 88 of file mitkMouseModeSwitcher.cpp.

Referenced by QmitkMouseModeSwitcher::modeSelectedByUser().

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

Setter for interaction scheme.

Definition at line 51 of file mitkMouseModeSwitcher.cpp.

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


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