| 161 | } |
| 162 | |
| 163 | void 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 | |
| 182 | mitk::StateMachineState *mitk::EventStateMachine::GetCurrentState() const |
| 183 | { |
nothing calls this directly
no test coverage detected