KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
GLDraw::GLScreenshotProgram< BaseGUI > Class Template Reference

A plugin class that "automatically" saves a movie to disk in the form of PPM screenshots. More...

#include <GLScreenshotProgram.h>

Inheritance diagram for GLDraw::GLScreenshotProgram< BaseGUI >:

Public Member Functions

void SaveScreenshot ()
 
void StartMovie ()
 
void StopMovie ()
 
void ToggleMovie ()
 
void MovieUpdate ()
 
void MovieUpdate (double t)
 

Public Attributes

std::string screenshotFile
 
bool saveMovie
 
double lastScreenshotTime
 
double frameTime
 
Timer timer
 
int verbose
 

Detailed Description

template<class BaseGUI>
class GLDraw::GLScreenshotProgram< BaseGUI >

A plugin class that "automatically" saves a movie to disk in the form of PPM screenshots.

To save the screenshots, set #saveMovie to true and call MovieUpdate() during your idle loop.

By default, the frame rate is 30fps and the screenshot file format is image[xxxx].ppm where [xxxx] is the frame number. To change the fps, set #frameTime to 1.0/fps. To use another file format, set #screenshotFile to the desired name of the initial frame. The program will automatically increment the digits in #screenshotFile, keeping the same number of leading zeroes if possible.


The documentation for this class was generated from the following file: