Click or drag to resize
SoOffscreenRenderer Methods

The SoOffscreenRenderer type exposes the following members.

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

Returns the background color for rendering.

Public methodGetBackgroundColorRGBA

Returns the RGBA background color for rendering.

Public methodGetBuffer
Calls GetBuffer(OIV.Inventor.SoOffscreenRenderer.BufferTypes( .SoOffscreenRenderer.RGB_BUFFER )).
Public methodGetBuffer(SoOffscreenRendererBufferTypes)

Returns a buffer containing the rendered image.

Public methodGetBufferSize
Calls GetBufferSize(OIV.Inventor.SoOffscreenRenderer.BufferTypes( .SoOffscreenRenderer.RGB_BUFFER )).
Public methodGetBufferSize(SoOffscreenRendererBufferTypes)

Returns the buffer size in bytes.

Public methodGetColorDepth

Gets the color depth to be used for offscreen rendering.

Public methodGetComponents

Returns the components to be rendered.

Public methodGetDC

<font color="#0000FF">[Windows only] This method has no effect on UNIX systems.

Public methodGetFullSceneAntialiasing

Returns the full-scene antialiasing preference and number of samples.

Public methodGetGLRenderAction

Gets the render action to use for rendering.

Public methodGetGraphicConfigTemplate

Gets the current graphics configuration template.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetLongBufferSize Obsolete.

Returns the buffer size in bytes.

Public methodStatic memberGetMaximumResolution

Gets the maximum supported resolution of the viewport.

Public methodGetMaxSubimage

Synonym for getMaxTileSize.

Public methodGetMaxTileSize

Gets the maximum subimage (tile) size for rendering.

Public methodGetNumEdgePixels

Gets the number of pixels on the edge of each subimage that are not written on the big image (overlapped pixels).

Public methodGetPBuffer

Get the SoPBuffer used for rendering.

Public methodGetPbufferEnable

Returns true if a Pbuffer may be used for rendering.

Public methodStatic memberGetScreenPixelsPerInch

Returns the number of pixels per inch (in the horizontal direction) of the current X device screen.

Public methodGetShareContext

Gets the OpenGL context shared by the SoOffscreenRenderer.

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

Returns the viewport region used for rendering.

Public methodIsFullSceneAntialiasing

Returns true if FSAA is currently enabled.

Public methodRender(SoNode)

Renders the given scene, specified as a node, into an off-screen buffer.

Public methodRender(SoPath)

Renders the given scene, specified as a path, into an off-screen buffer.

Public methodSetBackgroundColor

Sets the RGB background color for rendering.

Public methodSetBackgroundColorRGBA

Sets the RGBA background color for rendering.

Public methodSetColorDepth

Sets the color depth to be used for offscreen rendering.

Public methodSetComponents

Sets the components to be rendered.

Public methodSetFullSceneAntialiasing(Boolean)
Calls SetFullSceneAntialiasing(enable, -1.0, SoFullSceneAntialiasing.ALL).
Public methodSetFullSceneAntialiasing(SoGraphicConfigTemplatePreferences)
Calls SetFullSceneAntialiasing(pref, System.Int32(0), INT_MAX).
Public methodSetFullSceneAntialiasing(Boolean, Single)
Calls SetFullSceneAntialiasing(enable, quality, SoFullSceneAntialiasing.ALL).
Public methodSetFullSceneAntialiasing(SoGraphicConfigTemplatePreferences, Int32)
Calls SetFullSceneAntialiasing(pref, minFsaaBits, INT_MAX).
Public methodSetFullSceneAntialiasing(Boolean, Single, Int32)

Sets the full-scene antialiasing preferences.

Public methodSetFullSceneAntialiasing(SoGraphicConfigTemplatePreferences, Int32, Int32)

Sets the full-scene antialiasing preferences.

Public methodSetGLRenderAction

Sets the render action to use for rendering.

Public methodSetGraphicConfigTemplate

Sets a new graphics configuration template.

Public methodSetMaxSubimage

Synonym for setMaxTileSize.

Public methodSetMaxTileSize

Sets the maximum subimage (tile) size for rendering.

Public methodSetNumEdgePixels

Sets the number of pixels on the edge of each subimage that are not written on the big image (overlapped pixels).

Public methodSetPbufferEnable

Specifies if a Pbuffer may be used for rendering.

Public methodSetRegion

Sets a subregion of the viewport to be rendered.

Public methodSetRegion_i32

Sets a subregion of the viewport to be rendered.

Public methodSetShareContext

Sets the OpenGL context to be shared by the SoOffscreenRenderer.

Public methodSetTileObserver

Specifies a tile observer object which will be called after each tile is rendered.

Public methodSetupPixmap

Do all the setup for rendering and make the offscreen context current (useful if you want to make your own OpenGL calls)

Public methodSetViewportRegion

Sets the viewport region used for rendering.

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

<font color="#0000FF">[Windows only] This method has no effect on UNIX systems.

Public methodWriteToJPEG(String)
Calls WriteToJPEG(filename, 1.0).
Public methodWriteToJPEG(String, Single)

Writes the buffer as a JPEG file to the given filename.

Public methodWriteToJPEGBuffer
Writes the JPEG compression stream to a buffer.
Public methodWriteToPNG

Writes the buffer as a PNG file to the given filename.

Public methodWriteToPostScript(String)

Writes the buffer as encapsulated PostScript to the given filename.

Public methodWriteToPostScript(String, SbVec2f)

Writes the buffer as encapsulated PostScript to the given filename.

Public methodWriteToRaster

Writes the buffer using the image writer class passed as the second parameter.

Public methodWriteToRGB

Writes the buffer as an .rgb file to the given filename.

Public methodWriteToTIFF(String)
Calls WriteToTIFF(filename, OIV.Inventor.SoOffscreenRenderer.TIFFCompressionModes( .SoOffscreenRenderer.PACKBITS_COMPRESSION )).
Public methodWriteToTIFF(String, SoOffscreenRendererTIFFCompressionModes)

Writes the buffer as a TIFF file to the given filename.

Top
See Also