Bitmap file generation graphics environment. More...
#include <frz_bmp.hpp>


Public Member Functions | |
| BMPSystem (Script &s, int width, int height, int min, int max, int step, bool gen) | |
| Constructs a BMPSystem object. | |
| virtual int | operator() () |
| Executes the animation. | |
Static Public Member Functions | |
| static int | parseCmd (int argc, char **argv, int &width, int &height, int &min, int &max, int &step, bool &gen) |
| Parses the command line and populate initialization data. | |
Bitmap file generation graphics environment.
This is a graphics environment which generates one frame or a set of frames in a time interval, and eventually outputs them into one or several bitmap files.
The bitmap files are in 24-bit BMP format, and are named pic_xxxx.bmp where xxxx is the time value corresponding to the frame.
| Frz::BMPSystem::BMPSystem | ( | Script & | s, | |
| int | width, | |||
| int | height, | |||
| int | min, | |||
| int | max, | |||
| int | step, | |||
| bool | gen | |||
| ) |
Constructs a BMPSystem object.
| s | The animation script object. | |
| width | Picture width in pixels. | |
| height | Picture height in pixels. | |
| min | Minimum time value. | |
| max | Maximum time value. | |
| step | Time step between consecutive pictures. | |
| gen | If true, generate bitmap files. |
| static int Frz::BMPSystem::parseCmd | ( | int | argc, | |
| char ** | argv, | |||
| int & | width, | |||
| int & | height, | |||
| int & | min, | |||
| int & | max, | |||
| int & | step, | |||
| bool & | gen | |||
| ) | [static] |
Parses the command line and populate initialization data.
The command line is parsed for specific values of the constructor arguments. If some values are not provided, default values are set. All arguments passed by reference are modified.
| argc | First argument of the main function. | |
| argv | Second argument of the main function. | |
| width | Picture width in pixels. | |
| height | Picture height in pixels. | |
| min | Minimum time value. | |
| max | Maximum time value. | |
| step | Time step between consecutive pictures. | |
| gen | If true, generate bitmap files. |
1.6.3