29 m_EventConfig = newConfig;
34 MITK_ERROR <<
"InteractionEventHandler: Failed to load EventConfiguration";
42 m_EventConfig = config;
59 MITK_ERROR <<
"SetEventConfig has to be called before AddEventConfig can be used.";
63 bool success = m_EventConfig.
AddConfig(filename, module);
75 MITK_ERROR <<
"SetEventConfig has to be called before AddEventConfig can be used.";
79 bool success = m_EventConfig.
AddConfig(config);
95 MITK_ERROR <<
"InteractionEventHandler::GetAttributes() requested, but not configuration loaded.";
~InteractionEventHandler() override
std::string GetMappedEvent(const EventType &interactionEvent) const
bool AddConfig(const std::string &filename, const us::Module *module=nullptr)
This method extends this configuration.
bool IsValid() const
Checks wether this EventConfig object is valid.
EventConfig GetEventConfig() const
Returns the current configuration.
Configuration Object for Statemachines.
PropertyList::Pointer GetAttributes() const
InteractionEventHandler()
bool AddEventConfig(const std::string &filename, const us::Module *module=nullptr)
This method extends the configuration.
PropertyList::Pointer GetAttributes() const
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.