| 71 | } |
| 72 | |
| 73 | void DemoKeeper::createScene() |
| 74 | { |
| 75 | base::BaseDemoManager::createScene(); |
| 76 | MyGUI::ResourceManager::getInstance().load("FrameworkFonts.xml"); |
| 77 | MyGUI::ResourceManager::getInstance().load("SplineSkin.xml"); |
| 78 | MyGUI::ResourceManager::getInstance().load("GraphNodeSkin.xml"); |
| 79 | |
| 80 | new tools::DialogManager(); |
| 81 | tools::DialogManager::getInstance().initialise(); |
| 82 | |
| 83 | Ogre::SceneNode* node = getSceneManager()->getRootSceneNode()->createChildSceneNode(); |
| 84 | Ogre::Entity* entity = getSceneManager()->createEntity("Object", "robot.mesh", MyGuiResourceGroup); |
| 85 | node->attachObject(entity); |
| 86 | getCameraNode()->setPosition(400, 400, 400); |
| 87 | |
| 88 | mFileDialog = new tools::OpenSaveFileDialog(); |
| 89 | mFileDialog->eventEndDialog = MyGUI::newDelegate(this, &DemoKeeper::notifyEndDialog); |
| 90 | |
| 91 | mGraph = new animation::AnimationGraph(); |
| 92 | mGraph->addData("OwnerEntity", Ogre::Any(entity)); |
| 93 | |
| 94 | createGrapView(); |
| 95 | |
| 96 | mContextMenu = new wraps::ContextMenu("ContextMenu.layout"); |
| 97 | mContextMenu->eventMenuAccept = MyGUI::newDelegate(this, &DemoKeeper::notifyMenuCtrlAccept); |
| 98 | |
| 99 | MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &DemoKeeper::notifyFrameStarted); |
| 100 | |
| 101 | loadFromFile(getRootMedia() + "/UnitTests/UnitTest_GraphView/TestAnimation.xml"); |
| 102 | } |
| 103 | |
| 104 | void DemoKeeper::destroyScene() |
| 105 | { |
nothing calls this directly
no test coverage detected