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.Parameters: operation ( osgViewer.ScreenCaptureHandler.CaptureOperation
) – Operation to do when screen capture happens.
-
osgViewer.
ScreenCaptureHandler
(osgViewer.ScreenCaptureHandler.CaptureOperation operation, int numFrames) -
Parameters: - operation (
osgViewer.ScreenCaptureHandler.CaptureOperation
) – Operation to do when screen capture happens. - numFrames (
int
) –if > 0
: capture that number of frames. If< 0
: capture all frames, callosgViewer.ScreenCaptureHandler.stopCapture()
to stop it.
- operation (
Methods:
-
:
setKeyEventTakeScreenShot
(int key)¶ -
Parameters: key ( int
) –
-
:
getKeyEventTakeScreenShot
()¶ -
Return type: int
-
:
setKeyEventToggleContinuousCapture
(int key)¶ -
Parameters: key ( int
) –
-
:
getKeyEventToggleContinuousCapture
()¶ -
Return type: int
-
:
setCaptureOperation
(osgViewer.ScreenCaptureHandler.CaptureOperation operation)¶ -
Parameters: operation ( osgViewer.ScreenCaptureHandler.CaptureOperation
) –
-
:
getCaptureOperation
()¶ -
Return type: osgViewer.ScreenCaptureHandler.CaptureOperation
-
:
captureNextFrame
(osgViewer.ViewerBase viewer)¶ -
Parameters: viewer ( osgViewer.ViewerBase
) –
-
:
setFramesToCapture
(int numFrames)¶ Set the number of frames to capture.
Parameters: numFrames ( int
) –If > 0
: capture that number of frames.If < 0
: capture all frames, callosgViewer.ScreenCaptureHandler.stopCapture()
to stop it.
-
:
getFramesToCapture
()¶ Get the number of frames to capture.
Return type: int
-
:
startCapture
()¶ Start capturing any viewer(s) the handler is attached to at the end of the next frame.
-
:
stopCapture
()¶ Stop capturing.
-