ScreenCap Class Reference

#include <VisScreenCap.hpp>

List of all members.

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 ()


Detailed Description

A class for taking arbitrary sized Screenshots

Constructor & Destructor Documentation

ScreenCap::ScreenCap ( string  filename,
V2i  size = V2i(4000,3000) 
) [inline]

The constructor

Parameters:
filename The name of the file to save to.
size The size of the image file in pixel.


Member Function Documentation

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.

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

Returns:
The progress.


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

Generated on Wed Dec 10 14:41:01 2008 by  doxygen 1.5.7.1