Commit 8789f94c authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

REFAC: Remove the launchSimulation from public API

launchSimulation and startSimulation have similar meaninn to be included in public API.
Moved the launch simulation to be a private member.
parent 32a354e7
Pipeline #95451 passed with stage
...@@ -150,7 +150,7 @@ VTKInteractorStyle::OnChar() ...@@ -150,7 +150,7 @@ VTKInteractorStyle::OnChar()
if (status == SimulationStatus::INACTIVE) if (status == SimulationStatus::INACTIVE)
{ {
m_fpsActor->SetVisibility(m_displayFps); m_fpsActor->SetVisibility(m_displayFps);
m_simManager->launchSimulation(); m_simManager->startSimulation(false);
} }
} }
else if (status != SimulationStatus::INACTIVE && else if (status != SimulationStatus::INACTIVE &&
......
...@@ -155,13 +155,6 @@ public: ...@@ -155,13 +155,6 @@ public:
/// ///
void printUserControlsInfo(); void printUserControlsInfo();
///
/// \brief Launch simulation for the first time.
/// 1. Initialize the active scene if not initialized already.
/// 2. Launches separate threads for each module.
///
void launchSimulation();
/// ///
/// \brief Start the simulation by initializing the active scene /// \brief Start the simulation by initializing the active scene
/// ///
...@@ -190,6 +183,13 @@ public: ...@@ -190,6 +183,13 @@ public:
private: private:
///
/// \brief Launch simulation for the first time.
/// 1. Initialize the active scene if not initialized already.
/// 2. Launches separate threads for each module.
///
void launchSimulation();
void startModuleInNewThread(std::shared_ptr<Module> module); void startModuleInNewThread(std::shared_ptr<Module> module);
SimulationStatus m_status = SimulationStatus::INACTIVE; SimulationStatus m_status = SimulationStatus::INACTIVE;
......
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