Commit fa4a80bb authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

REFAC: Print correct info. in no-rendering mode

parent e6f05b12
Pipeline #134216 passed with stage
...@@ -31,7 +31,7 @@ using namespace imstk; ...@@ -31,7 +31,7 @@ using namespace imstk;
int main() int main()
{ {
// SDK and Scene // SDK and Scene
auto sdk = std::make_shared<SimulationManager>(); auto sdk = std::make_shared<SimulationManager>(1);
auto sceneTest = sdk->createNewScene("HelloWorld"); auto sceneTest = sdk->createNewScene("HelloWorld");
// Add Plane // Add Plane
......
...@@ -467,7 +467,7 @@ SimulationManager::startViewer(const Renderer::Mode renderMode /*= Renderer::Mod ...@@ -467,7 +467,7 @@ SimulationManager::startViewer(const Renderer::Mode renderMode /*= Renderer::Mod
} }
void void
SimulationManager::printUserControlsInfo(bool isRendering) SimulationManager::printUserControlsInfo(const bool isRendering) const
{ {
if (isRendering) if (isRendering)
{ {
...@@ -484,13 +484,13 @@ SimulationManager::printUserControlsInfo(bool isRendering) ...@@ -484,13 +484,13 @@ SimulationManager::printUserControlsInfo(bool isRendering)
else else
{ {
LOG(INFO) << LOG(INFO) <<
"\n------------------------\n" << "\n------------------------------------------------\n" <<
" User controls\n" << " No-rendering mode user controls\n" <<
"------------------------\n" << "------------------------------------------------\n" <<
"<space> - pause or unpause simulation\n" << "<space> + <return> - pause or unpause simulation\n" <<
" R/r - reset simulation\n" << " R/r + <return> - reset simulation\n" <<
" E/e - end simulatino\n" << " E/e + <return> - end simulation\n" <<
"------------------------\n\n"; "------------------------------------------------\n\n";
} }
} }
......
...@@ -190,7 +190,7 @@ private: ...@@ -190,7 +190,7 @@ private:
/// ///
/// \brief Print user keyboard controls /// \brief Print user keyboard controls
/// ///
void printUserControlsInfo(bool isRendering = true); void printUserControlsInfo(const bool isRendering = true) const;
void startModuleInNewThread(std::shared_ptr<Module> module); void startModuleInNewThread(std::shared_ptr<Module> module);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment