Commit 88e1e15c authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

ENH: Trigger the reset using 'R'

parent 960d9a7c
Pipeline #69700 passed with stage
......@@ -436,6 +436,15 @@ SimulationManager::pauseSimulation()
m_status = SimulationStatus::PAUSED;
}
void
SimulationManager::resetSimulation()
{
LOG(INFO) << "Resetting simulation";
// Reset scene
this->getScene(m_activeSceneName)->reset();
}
void
SimulationManager::endSimulation()
{
......
......@@ -177,6 +177,11 @@ public:
///
/// \brief End the simulation
///
void resetSimulation();
///
/// \brief
///
void endSimulation();
private:
......
......@@ -189,6 +189,10 @@ VTKInteractorStyle::OnChar()
m_fpsActor->SetVisibility(m_displayFps);
this->Interactor->Render();
}
else if (key == 'r' || key == 'R')
{
m_simManager->resetSimulation();
}
}
void
......
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