MeVisLab Resolution Independence API
|
FrameGrabber class grabs GL frames for movie generation. More...
#include <FrameGrabber.h>
Public Member Functions | |
FrameGrabber () | |
~FrameGrabber () | |
void | cleanup (bool deleteFiles) |
cleanup memory, if deleteFiles is set, it also deletes all temporary files | |
void | createAviWithBink (const char *filename, float framerate) |
create AVI out of stored frames (requieres binkconv.exe to be in the PATH) | |
void | startRecording () |
start recording at 0 | |
void | stopRecording () |
stop recording | |
bool | isRecording () |
flag if currently a record session is running | |
void | grabFrame (void *renderarea, int mode=GL_BACK) |
grab a single gl frame, (mode is GL_FRONT or GL_BACK, front contains windows and mouse also) | |
void | writeToFiles () |
write stored images to temp disk | |
void | setMaximumBytes (long bytes) |
set the maximum number of bytes stored in memory for movie frames | |
long | getMaximumBytes () |
get the maximum number of bytes stored in memory for movie frames | |
int | getDiskFrames () |
get current disk frame number | |
int | getMemFrames () |
get current mem frame number | |
void | setStatusField (SoSFString *field, SoNode *owner) |
set status field | |
void | updateStatus (const char *string) |
update status | |
void | writeCurrentFrameToDisk (const char *name, void *renderarea, int mode) |
grabs the current frame and writes to disk | |
MLuint8 * | grabGLFrame (void *renderarea, int &w, int &h, int mode=GL_BACK) |
returns new buffer with content of gl framebuffer | |
std::string | getFileNameTemplate () |
FrameGrabber class grabs GL frames for movie generation.
Definition at line 41 of file FrameGrabber.h.
FrameGrabber::FrameGrabber | ( | ) |
FrameGrabber::~FrameGrabber | ( | ) |
void FrameGrabber::cleanup | ( | bool | deleteFiles | ) |
cleanup memory, if deleteFiles is set, it also deletes all temporary files
void FrameGrabber::createAviWithBink | ( | const char * | filename, |
float | framerate ) |
create AVI out of stored frames (requieres binkconv.exe to be in the PATH)
|
inline |
get current disk frame number
Definition at line 76 of file FrameGrabber.h.
std::string FrameGrabber::getFileNameTemplate | ( | ) |
|
inline |
get the maximum number of bytes stored in memory for movie frames
Definition at line 73 of file FrameGrabber.h.
|
inline |
get current mem frame number
Definition at line 79 of file FrameGrabber.h.
void FrameGrabber::grabFrame | ( | void * | renderarea, |
int | mode = GL_BACK ) |
grab a single gl frame, (mode is GL_FRONT or GL_BACK, front contains windows and mouse also)
MLuint8 * FrameGrabber::grabGLFrame | ( | void * | renderarea, |
int & | w, | ||
int & | h, | ||
int | mode = GL_BACK ) |
returns new buffer with content of gl framebuffer
|
inline |
flag if currently a record session is running
Definition at line 61 of file FrameGrabber.h.
|
inline |
set the maximum number of bytes stored in memory for movie frames
Definition at line 70 of file FrameGrabber.h.
|
inline |
set status field
Definition at line 82 of file FrameGrabber.h.
void FrameGrabber::startRecording | ( | ) |
start recording at 0
|
inline |
stop recording
Definition at line 58 of file FrameGrabber.h.
void FrameGrabber::updateStatus | ( | const char * | string | ) |
update status
void FrameGrabber::writeCurrentFrameToDisk | ( | const char * | name, |
void * | renderarea, | ||
int | mode ) |
grabs the current frame and writes to disk
void FrameGrabber::writeToFiles | ( | ) |
write stored images to temp disk