public class SoMPEGNavRenderer extends SoMPEGRenderer
After SoMPEGNavRenderer.record()
is called, all camera movements are recorded until SoMPEGNavRenderer.stop()
is called. At that time, frames corresponding to each camera movement are rendered and stored in the MPEG output.
See the parent class SoMPEGRenderer
for methods to specify the file and recording parameters.
See also:
SoMPEGRenderer.Components
Inventor.ConstructorCommand
LUMINANCE, LUMINANCE_TRANSPARENCY, RGB, RGB_TRANSPARENCY
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMPEGNavRenderer(SoNode node)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustNumFramesPerSecond(boolean flag)
Specifies whether the camera movements are adjusted to the number of frames per second.
|
SoCamera |
getCamera()
Returns the camera currently used by the MPEG renderer.
|
boolean |
isAdjustedNumFramesPerSecond()
Returns whether the camera movements are adjusted to the number of frames per second.
|
void |
record()
Starts recording camera movements.
|
void |
setCamera(SoCamera camera)
Specifies the camera to be used by the MPEG renderer.
|
void |
stop()
Stops recording camera movements.
|
addFrame, closeFile, getBackgroundColor, getComponents, getCompressionRate, getGLRenderAction, getNumFramesPerSecond, getSceneGraph, getShareContext, getSize, isRecording, isViewerIdle, openFile, openFile, pause, setBackgroundColor, setBitPerSec, setComponents, setCompressionRate, setGLRenderAction, setNumFramesPerSecond, setSceneGraph, setShareContext, setSize, setViewerIsIdle
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoMPEGNavRenderer(SoNode node)
SoMPEGRenderer.setSceneGraph()
is called with the given argument. The specified scene graph must contain a camera in order to produce correct results.public void record()
stop()
is called.record
in class SoMPEGRenderer
public SoCamera getCamera()
public void adjustNumFramesPerSecond(boolean flag)
public void stop()
stop
in class SoMPEGRenderer
public boolean isAdjustedNumFramesPerSecond()
public void setCamera(SoCamera camera)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com