Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sreekanth Arikatla
iMSTK
Commits
30436e4b
Commit
30436e4b
authored
Apr 12, 2017
by
Alexis Girault
Browse files
ENH: Add interface to expose sceneManager module
parent
35dd3fb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Base/SimulationManager/imstkSimulationManager.cpp
View file @
30436e4b
...
...
@@ -40,8 +40,8 @@ SimulationManager::isSceneRegistered(std::string sceneName) const
return
m_sceneManagerMap
.
find
(
sceneName
)
!=
m_sceneManagerMap
.
end
();
}
std
::
shared_ptr
<
Scene
>
SimulationManager
::
getScene
(
std
::
string
sceneName
)
const
std
::
shared_ptr
<
Scene
Manager
>
SimulationManager
::
getScene
Manager
(
std
::
string
sceneName
)
const
{
if
(
!
this
->
isSceneRegistered
(
sceneName
))
{
...
...
@@ -50,7 +50,14 @@ SimulationManager::getScene(std::string sceneName) const
return
nullptr
;
}
return
m_sceneManagerMap
.
at
(
sceneName
)
->
getScene
();
return
m_sceneManagerMap
.
at
(
sceneName
);
}
std
::
shared_ptr
<
Scene
>
SimulationManager
::
getScene
(
std
::
string
sceneName
)
const
{
auto
sceneManager
=
this
->
getSceneManager
(
sceneName
);
return
sceneManager
?
sceneManager
->
getScene
()
:
nullptr
;
}
std
::
shared_ptr
<
Scene
>
...
...
@@ -134,6 +141,7 @@ SimulationManager::getModule(std::string moduleName) const
return
m_modulesMap
.
at
(
moduleName
);
}
void
SimulationManager
::
addModule
(
std
::
shared_ptr
<
Module
>
newModule
)
{
...
...
Base/SimulationManager/imstkSimulationManager.h
View file @
30436e4b
...
...
@@ -73,6 +73,11 @@ public:
///
bool
isSceneRegistered
(
std
::
string
sceneName
)
const
;
///
/// \brief
///
std
::
shared_ptr
<
SceneManager
>
getSceneManager
(
std
::
string
sceneName
)
const
;
///
/// \brief
///
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment