Package com.openinventor.inventor.mpeg
Class SoMPEGFrameRenderer
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.mpeg.SoMPEGRenderer
-
- com.openinventor.inventor.mpeg.SoMPEGFrameRenderer
-
public class SoMPEGFrameRenderer extends SoMPEGRenderer
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:
SoMPEGRenderer
,SoMPEGNavRenderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.mpeg.SoMPEGRenderer
SoMPEGRenderer.Components
-
Nested 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 Constructor Description SoMPEGFrameRenderer()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
recordFrame()
Calls recordFrame((float)0).void
recordFrame(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, stop
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
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()
).
-
-