MCPcopy Create free account
hub / github.com/MyGUI/mygui / getNodeByName

Method getNodeByName

UnitTests/UnitTest_GraphView/DemoKeeper.cpp:457–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455 }
456
457 BaseAnimationNode* DemoKeeper::getNodeByName(std::string_view _name)
458 {
459 wraps::BaseGraphView::EnumeratorNode node = mGraphView->getNodeEnumerator();
460 while (node.next())
461 {
462 BaseAnimationNode* anim_node = dynamic_cast<BaseAnimationNode*>(node.current());
463 if (anim_node && anim_node->getName() == _name)
464 {
465 return anim_node;
466 }
467 }
468 return nullptr;
469 }
470
471 void DemoKeeper::connectPoints(
472 BaseAnimationNode* _node_from,

Callers 3

updateStateLenghtMethod · 0.45
updateStateLenghtMethod · 0.45
setPropertyMethod · 0.45

Calls 3

getNodeEnumeratorMethod · 0.80
nextMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected