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

Method CheckCondition

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

Source from the content-addressed store, hash-verified

145}
146
147bool mitk::EventStateMachine::CheckCondition(const StateMachineCondition &condition, const InteractionEvent *event)
148{
149 bool retVal = false;
150 ConditionDelegatesMapType::const_iterator delegateIter = m_ConditionDelegatesMap.find(condition.GetConditionName());
151 if (delegateIter != m_ConditionDelegatesMap.cend())
152 {
153 retVal = delegateIter->second->Execute(event);
154 }
155 else
156 {
157 MITK_WARN << "No implementation of condition '" << condition.GetConditionName() << "' has been found.";
158 }
159
160 return retVal;
161}
162
163void mitk::EventStateMachine::ExecuteAction(StateMachineAction *action, InteractionEvent *event)
164{

Callers

nothing calls this directly

Calls 3

GetConditionNameMethod · 0.80
findMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected