33 m_EventConfig = newConfig;
35 ConfigurationChanged();
38 MITK_ERROR <<
"InteractionEventHandler: Failed to load EventConfiguration";
46 m_EventConfig = config;
48 ConfigurationChanged();
61 if (!m_EventConfig.IsValid())
63 MITK_ERROR <<
"SetEventConfig has to be called before AddEventConfig can be used.";
67 bool success = m_EventConfig.AddConfig(filename, module);
70 ConfigurationChanged();
77 if (!m_EventConfig.IsValid())
79 MITK_ERROR <<
"SetEventConfig has to be called before AddEventConfig can be used.";
83 bool success = m_EventConfig.AddConfig(config);
86 ConfigurationChanged();
93 if (m_EventConfig.IsValid())
95 return m_EventConfig.GetAttributes();
99 MITK_ERROR <<
"InteractionEventHandler::GetAttributes() requested, but not configuration loaded.";
106 if (m_EventConfig.IsValid())
108 return m_EventConfig.GetMappedEvent(interactionEvent);
PropertyList::Pointer GetAttributes() const
virtual ~InteractionEventHandler()
EventConfig GetEventConfig() const
Returns the current configuration.
static const std::string filename
bool IsValid() const
Checks wether this EventConfig object is valid.
Configuration Object for Statemachines.
InteractionEventHandler()
bool AddEventConfig(const std::string &filename, const us::Module *module=nullptr)
This method extends the configuration.
std::string MapToEventVariant(InteractionEvent *interactionEvent)
virtual void ConfigurationChanged()
bool SetEventConfig(const std::string &filename, const us::Module *module=nullptr)
Loads a configuration from an XML resource.