Videoquickcloseandopen
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Video/Audio/PDF
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-11, Last change: 2025-09-15
Simple concept to create videos from figures
Description
This is a simplified concept for the more complex "imageVideo..." functions
Videoquickstart
Videoquickwritetitle
Videoquickwritegcf
Videoquickcloseandopen
See Also: drawnowvid
, Videoquickwritetextpage
, Videoquickstart
, Videoquickwritegcf
Example Illustration
Syntax
Videoquickcloseandopen(vw)
Input Parameter
Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This function, Videoquickcloseandopen, is part of the SG-Library and is used to manage video files created from figures. It is a simplified version of more complex video functions.
Input Parameters
- vw: This is the video writer object that is used to manage the video file.
Algorithm Steps
- The function begins by calling
drawnowvid, which likely updates the current figure or video frame.
- The function retrieves the video writer object using
getfuncparams with the first argument from varargin or the global Videoquick_vw.
- If the video writer object
vw is not empty, it constructs the full path of the video file by concatenating vw.Path, a file separator, and vw.Filename.
- The video writer is then closed using the
close function.
- If the video writer object is empty, the function sets
nn to an empty array.
- If there are no output arguments (
nargout==0), the function attempts to open the video file by calling openbydoubleclick with the constructed file path.
Global Variables
- Videoquick_vw: A global variable that may hold the default video writer object if not provided in the input arguments.
Assumptions
- The function assumes that
drawnowvid and openbydoubleclick are defined elsewhere in the codebase.
- The function assumes that
getfuncparams is a utility function to retrieve function parameters.
- The function assumes that the video writer object
vw has properties Path and Filename.
Algorithm explaination created using ChatGPT on 2025-08-19 00:20. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21