version 3.3

VRS::SaveFrameBufferGL Class Reference

This class can save the contents of any available OpenGL buffer to disk. More...

#include <vrs/io/saveframebuffergl.h>

Inheritance diagram for VRS::SaveFrameBufferGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 SaveFrameBufferGL (const std::string &fileNameStub, GLCanvas::BufferSelection readBuffer=GLCanvas::CURRENT_BUFFER, unsigned int interval=1, bool whenPushed=true, const Area &area=Area())
std::string fileName () const
bool whenPushed () const
bool needSave () const
GLCanvas::BufferSelection readBuffer () const
const Areaarea () const
SO< ImagegetImage ()
 VRS_TYPEINFO (SaveFrameBufferGL, MonoAttribute)
 VRS_SERIALIZABLE (SaveFrameBufferGL)

Protected Member Functions

 SaveFrameBufferGL ()

Friends

class SaveFrameBufferPainterGL


Detailed Description

This class can save the contents of any available OpenGL buffer to disk.

Whenever an instance of this class is dicovered during scene graph traversal, the selected buffer can be copied into a bmp-file. The parameter "interval" determines the frequency of this copy-operation, which happens every "interval" discoveries, either when pushing or popping the attribute.


Constructor & Destructor Documentation

VRS::SaveFrameBufferGL::SaveFrameBufferGL ( const std::string &  fileNameStub,
GLCanvas::BufferSelection  readBuffer = GLCanvas::CURRENT_BUFFER,
unsigned int  interval = 1,
bool  whenPushed = true,
const Area area = Area() 
)

VRS::SaveFrameBufferGL::SaveFrameBufferGL (  )  [protected]


Member Function Documentation

std::string VRS::SaveFrameBufferGL::fileName (  )  const

bool VRS::SaveFrameBufferGL::whenPushed (  )  const

bool VRS::SaveFrameBufferGL::needSave (  )  const

GLCanvas::BufferSelection VRS::SaveFrameBufferGL::readBuffer (  )  const

const Area& VRS::SaveFrameBufferGL::area (  )  const

SO<Image> VRS::SaveFrameBufferGL::getImage (  ) 

VRS::SaveFrameBufferGL::VRS_TYPEINFO ( SaveFrameBufferGL  ,
MonoAttribute   
)

VRS::SaveFrameBufferGL::VRS_SERIALIZABLE ( SaveFrameBufferGL   ) 


Friends And Related Function Documentation

friend class SaveFrameBufferPainterGL [friend]


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

Generated on Tue May 22 06:00:22 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact