Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkInteractionSchemeSwitcher.h>
Public Types | |
enum | InteractionScheme { MITKStandard, MITKRotationUncoupled, MITKRotationCoupled, MITKSwivel, PACSStandard, PACSLevelWindow, PACSPan, PACSScroll, PACSZoom } |
typedef InteractionSchemeSwitcher | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
itkEventMacro (InteractionSchemeChangedEvent, itk::AnyEvent) | |
Can be observed by GUI class to update button states when type is changed programmatically. More... | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
void | SetInteractionScheme (mitk::InteractionEventHandler *interactionEventHandler, InteractionScheme interactionScheme) |
Set the current interaction scheme of the given interaction event handler. More... | |
InteractionScheme | GetInteractionScheme () const |
Return the current interaction scheme. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Protected Member Functions | |
InteractionSchemeSwitcher () | |
~InteractionSchemeSwitcher () override | |
Definition at line 60 of file mitkInteractionSchemeSwitcher.h.
typedef itk::SmartPointer<const Self> mitk::InteractionSchemeSwitcher::ConstPointer |
Definition at line 70 of file mitkInteractionSchemeSwitcher.h.
Definition at line 70 of file mitkInteractionSchemeSwitcher.h.
Definition at line 70 of file mitkInteractionSchemeSwitcher.h.
typedef itk::Object mitk::InteractionSchemeSwitcher::Superclass |
Definition at line 70 of file mitkInteractionSchemeSwitcher.h.
Enumerator | |
---|---|
MITKStandard | |
MITKRotationUncoupled | |
MITKRotationCoupled | |
MITKSwivel | |
PACSStandard | |
PACSLevelWindow | |
PACSPan | |
PACSScroll | |
PACSZoom |
Definition at line 75 of file mitkInteractionSchemeSwitcher.h.
|
protected |
Definition at line 23 of file mitkInteractionSchemeSwitcher.cpp.
|
overrideprotected |
Definition at line 29 of file mitkInteractionSchemeSwitcher.cpp.
Pointer mitk::InteractionSchemeSwitcher::Clone | ( | ) | const |
|
inlinevirtual |
Definition at line 70 of file mitkInteractionSchemeSwitcher.h.
|
virtual |
|
inline |
Return the current interaction scheme.
Definition at line 109 of file mitkInteractionSchemeSwitcher.h.
|
inlinestatic |
Definition at line 70 of file mitkInteractionSchemeSwitcher.h.
mitk::InteractionSchemeSwitcher::itkEventMacro | ( | InteractionSchemeChangedEvent | , |
itk::AnyEvent | |||
) |
Can be observed by GUI class to update button states when type is changed programmatically.
|
static |
void mitk::InteractionSchemeSwitcher::SetInteractionScheme | ( | mitk::InteractionEventHandler * | interactionEventHandler, |
InteractionScheme | interactionScheme | ||
) |
Set the current interaction scheme of the given interaction event handler.
The interaction event handler is able to accept xml-configuration files that will define the interaction scheme. Based on the given interaction scheme different configuration files are loaded into the interaction event handler. The interaction scheme can be a variant of the MITK-mouse mode or the PACS-mouse mode (see 'enum InteractionScheme'). The default is 'MITKStandard'. If the interaction scheme has been changed, an 'InteractionSchemeChangedEvent' will be invoked.
mitk::Exception,if | the interaction event handler is invalid (==nullptr). |
interactionEventHandler | The interaction event handler that defines the interaction scheme via configuration files |
interactionScheme | The interaction scheme that should be used for the currently active interaction event handler. |
Definition at line 34 of file mitkInteractionSchemeSwitcher.cpp.
References mitk::InteractionEventHandler::AddEventConfig(), MITKRotationCoupled, MITKRotationUncoupled, MITKStandard, MITKSwivel, mitkThrow, PACSLevelWindow, PACSPan, PACSScroll, PACSStandard, PACSZoom, and mitk::InteractionEventHandler::SetEventConfig().