Package com.openinventor.inventor.mpeg
Class SoMPEGFrameRenderer
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.mpeg.SoMPEGRenderer
com.openinventor.inventor.mpeg.SoMPEGFrameRenderer
Generates MPEG output, frame by frame.
This class generates MPEG output, frame by frame.
See the parent class SoMPEGRenderer for methods to specify the file and recording parameters.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.mpeg.SoMPEGRenderer
SoMPEGRenderer.ComponentsNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls recordFrame((float)0).voidrecordFrame(float duration) Adds a new frame to the current MPEG output.Methods inherited from class com.openinventor.inventor.mpeg.SoMPEGRenderer
addFrame, closeFile, getBackgroundColor, getComponents, getCompressionRate, getGLRenderAction, getNumFramesPerSecond, getSceneGraph, getShareContext, getSize, isRecording, isViewerIdle, openFile, openFile, pause, record, setBackgroundColor, setBitPerSec, setComponents, setCompressionRate, setGLRenderAction, setNumFramesPerSecond, setSceneGraph, setShareContext, setSize, setViewerIsIdle, stopMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoMPEGFrameRenderer
public SoMPEGFrameRenderer()Constructor.
-
-
Method Details
-
recordFrame
public void recordFrame()Calls recordFrame((float)0). -
recordFrame
public void recordFrame(float duration) Adds a new frame to the current MPEG output. The duration (specified in seconds) is used to determine how many times this frame must be played in the MPEG output depending on the current number of frames per second (as specified by the methodSoMPEGRenderer.setNumFramesPerSecond()).
-