Click or drag to resize
SoDirectVizManager Class

Note: This API is now obsolete.

Manages ray-traced rendering.

Inheritance Hierarchy

Namespace: OIV.DirectViz
Assembly: OIV.DirectViz (in OIV.DirectViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[ObsoleteAttribute("See documentation for more details")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public class SoDirectVizManager : SoNode

The SoDirectVizManager type exposes the following members.

Methods
  NameDescription
Public methodAffectsState

Returns true if a node has an effect on the state during traversal.

(Inherited from SoNode.)
Public methodCallback
(Inherited from SoNode.)
Public methodCopy
Calls Copy(false).
(Inherited from SoNode.)
Public methodCopy(Boolean)

Creates and returns an exact copy of the node.

(Inherited from SoNode.)
Public methodCopyFieldValues(SoFieldContainer)
Calls CopyFieldValues(fc, false).
(Inherited from SoFieldContainer.)
Public methodCopyFieldValues(SoFieldContainer, Boolean)

Copies the contents of fc's fields into this object's fields.

(Inherited from SoFieldContainer.)
Public methodDispose
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.)
Public methodDistribute
(Inherited from SoNode.)
Public methodDoAction
(Inherited from SoNode.)
Public methodEnableNotify

Notification at this Field Container is enabled (if flag == true) or disabled (if flag == false).

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

Returns true if this object's fields are exactly equal to fc's fields.

(Inherited from SoFieldContainer.)
Public methodGet

Returns the values of the fields of this object in the Open Inventor ASCII file format in the given string.

(Inherited from SoFieldContainer.)
Public methodGetAllFields

Returns a list of fields, including the eventIn's and eventOut's.

(Inherited from SoFieldContainer.)
Public methodGetAlternateRep

This method is called by actions to allow the node to provide an "alternate representation" when appropriate (typically depending on the action type).

(Inherited from SoNode.)
Public methodGetBoundingBox
(Inherited from SoNode.)
Public methodGetCurrentAccumValue

Gets the current accumulation value.

Public methodGetEventIn

Returns a the eventIn with the given name.

(Inherited from SoFieldContainer.)
Public methodGetEventOut

Returns the eventOut with the given name.

(Inherited from SoFieldContainer.)
Public methodGetField

Returns a the field of this object whose name is fieldName.

(Inherited from SoFieldContainer.)
Public methodGetFieldName

Returns the name of the given field in the fieldName argument.

(Inherited from SoFieldContainer.)
Public methodGetFields

Appends references to all of this object's fields to resultList, and returns the number of fields appended.

(Inherited from SoFieldContainer.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodStatic memberGetInstance

Returns a pointer to a DirectVizManager object associated with the specified scene manager.

Public methodGetLastRenderTime

Gets the elapsed time for rendering the last frame in seconds.

Public methodGetMatrix
(Inherited from SoNode.)
Public methodGetName

Returns the name of an instance.

(Inherited from SoBase.)
Public methodGetNumEnvironmentLights

Returns number of environment lights (see field numEnvLights).

Public methodGetPrimitiveCount
(Inherited from SoNode.)
Public methodGetRenderedImageSize

Gets the size of rendered image in pixels.

Public methodGetRenderUnitID
(Inherited from SoNode.)
Public methodGetStringName (Inherited from SoBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGLRender
(Inherited from SoNode.)
Public methodGLRenderBelowPath
(Inherited from SoNode.)
Public methodGLRenderInPath
(Inherited from SoNode.)
Public methodGLRenderOffPath
(Inherited from SoNode.)
Public methodGrabEventsCleanup
(Inherited from SoNode.)
Public methodGrabEventsSetup
(Inherited from SoNode.)
Public methodHandleEvent
(Inherited from SoNode.)
Public methodHasDefaultValues

Returns true if all of the object's fields have their default values.

(Inherited from SoFieldContainer.)
Public methodIsBoundingBoxIgnoring

This method is used by getBoundingBox action traversal to know if the current node must be traversed or not, ie the bounding should be ignored.

(Inherited from SoNode.)
Public methodIsNotifyEnabled

Notification is the process of telling interested objects that this object has changed.

(Inherited from SoFieldContainer.)
Public methodIsOverride

Returns the state of the override flag.

(Inherited from SoNode.)
Public methodIsSynchronizable

Gets the ScaleViz synchronizable state of this object.

(Inherited from SoBase.)
Public methodPick
(Inherited from SoNode.)
Public methodRayPick
(Inherited from SoNode.)
Public methodSearch
(Inherited from SoNode.)
Public methodSet

Sets one or more fields in this object to the values specified in the given string, which should be a string in the Open Inventor file format.

(Inherited from SoFieldContainer.)
Public methodSetCacheDirectory

Specifies cache directory (it must be an absolute path).

Public methodSetCacheFile(String)
Calls SetCacheFile(file, OIV.DirectViz.SoDirectVizManager.CacheModes( .SoDirectVizManager.READ_WRITE_MODE )).
Public methodSetCacheFile(String, SoDirectVizManagerCacheModes)

Specifies cache file as an absolute path name.

Public methodSetCamera

Set the camera to use for rendering.

Public methodSetName (Inherited from SoBase.)
Public methodSetOverride

Turns the override flag on or off.

(Inherited from SoNode.)
Public methodSetSynchronizable

Sets this to be a ScaleViz synchronizable object.

(Inherited from SoBase.)
Public methodSetToDefaults

Sets all fields in this object to their default values.

(Inherited from SoFieldContainer.)
Public methodToString
Converts this SoBase structure to a human readable string.
(Inherited from SoBase.)
Public methodTouch

Marks an instance as modified, simulating a change to it.

(Inherited from SoNode.)
Public methodWrite
(Inherited from SoNode.)
Top
Properties
  NameDescription
Public propertyaccumulation

Activates/deactivates accumulation passes.

Public propertyadaptiveOversampling

Enables/disables adaptive oversampling rendering.

Public propertycontrolDialog

Enables/disables the DirectViz control dialog.

Public propertyenvLightIntensityScale

Intensity scale applied to environment lights defined by numEnvLights.

Public propertyfileCaching

Enables/disables acceleration structure cache file.

Public propertyfuzzyLights

Enables/disables fuzzy effects globally in the scene graph.

Public propertyglobalShadowing

Enables/disables shadows globally in the scene graph.

Public propertyglossySurfaces

Enables/disables glossy surfaces effects globally in the scene graph.

Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Public propertymaxAccumulationValue

Specifies a maximum number of accumulation passes.

Public propertynumEnvLights

Enables/disables environment lighting by specifying the number of lights.

Public propertynumProgressiveRenderingSteps

Specifies the number of steps (intermediate images) between subsampled rendering and full resolution rendering.

Public propertyprogressiveRendering

Activates/deactivates rendering with progressive resolution.

Public propertyrecursionLimit

Specifies the recursion depth limit.

Public propertyrendering

Activates/deactivates ray-traced rendering.

Public propertysoftShadows

Enables/disables soft shadows globally in the scene graph.

Public propertysubRecursion

Enables/disables recursion when subsampling the scene.

Public propertysubSampling

Activates/deactivates image sub-sampling.

Public propertysubSamplingFactor

Specifies the sub-sampling factor.

Public propertyUserData
Gets or sets the user data to be contained by the field container.
(Inherited from SoFieldContainer.)
Top
Remarks

SoDirectVizManager manages ray-traced rendering of scenes. See DirectViz group for the package description.

SoDirectVizManager derives from SoNode, however it must not be referenced by the application and must not be inserted in a scene graph. SoDirectVizManager is freed by calling finish().

SoDirectVizManager provides general control of DirectViz:

  • Activating ray-traced rendering for a viewer or render areaSoDirectVizManager is associated with a scene manager when calling getInstance(). The scene manager can be retrived from a render area or viewer by calling SoXtRenderArea.getSceneManager() (or the SoWin or SoQt equivalent). Note that you can activate DirectViz for a viewer without using the SoDirectVizManager class by calling SoXtViewer.enableDirectViz(), SoWinViewer.enableDirectViz(), or SoQtViewer.enableDirectViz(). As only one scene manager at a time can use ray-traced rendering in the current release, there can be only one DirectVizManager instance. If DirectViz was already associated with a scene manager, calling getInstance() with another scene manager will deactivate DirectViz on the previously associated scene manager. The same applies for viewers and render areas.

  • Managing interactivity/quality trade-offs: resolution subsampling, progressive resolution, accumulation for oversampling/antialiasing, recursion depth limit.

  • Enabling/disabling the control dialog

  • Getting information about frame size, time for rendering, current accumulation pass; number of geometry objects, textures, lights and surface shaders

    • Managing cache files for acceleration structures

Note: reflection and shadow rays computation use an offset internally used to deflect ray in order to prevent infinite hits. This offset is properly initialized to 1e-3, but it may lead to artefacts in some cases (wrong pixels). Then, the SoPreference variable DIRECTVIZ_RAY_EPSILON will have to be set to 1e-2 or 1e-1.

See Also