The AnimatedImageGenerator writes a sequence of images on every view refresh, either from the network of modules generating new content, or mouse interaction with the window.
Name | Type | Description |
view_in | DefaultView | Output from the Viewer. |
Name | Type | Description | UI control |
Prefix | string | Prefix for the filename (text before the sequence number) | TextField |
Extension | string | Filename extension (text after the sequence number) | TextField |
Reset Counter | string | Resets the counter for the sequence number | Button |
The remaining parameters are identical to the parameters given to Write Image. | |||
The AnimatedImageGenerator macro connects to a Viewer, and writes a sequence of images. The images are written whenever the Viewer refreshes. The refresh can be either from the network of modules connected to the viewer generating new content, or due to mouse interaction with the viewer window.
The images are numbered automatically in a sequence incrementing the number by 1 on each update. A prefix and postfix string can be provided to generate meaningful images names. The output images can be used to create an animation using external programs.
The AnimatedImageGenerator macro uses lower-level parts only available in the Developer Edition.
view_in
The View that is provided by the Viewer macro. Whenever the Viewer updates its output this input is modified and written to a file.
Prefix
This string parameter is the beginning of each of the output filenames for the images. This is the part of the filename which comes before the seuqence number.
Extension
This string parameter is the end of each of the output filenames for the images. This contains the file extension for each image.
Reset Counter
This toggle resets the counter used as the sequence number for the filenames.
The remaining parameters are identical to the parameters given to Write Image.
The AnimatedImageGeneratorEg example application reads in the Hydrogen field, creates an isosurface uses AnimatedImageGenerator to create animation images.
iac_proj/gen_anim/ganimmac.v Creates the AnimatedImageGeneratorMacs library containing the high-level user macros AnimatedImageGenerator.
iac_proj/gen_anim/ganimapp.v Creates the AnimatedImageGeneratorApps library containing the example application AnimatedImageGeneratorEg.
This project requires the following components to be installed correctly. Without these components the user level macros will not work correctly.
This reader does not use external C or C++ code.
The high level macros use DV low level objects, and hence these macros require a license for the AVS/Express Developer Edition.
Ian Curington Advanced Visual Systems, Inc.
Tobias Schiebeck Manchester Visualization Centre
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL