#include <Capture.h>

Public Member Functions | |
| Capture () | |
| const std::string & | getPrefix () const |
| int | getCounter () const |
| void | setPrefix (const std::string v) |
| void | setCounter (int v=-1) |
| std::string | findFilename () |
| bool | saveScreen (const std::string &filename, int compression_level=-1) |
| bool | saveScreen (int compression_level=-1) |
Protected Attributes | |
| std::string | prefix |
| int | counter |
Definition at line 45 of file Capture.h.
| sofa::helper::gl::Capture::Capture | ( | ) |
Definition at line 46 of file Capture.cpp.
| std::string sofa::helper::gl::Capture::findFilename | ( | ) |
Definition at line 71 of file Capture.cpp.
References counter, and prefix.
Referenced by sofa::gui::qt::viewer::qgl::QtGLViewer::draw(), sofa::gui::qt::viewer::SofaViewer::keyPressEvent(), sofa::gui::qt::viewer::qt::QtViewer::paintGL(), saveScreen(), sofa::gui::qt::viewer::SofaViewer::screenshotName(), and sofa::gui::qt::viewer::qtogre::QtOgreViewer::update().
| int sofa::helper::gl::Capture::getCounter | ( | ) | const [inline] |
| const std::string& sofa::helper::gl::Capture::getPrefix | ( | ) | const [inline] |
| bool sofa::helper::gl::Capture::saveScreen | ( | const std::string & | filename, | |
| int | compression_level = -1 | |||
| ) |
Definition at line 51 of file Capture.cpp.
References sofa::helper::io::Image::getData(), sofa::helper::io::Image::getHeight(), sofa::helper::io::Image::getWidth(), sofa::helper::io::Image::init(), and sofa::helper::io::ImageBMP::save().
Referenced by saveScreen(), sofa::gui::qt::viewer::SofaViewer::screenshot(), and sofa::gui::glut::SimpleGUI::screenshot().
| void sofa::helper::gl::Capture::setCounter | ( | int | v = -1 |
) | [inline] |
Definition at line 59 of file Capture.h.
References counter.
Referenced by sofa::gui::qt::viewer::SofaViewer::keyPressEvent(), sofa::gui::glut::SimpleGUI::keyPressEvent(), and sofa::gui::qt::viewer::qtogre::QtOgreViewer::QtOgreViewer().
| void sofa::helper::gl::Capture::setPrefix | ( | const std::string | v | ) | [inline] |
Definition at line 58 of file Capture.h.
References prefix.
Referenced by sofa::gui::qt::viewer::SofaViewer::setPrefix(), sofa::gui::qt::viewer::SofaViewer::setScene(), and sofa::gui::glut::SimpleGUI::setScene().
int sofa::helper::gl::Capture::counter [protected] |
Definition at line 49 of file Capture.h.
Referenced by findFilename(), getCounter(), and setCounter().
std::string sofa::helper::gl::Capture::prefix [protected] |
Definition at line 48 of file Capture.h.
Referenced by findFilename(), getPrefix(), and setPrefix().
1.5.7.1