#include <VisScreenCap.hpp>
Public Member Functions | |
ScreenCap (string filename, V2i size=V2i(4000, 3000)) | |
void | exec (VolRenderer *renderer, V2i &screen_size, double fov, double near_plane, V3f &translation_vector, M44f &rotation_matrix) |
double | getProgress () |
ScreenCap::ScreenCap | ( | string | filename, | |
V2i | size = V2i(4000,3000) | |||
) | [inline] |
The constructor
filename | The name of the file to save to. | |
size | The size of the image file in pixel. |
void ScreenCap::exec | ( | VolRenderer * | renderer, | |
V2i & | screen_size, | |||
double | fov, | |||
double | near_plane, | |||
V3f & | translation_vector, | |||
M44f & | rotation_matrix | |||
) |
Generate a screenshot and save it in the file.
renderer | The initialized volume renderer. | |
screen_size | The size of the available render window. | |
fov | The field of view to use | |
near_plane | The near plane to use | |
translation_vector | The offset from the scene center. | |
rotation_matrix | The object rotation. |
double ScreenCap::getProgress | ( | ) | [inline] |
Returns the render progress.