DummySceneFileWriter¶
Qualified name: manim.utils.testing.\_test\_class\_makers.DummySceneFileWriter
- class DummySceneFileWriter(renderer, scene_name, **kwargs)[source]¶
Bases:
SceneFileWriter
Delegate of SceneFileWriter used to test the frames.
Methods
Adds a new partial movie file path to scene.partial_movie_files and current section from a hash.
Used internally by manim to stream the animation to FFMPEG for displaying or writing to a file.
Will clean the cache by removing the oldest partial_movie_files.
Used internally by Manim to combine the separate partial movie files that make up a Scene into a single video file for that Scene.
Concatenate partial movie files for each section.
Internally used by Manim to stop streaming to FFMPEG gracefully.
Initialise output directories.
Used internally by Manim to write a frame to the FFMPEG input buffer.
Attributes
force_output_as_scene_name
- add_partial_movie_file(hash_animation)[source]¶
Adds a new partial movie file path to scene.partial_movie_files and current section from a hash. This method will compute the path from the hash. In addition to that it adds the new animation to the current section.
- Parameters:
hash_animation – Hash of the animation.
- begin_animation(allow_write=True)[source]¶
Used internally by manim to stream the animation to FFMPEG for displaying or writing to a file.
- Parameters:
allow_write – Whether or not to write to a video file.
- combine_to_movie()[source]¶
Used internally by Manim to combine the separate partial movie files that make up a Scene into a single video file for that Scene.
- end_animation(allow_write)[source]¶
Internally used by Manim to stop streaming to FFMPEG gracefully.
- Parameters:
allow_write – Whether or not to write to a video file.