MCPcopy Create free account
hub / github.com/chrxh/alien / processStepForwardButton

Method processStepForwardButton

source/Gui/TemporalControlWindow.cpp:171–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void TemporalControlWindow::processStepForwardButton()
172{
173 ImGui::BeginDisabled(_simulationFacade->isSimulationRunning());
174 auto result = AlienImGui::ToolbarButton(AlienImGui::ToolbarButtonParameters().text(ICON_FA_CHEVRON_RIGHT));
175 AlienImGui::Tooltip("Process single time step");
176 if (result) {
177 _history.emplace_back(createSnapshot());
178 _simulationFacade->calcTimesteps(1);
179 }
180 ImGui::EndDisabled();
181}
182
183void TemporalControlWindow::processCreateFlashbackButton()
184{

Callers

nothing calls this directly

Calls 2

isSimulationRunningMethod · 0.45
calcTimestepsMethod · 0.45

Tested by

no test coverage detected