Frz::BMPSystem Class Reference

Bitmap file generation graphics environment. More...

#include <frz_bmp.hpp>

Inheritance diagram for Frz::BMPSystem:
Inheritance graph
[legend]
Collaboration diagram for Frz::BMPSystem:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Frz::BMPSystem::BMPSystem ( Script s,
int  width,
int  height,
int  min,
int  max,
int  step,
bool  gen 
)

Constructs a BMPSystem object.

Parameters:
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.

Member Function Documentation

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.

Parameters:
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.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends
Generated on Thu Jun 10 17:37:47 2010 for freezer-0.1.0 by  doxygen 1.6.3