SOFA API  d36dcf8a
Open source framework for multi-physics simuation
sofa::gl::Capture Class Reference

#include <Capture.h>

Protected Attributes

std::string prefix
 
int counter
 

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)
 

Attribute details

◆ counter

int sofa::gl::Capture::counter
protected

◆ prefix

std::string sofa::gl::Capture::prefix
protected

Constructor details

◆ Capture()

sofa::gl::Capture::Capture ( )

Function details

◆ findFilename()

std::string sofa::gl::Capture::findFilename ( )

◆ getCounter()

int sofa::gl::Capture::getCounter ( ) const
inline

◆ getPrefix()

const std::string& sofa::gl::Capture::getPrefix ( ) const
inline

◆ saveScreen() [1/2]

bool sofa::gl::Capture::saveScreen ( const std::string &  filename,
int  compression_level = -1 
)

◆ saveScreen() [2/2]

bool sofa::gl::Capture::saveScreen ( int  compression_level = -1)

◆ setCounter()

void sofa::gl::Capture::setCounter ( int  v = -1)
inline

◆ setPrefix()

void sofa::gl::Capture::setPrefix ( const std::string  v)
inline