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

Method createSnapshot

source/Gui/TemporalControlWindow.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210TemporalControlWindow::Snapshot TemporalControlWindow::createSnapshot()
211{
212 Snapshot result;
213 result.timestep = _simulationFacade->getCurrentTimestep();
214 result.realTime = _simulationFacade->getRealTime();
215 result.data = _simulationFacade->getSimulationData();
216 result.parameters = _simulationFacade->getSimulationParameters();
217 return result;
218}
219
220
221void TemporalControlWindow::applySnapshot(Snapshot const& snapshot)

Callers

nothing calls this directly

Calls 4

getRealTimeMethod · 0.80
getCurrentTimestepMethod · 0.45
getSimulationDataMethod · 0.45

Tested by

no test coverage detected