18 #include <sofa/core/visual/VisualParams.h>
22 if (activeSimulation.IsNull())
24 sofa::simulation::setSimulation(NULL);
25 sofa::core::visual::VisualParams::defaultInstance()->drawTool() = NULL;
29 sofa::simulation::Simulation::SPtr sofaSimulation = activeSimulation->GetSOFASimulation();
31 if (sofaSimulation != sofa::simulation::getSimulation())
33 sofa::simulation::setSimulation(sofaSimulation.get());
34 sofa::core::visual::VisualParams::defaultInstance()->drawTool() = activeSimulation->GetDrawTool();
50 return m_ActiveSimulation;
56 m_ActiveSimulation = activeSimulation;
Simulation::Pointer GetActiveSimulation() const override
void SetActiveSimulation(Simulation::Pointer activeSimulation) override
Scheduler * GetScheduler() override
static void SwitchSimuluationContext(mitk::Simulation::Pointer activeSimulation)