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

Method notifyNodeClosed

UnitTests/UnitTest_GraphView/DemoKeeper.cpp:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 }
213
214 void DemoKeeper::notifyNodeClosed(wraps::BaseGraphView* _sender, wraps::BaseGraphNode* _node)
215 {
216 BaseAnimationNode* node = dynamic_cast<BaseAnimationNode*>(_node);
217 node->getAnimationNode()->getGraph()->removeNode(node->getAnimationNode());
218 animation::IAnimationNode* anim_node = node->getAnimationNode();
219 _sender->removeItem(_node);
220 delete anim_node;
221
222 mNodes.erase(std::remove(mNodes.begin(), mNodes.end(), _node), mNodes.end());
223 delete _node;
224 }
225
226 void DemoKeeper::notifyConnectPoint(
227 wraps::BaseGraphView* _sender,

Callers

nothing calls this directly

Calls 7

removeNodeMethod · 0.80
getGraphMethod · 0.80
getAnimationNodeMethod · 0.80
removeItemMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected