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.ComponentsInventor.ConstructorCommandLUMINANCE, LUMINANCE_TRANSPARENCY, RGB, RGB_TRANSPARENCYVERBOSE_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, setViewerIsIdledispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic 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 SoMPEGRendererpublic SoCamera getCamera()
public void adjustNumFramesPerSecond(boolean flag)
public void stop()
stop in class SoMPEGRendererpublic boolean isAdjustedNumFramesPerSecond()
public void setCamera(SoCamera camera)
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com