MCPcopy Create free account
hub / github.com/MITK/MITK / ExecuteAction

Method ExecuteAction

Modules/Core/src/Interactions/mitkEventStateMachine.cpp:163–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void mitk::EventStateMachine::ExecuteAction(StateMachineAction *action, InteractionEvent *event)
164{
165 if (action == nullptr)
166 {
167 return;
168 }
169
170 // Maps Action-Name to Functor and executes the Functor.
171 ActionDelegatesMapType::const_iterator delegateIter = m_ActionDelegatesMap.find(action->GetActionName());
172 if (delegateIter != m_ActionDelegatesMap.cend())
173 {
174 delegateIter->second->Execute(action, event);
175 }
176 else
177 {
178 MITK_WARN << "No implementation of action '" << action->GetActionName() << "' has been found.";
179 }
180}
181
182mitk::StateMachineState *mitk::EventStateMachine::GetCurrentState() const
183{

Callers

nothing calls this directly

Calls 3

GetActionNameMethod · 0.80
findMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected