Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <SceneManager.h>
Public Member Functions | |
void | addNode (Node *node, Node *parent=NULL) |
Adds a node to be managed by scene manager. | |
Node * | createNode (Node *parent=NULL) |
Creates a node to be managed by scene manager. | |
Node * | createNode (const std::string &name, Node *parent=NULL) |
Scene * | createScene (const std::string &sceneFilename) |
Creates a scene to be managed by scene manager. | |
Node * | getNode (const u32 &id) |
Retrieves a pointer to a node by id. | |
u32 | getNumberOfNodes () const |
Retrieves the total number of created nodes. | |
u32 | getNumberOfScenes () const |
Retrieves the total number of created scene. | |
Node * | getRootNode () |
Scene * | getScene (const u32 &id) |
Retrieves a pointer to a scene by id. | |
void | registerDefaultFactories () |
void | removeAllNodes () |
void | removeAllScenes () |
void | removeDefaultFactories () |
void | removeNode (Node *node) |
Removes a node. | |
void | removeNode (const u32 &id) |
Removes a node. | |
void | removeScene (Scene *scene) |
Removes a scene. | |
void | removeScene (const u32 &id) |
Removes a scene. | |
SceneManager () | |
void | start () |
void | stop () |
~SceneManager () | |
Static Public Member Functions | |
static SceneManager * | getInstance () |
Get instance. | |
Protected Member Functions | |
void | initializeImpl () |
void | uninitializeImpl () |
void | updateImpl (f32 elapsedTime) |
Protected Attributes | |
SceneFactory * | mDefaultSceneFactory |
std::map< u32, Node * > | mNodes |
Central list of Nodes - for easy memory management. | |
Node * | mRoot |
Root node. | |
std::map< u32, Scene * > | mScenes |
Central list of Scenes - for easy memory management and lookup. |
scene::SceneManager::SceneManager | ( | ) |
References getInstance(), mDefaultSceneFactory, engine::Object::mObjectType, mRoot, and engine::OT_SCENE_MANAGER.
scene::SceneManager::~SceneManager | ( | ) |
References getInstance(), mDefaultSceneFactory, and mRoot.
Adds a node to be managed by scene manager.
References scene::Node::addChild(), engine::Object::getID(), mNodes, and mRoot.
References scene::Node::addChild(), engine::Object::getID(), mNodes, and mRoot.
Creates a node to be managed by scene manager.
References scene::Node::addChild(), engine::Object::getID(), mNodes, and mRoot.
Scene * scene::SceneManager::createScene | ( | const std::string & | sceneFilename | ) |
Creates a scene to be managed by scene manager.
References engine::Object::getID(), getInstance(), mScenes, and resource::RT_RESOURCE_SCENE.
SceneManager * scene::SceneManager::getInstance | ( | ) | [static] |
Get instance.
Reimplemented from core::Singleton< SceneManager >.
Referenced by createScene(), initializeImpl(), registerDefaultFactories(), physics::PhysicsManager::removeAllBodies(), render::RenderManager::removeAllCameras(), render::RenderManager::removeAllLights(), sound::SoundManager::removeAllListeners(), scene::Scene::removeAllNodes(), render::RenderManager::removeAllRenderables(), sound::SoundManager::removeAllSounds(), removeDefaultFactories(), removeScene(), SceneManager(), uninitializeImpl(), and ~SceneManager().
Retrieves a pointer to a node by id.
References mNodes.
u32 scene::SceneManager::getNumberOfNodes | ( | ) | const |
Retrieves the total number of created nodes.
References mNodes.
u32 scene::SceneManager::getNumberOfScenes | ( | ) | const |
Retrieves the total number of created scene.
References mScenes.
Node * scene::SceneManager::getRootNode | ( | ) |
Retrieves a pointer to a scene by id.
References mScenes.
void scene::SceneManager::initializeImpl | ( | ) | [protected, virtual] |
Reimplemented from engine::Object.
References getInstance().
void scene::SceneManager::registerDefaultFactories | ( | ) |
References getInstance(), resource::ResourceManager::getInstance(), mDefaultSceneFactory, and resource::RT_RESOURCE_SCENE.
Referenced by engine::EngineManager::registerDefaultFactories().
void scene::SceneManager::removeAllNodes | ( | ) |
References mNodes.
Referenced by uninitializeImpl().
void scene::SceneManager::removeAllScenes | ( | ) |
References resource::ResourceManager::getInstance(), and mScenes.
Referenced by uninitializeImpl().
void scene::SceneManager::removeDefaultFactories | ( | ) |
References getInstance(), resource::ResourceManager::getInstance(), and resource::RT_RESOURCE_SCENE.
Referenced by engine::EngineManager::removeDefaultFactories().
void scene::SceneManager::removeNode | ( | Node * | node | ) |
void scene::SceneManager::removeScene | ( | Scene * | scene | ) |
Removes a scene.
References engine::Object::getID().
void scene::SceneManager::removeScene | ( | const u32 & | id | ) |
Removes a scene.
References getInstance(), and mScenes.
void scene::SceneManager::start | ( | ) |
void scene::SceneManager::stop | ( | ) |
void scene::SceneManager::uninitializeImpl | ( | ) | [protected, virtual] |
Reimplemented from engine::Object.
References getInstance(), removeAllNodes(), and removeAllScenes().
void scene::SceneManager::updateImpl | ( | f32 | elapsedTime | ) | [protected, virtual] |
Reimplemented from engine::Object.
References mNodes, mRoot, mScenes, and engine::Object::update().
SceneFactory* scene::SceneManager::mDefaultSceneFactory [protected] |
Referenced by registerDefaultFactories(), SceneManager(), and ~SceneManager().
std::map<u32, Node*> scene::SceneManager::mNodes [protected] |
Central list of Nodes - for easy memory management.
Referenced by addNode(), createNode(), getNode(), getNumberOfNodes(), removeAllNodes(), removeNode(), and updateImpl().
Node* scene::SceneManager::mRoot [protected] |
Root node.
Referenced by addNode(), createNode(), getRootNode(), SceneManager(), updateImpl(), and ~SceneManager().
std::map<u32, Scene*> scene::SceneManager::mScenes [protected] |
Central list of Scenes - for easy memory management and lookup.
Referenced by createScene(), getNumberOfScenes(), getScene(), removeAllScenes(), removeScene(), and updateImpl().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:10 by
Doxygen
(1.7.4)
|