Classes | Public Member Functions | Protected Member Functions | Protected Attributes

osgViewer::ScreenCaptureHandler Class Reference

Inheritance diagram for osgViewer::ScreenCaptureHandler:
osgGA::GUIEventHandler osg::NodeCallback osg::Drawable::EventCallback osg::Object osg::Object osg::Referenced osg::Referenced

List of all members.

Classes

class  CaptureOperation
class  WriteToFile

Public Member Functions

 ScreenCaptureHandler (CaptureOperation *defaultOperation=0)
void setKeyEventTakeScreenShot (int key)
int getKeyEventTakeScreenShot () const
void setCaptureOperation (CaptureOperation *operation)
CaptureOperationgetCaptureOperation () const
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
virtual void captureNextFrame (osgViewer::ViewerBase &viewer)
virtual void getUsage (osg::ApplicationUsage &usage) const

Protected Member Functions

void addCallbackToViewer (osgViewer::ViewerBase &viewer)

Protected Attributes

int _keyEventTakeScreenShot
osg::ref_ptr< CaptureOperation_operation
osg::ref_ptr
< osg::Camera::DrawCallback
_callback

Detailed Description

Event handler that will capture the screen on key press.


Constructor & Destructor Documentation

osgViewer::ScreenCaptureHandler::ScreenCaptureHandler ( CaptureOperation defaultOperation = 0 )

Member Function Documentation

void osgViewer::ScreenCaptureHandler::addCallbackToViewer ( osgViewer::ViewerBase viewer ) [protected]
virtual void osgViewer::ScreenCaptureHandler::captureNextFrame ( osgViewer::ViewerBase viewer ) [virtual]

Capture the given viewer's views on the next frame.

CaptureOperation* osgViewer::ScreenCaptureHandler::getCaptureOperation (  ) const
int osgViewer::ScreenCaptureHandler::getKeyEventTakeScreenShot (  ) const [inline]
virtual void osgViewer::ScreenCaptureHandler::getUsage ( osg::ApplicationUsage usage ) const [virtual]

Get the keyboard and mouse usage of this manipulator.

Reimplemented from osgGA::GUIEventHandler.

virtual bool osgViewer::ScreenCaptureHandler::handle ( const osgGA::GUIEventAdapter ,
osgGA::GUIActionAdapter  
) [virtual]

Deprecated, Handle events, return true if handled, false otherwise.

Reimplemented from osgGA::GUIEventHandler.

void osgViewer::ScreenCaptureHandler::setCaptureOperation ( CaptureOperation operation )
void osgViewer::ScreenCaptureHandler::setKeyEventTakeScreenShot ( int  key ) [inline]

Member Data Documentation


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