24 : m_InteractionScheme(MITKStandard)
36 if (
nullptr == interactionEventHandler)
38 mitkThrow() <<
"Not a valid interaction event handler to set the interaction scheme.";
41 switch (interactionScheme)
51 interactionEventHandler->
SetEventConfig(
"DisplayConfigMITKRotationUnCoupled.xml");
56 interactionEventHandler->
SetEventConfig(
"DisplayConfigMITKRotation.xml");
61 interactionEventHandler->
SetEventConfig(
"DisplayConfigMITKSwivel.xml");
73 interactionEventHandler->
AddEventConfig(
"DisplayConfigPACSLevelWindow.xml");
79 interactionEventHandler->
AddEventConfig(
"DisplayConfigPACSPan.xml");
85 interactionEventHandler->
AddEventConfig(
"DisplayConfigPACSScroll.xml");
91 interactionEventHandler->
AddEventConfig(
"DisplayConfigPACSZoom.xml");
100 m_InteractionScheme = interactionScheme;
101 InvokeEvent(InteractionSchemeChangedEvent());
~InteractionSchemeSwitcher() override
void SetInteractionScheme(mitk::InteractionEventHandler *interactionEventHandler, InteractionScheme interactionScheme)
Set the current interaction scheme of the given interaction event handler.
InteractionSchemeSwitcher()
bool AddEventConfig(const std::string &filename, const us::Module *module=nullptr)
This method extends the configuration.
bool SetEventConfig(const std::string &filename, const us::Module *module=nullptr)
Loads a configuration from an XML resource.