9 #include "imstkModule.h" 10 #include "imstkMacros.h" 12 #include <unordered_map> 46 std::shared_ptr<Scene>
getScene(std::string name)
const 50 return m_sceneMap.at(name);
87 void addScene(std::shared_ptr<Scene> scene);
106 std::unordered_map<std::string, std::shared_ptr<Scene>> m_sceneMap;
108 std::string m_prevCamName;
std::shared_ptr< Scene > getActiveScene() const
Get the scene that the scene manager is managing.
std::shared_ptr< Scene > m_activeScene
Scene that is being managed.
void updateModule() override
Run the thread.
Mode getMode() const
Get the current mode.
void removeScene(std::string name)
Remove a scene from the manager.
std::shared_ptr< Scene > getScene(std::string name) const
Search for scene by name, returns nullptr if not found.
void setMode(Mode mode)
Switches the mode of the scene manager This alters the active scene.
void addScene(std::shared_ptr< Scene > scene)
Adds scene to the manager.
Scene manager module manages multiple scenes and runs the active one.
bool initModule() override
Initialize the thread.
void setActiveScene(std::string newSceneName)
Sets the currently updating scene.
bool containsScene(std::string name) const
Returns if the SceneManager contains the scene or not.
Base class for imstk module system. A module defines something that is updated, and can be paused/res...