| 166 | } |
| 167 | |
| 168 | BaseAnimationNode* DemoKeeper::createNode(std::string_view _type, std::string_view _name) |
| 169 | { |
| 170 | BaseAnimationNode* node = mGraphNodeFactory.createNode("GraphNode" + std::string{_type}, _name); |
| 171 | assert(node); |
| 172 | |
| 173 | mNodes.push_back(node); |
| 174 | |
| 175 | mGraphView->addItem(node); |
| 176 | node->setAbsolutePosition(mClickPosition); |
| 177 | |
| 178 | animation::IAnimationNode* anim_node = mNodeFactory.createNode(_type, _name, mGraph); |
| 179 | mGraph->addNode(anim_node); |
| 180 | node->setAnimationNode(anim_node); |
| 181 | |
| 182 | node->eventInvalidateNode = MyGUI::newDelegate(this, &DemoKeeper::notifyInvalidateNode); |
| 183 | |
| 184 | return node; |
| 185 | } |
| 186 | |
| 187 | void DemoKeeper::SaveGraph() |
| 188 | { |
nothing calls this directly
no test coverage detected