osgViewer.ScreenCaptureHandler

class osgViewer.ScreenCaptureHandler
Represents:c++ class
Wraps:osgViewer::ScreenCaptureHandler
Bases:osgGA.GUIEventHandler

Event handler that will capture the screen on key press.

Constructors:

osgViewer.ScreenCaptureHandler()

Constructor w/o specified osgViewer.ScreenCaptureHandler.CaptureOperation and zero frames to capture by default.

osgViewer.ScreenCaptureHandler(osgViewer.ScreenCaptureHandler.CaptureOperation operation)

Constructor w/ specified osgViewer.ScreenCaptureHandler.CaptureOperation and zero frames to capture by default.

Параметры:operation (osgViewer.ScreenCaptureHandler.CaptureOperation) – Operation to do when screen capture happens.
osgViewer.ScreenCaptureHandler(osgViewer.ScreenCaptureHandler.CaptureOperation operation, int numFrames)

Параметры:

Methods:

:setKeyEventTakeScreenShot(int key)

Параметры:key (int) –
:getKeyEventTakeScreenShot()

Тип результата:int
:setKeyEventToggleContinuousCapture(int key)

Параметры:key (int) –
:getKeyEventToggleContinuousCapture()

Тип результата:int
:setCaptureOperation(osgViewer.ScreenCaptureHandler.CaptureOperation operation)

Параметры:operation (osgViewer.ScreenCaptureHandler.CaptureOperation) –
:getCaptureOperation()

Тип результата:osgViewer.ScreenCaptureHandler.CaptureOperation
:captureNextFrame(osgViewer.ViewerBase viewer)

Параметры:viewer (osgViewer.ViewerBase) –
:setFramesToCapture(int numFrames)

Set the number of frames to capture.

Параметры:numFrames (int) – If > 0: capture that number of frames. If < 0: capture all frames, call osgViewer.ScreenCaptureHandler.stopCapture() to stop it.
:getFramesToCapture()

Get the number of frames to capture.

Тип результата:int
:startCapture()

Start capturing any viewer(s) the handler is attached to at the end of the next frame.

:stopCapture()

Stop capturing.