Click or drag to resize
SoMPEGNavRenderer Class

Generates MPEG output that tracks camera motion.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.MPEGSoMPEGRenderer
      OIV.Inventor.MPEGSoMPEGNavRenderer

Namespace: OIV.Inventor.MPEG
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public class SoMPEGNavRenderer : SoMPEGRenderer

The SoMPEGNavRenderer type exposes the following members.

Constructors
  NameDescription
Public methodSoMPEGNavRenderer

Constructor.

Top
Methods
  NameDescription
Public methodAddFrame

Low level method to add a new frame to the MPEG output from a buffer of unsigned characters.

(Inherited from SoMPEGRenderer.)
Public methodAdjustNumFramesPerSecond

Specifies whether the camera movements are adjusted to the number of frames per second.

Public methodCloseFile

Closes the MPEG file previously opened with the OIV.Inventor.MPEG.SoMPEGRenderer.OpenFile(System.String, System.UInt32) method.

(Inherited from SoMPEGRenderer.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetBackgroundColor

Gets the background color for rendering each frame.

(Inherited from SoMPEGRenderer.)
Public methodGetCamera

Returns the camera currently used by the MPEG renderer.

Public methodGetComponents

Returns the number of color components of the frames recorded.

(Inherited from SoMPEGRenderer.)
Public methodGetCompressionRate

Returns the compression rate.

(Inherited from SoMPEGRenderer.)
Public methodGetGLRenderAction

Gets the GL Render action used to generate each frame.

(Inherited from SoMPEGRenderer.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetNumFramesPerSecond

Gets the number of frames per second to be encoded in the MPEG output.

(Inherited from SoMPEGRenderer.)
Public methodGetSceneGraph

Gets the scene graph used for generating frames in the MPEG output.

(Inherited from SoMPEGRenderer.)
Public methodGetShareContext

Gets the OpenGL context shared by this object.

(Inherited from SoMPEGRenderer.)
Public methodGetSize

Gets the frame pixel size.

(Inherited from SoMPEGRenderer.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsAdjustedNumFramesPerSecond

Returns whether the camera movements are adjusted to the number of frames per second.

Public methodIsRecording

Returns true if this renderer is recording.

(Inherited from SoMPEGRenderer.)
Public methodIsViewerIdle
(Inherited from SoMPEGRenderer.)
Public methodOpenFile(String)
Calls OpenFile(filename, System.Convert.ToUInt32(10000)).
(Inherited from SoMPEGRenderer.)
Public methodOpenFile(String, UInt32)

Specifies the MPEG output file name.

(Inherited from SoMPEGRenderer.)
Public methodPause

Pauses the recording.

(Inherited from SoMPEGRenderer.)
Public methodRecord

Starts the recording.

(Inherited from SoMPEGRenderer.)
Public methodSetBackgroundColor

Sets the background color for rendering each frame.

(Inherited from SoMPEGRenderer.)
Public methodSetBitPerSec

This method allows the user to specify a fixed bit rate.

(Inherited from SoMPEGRenderer.)
Public methodSetCamera

Specifies the camera to be used by the MPEG renderer.

Public methodSetComponents

Set the number of color components of the frames recorded.

(Inherited from SoMPEGRenderer.)
Public methodSetCompressionRate

Compression rate of the MPEG output.

(Inherited from SoMPEGRenderer.)
Public methodSetGLRenderAction

Sets the GL Render action used to generate each frame.

(Inherited from SoMPEGRenderer.)
Public methodSetNumFramesPerSecond

Sets the number of frames per second encoded in the MPEG output.

(Inherited from SoMPEGRenderer.)
Public methodSetSceneGraph

Sets the scene graph used for generating frames in the MPEG output.

(Inherited from SoMPEGRenderer.)
Public methodSetShareContext

Sets the OpenGL context to be shared by the OIV.Inventor.MPEG.SoMPEGRenderer.

(Inherited from SoMPEGRenderer.)
Public methodSetSize

Sets the frame pixel size.

(Inherited from SoMPEGRenderer.)
Public methodSetViewerIsIdle

Tells the recorder that the viewer is idle.

(Inherited from SoMPEGRenderer.)
Public methodStop

Stops the recording and closes the opened file.

(Inherited from SoMPEGRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This class generates MPEG output that tracks (i.e. follows) camera motion specifically changes in the position, orientation, nearDistance, and farDistance fields. These are the fields that can be modified by mouse movements within a viewer.

After () is called, all camera movements are recorded until () is called. At that time, frames corresponding to each camera movement are rendered and stored in the MPEG output.

See the parent class OIV.Inventor.MPEG.SoMPEGRenderer for methods to specify the file and recording parameters.

See Also