SPH
|
Object managing periodic rendering of images and saving them to given paths. More...
#include <Movie.h>
Public Member Functions | |
Movie (const GuiSettings &settings, AutoPtr< IRenderer > &&renderer, Array< AutoPtr< IColorizer >> &&colorizers, RenderParams &¶ms) | |
~Movie () | |
void | onTimeStep (const Storage &storage, Statistics &stats) |
Called every time step, saves the images every IMAGES_TIMESTEP. More... | |
void | save (const Storage &storage, Statistics &stats) |
Manually saves the images. More... | |
void | setCamera (AutoPtr< ICamera > &&camera) |
void | finalize () |
Creates the animations from generated images. More... | |
void | setEnabled (const bool enable=true) |
![]() | |
Noncopyable ()=default | |
Noncopyable (const Noncopyable &)=delete | |
Noncopyable (Noncopyable &&)=default | |
Noncopyable & | operator= (const Noncopyable &)=delete |
Noncopyable & | operator= (Noncopyable &&)=default |
Object managing periodic rendering of images and saving them to given paths.
Rendered images are independend from the images in interactive window, i.e. they have dedicated renderer, camera and list of colorizers to render.
Movie::Movie | ( | const GuiSettings & | settings, |
AutoPtr< IRenderer > && | renderer, | ||
Array< AutoPtr< IColorizer >> && | colorizers, | ||
RenderParams && | params | ||
) |
|
default |
void Movie::finalize | ( | ) |
void Movie::onTimeStep | ( | const Storage & | storage, |
Statistics & | stats | ||
) |
Called every time step, saves the images every IMAGES_TIMESTEP.
If the time since the last frame is less than the required framerate, function does nothing. If the run starts at negative time, no images are dumped till the time passes zero, consistently with Output implementations.
Can be called from any thread; the function is blocking, waits until all images are saved.
void Movie::save | ( | const Storage & | storage, |
Statistics & | stats | ||
) |