public class SoDirectVizManager extends SoNode
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:
 
SoDirectVizManager 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).SoDirectVizManager class by calling SoXtViewer.enableDirectViz(), SoWinViewer.enableDirectViz(), or SoQtViewer.enableDirectViz().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:
SoSceneManager, SoXtRenderArea, SoXtViewer, SoWinRenderArea, SoWinViewer, SoQtRenderArea, SoQtViewer, SoSeparator, SoDirectVizShaderDeprecated since Open Inventor 9500 
 
 No longer supported. 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SoDirectVizManager.CacheModesDeprecated.  Cache states. | 
| static class  | SoDirectVizManager.EnvLightsDeprecated.  Number of environment lights. | 
Inventor.ConstructorCommand| Modifier and Type | Field and Description | 
|---|---|
| SoSFBool | accumulationDeprecated.  Activates/deactivates accumulation passes. | 
| SoSFBool | adaptiveOversamplingDeprecated.  Enables/disables adaptive oversampling rendering. | 
| SoSFBool | controlDialogDeprecated.  Enables/disables the DirectViz control dialog. | 
| static int | ENV_LIGHTS_0Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_0instead. | 
| static int | ENV_LIGHTS_128Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_128instead. | 
| static int | ENV_LIGHTS_16Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_16instead. | 
| static int | ENV_LIGHTS_2Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_2instead. | 
| static int | ENV_LIGHTS_256Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_256instead. | 
| static int | ENV_LIGHTS_32Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_32instead. | 
| static int | ENV_LIGHTS_4Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_4instead. | 
| static int | ENV_LIGHTS_64Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_64instead. | 
| static int | ENV_LIGHTS_8Deprecated. 
 Use  SoDirectVizManager.EnvLights.ENV_LIGHTS_8instead. | 
| SoSFFloat | envLightIntensityScaleDeprecated.  Intensity scale applied to environment lights defined by  numEnvLights. | 
| SoSFBool | fileCachingDeprecated.  Enables/disables acceleration structure cache file. | 
| SoSFBool | fuzzyLightsDeprecated.  Enables/disables fuzzy effects globally in the scene graph. | 
| SoSFBool | globalShadowingDeprecated.  Enables/disables shadows globally in the scene graph. | 
| SoSFBool | glossySurfacesDeprecated.  Enables/disables glossy surfaces effects globally in the scene graph. | 
| SoSFInt32 | maxAccumulationValueDeprecated.  Specifies a maximum number of accumulation passes. | 
| SoSFEnum<SoDirectVizManager.EnvLights> | numEnvLightsDeprecated.  Enables/disables environment lighting by specifying the number of lights. | 
| SoSFInt32 | numProgressiveRenderingStepsDeprecated.  Specifies the number of steps (intermediate images) between subsampled rendering and full resolution rendering. | 
| SoSFBool | progressiveRenderingDeprecated.  Activates/deactivates rendering with progressive resolution. | 
| static int | READ_MODEDeprecated. 
 Use  SoDirectVizManager.CacheModes.READ_MODEinstead. | 
| static int | READ_WRITE_MODEDeprecated. 
 Use  SoDirectVizManager.CacheModes.READ_WRITE_MODEinstead. | 
| SoSFInt32 | recursionLimitDeprecated.  Specifies the recursion depth limit. | 
| SoSFBool | renderingDeprecated.  Activates/deactivates ray-traced rendering. | 
| SoSFBool | softShadowsDeprecated.  Enables/disables soft shadows globally in the scene graph. | 
| SoSFBool | subRecursionDeprecated.  Enables/disables recursion when subsampling the scene. | 
| SoSFBool | subSamplingDeprecated.  Activates/deactivates image sub-sampling. | 
| SoSFFloat | subSamplingFactorDeprecated.  Specifies the sub-sampling factor. | 
| static int | WRITE_MODEDeprecated. 
 Use  SoDirectVizManager.CacheModes.WRITE_MODEinstead. | 
VERBOSE_LEVEL, ZeroHandle| Modifier and Type | Method and Description | 
|---|---|
| int | getCurrentAccumValue()Deprecated.  Gets the current accumulation value. | 
| static SoDirectVizManager | getInstance(SoSceneManager mgr)Deprecated.  Returns a pointer to a DirectVizManager object associated with the specified scene manager. | 
| double | getLastRenderTime()Deprecated.  Gets the elapsed time for rendering the last frame in seconds. | 
| int | getNumEnvironmentLights()Deprecated.  Returns number of environment lights (see field numEnvLights). | 
| SbVec2s | getRenderedImageSize()Deprecated.  Gets the size of rendered image in pixels. | 
| void | setCacheDirectory(java.lang.String directory)Deprecated.  Specifies cache directory (it must be an absolute path). | 
| void | setCacheFile(java.lang.String file)Deprecated.  Calls setCacheFile(file, SoDirectVizManager.CacheModes.valueOf( SoDirectVizManager.CacheModes.READ_WRITE_MODE.getValue() )). | 
| void | setCacheFile(java.lang.String file,
            SoDirectVizManager.CacheModes mode)Deprecated.  Specifies cache file as an absolute path name. | 
| void | setCamera(SoCamera camera)Deprecated.  Set the camera to use for rendering. | 
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int READ_WRITE_MODE
SoDirectVizManager.CacheModes.READ_WRITE_MODE instead.@Deprecated public static final int READ_MODE
SoDirectVizManager.CacheModes.READ_MODE instead.@Deprecated public static final int WRITE_MODE
SoDirectVizManager.CacheModes.WRITE_MODE instead.@Deprecated public static final int ENV_LIGHTS_0
SoDirectVizManager.EnvLights.ENV_LIGHTS_0 instead.@Deprecated public static final int ENV_LIGHTS_2
SoDirectVizManager.EnvLights.ENV_LIGHTS_2 instead.@Deprecated public static final int ENV_LIGHTS_4
SoDirectVizManager.EnvLights.ENV_LIGHTS_4 instead.@Deprecated public static final int ENV_LIGHTS_8
SoDirectVizManager.EnvLights.ENV_LIGHTS_8 instead.@Deprecated public static final int ENV_LIGHTS_16
SoDirectVizManager.EnvLights.ENV_LIGHTS_16 instead.@Deprecated public static final int ENV_LIGHTS_32
SoDirectVizManager.EnvLights.ENV_LIGHTS_32 instead.@Deprecated public static final int ENV_LIGHTS_64
SoDirectVizManager.EnvLights.ENV_LIGHTS_64 instead.@Deprecated public static final int ENV_LIGHTS_128
SoDirectVizManager.EnvLights.ENV_LIGHTS_128 instead.@Deprecated public static final int ENV_LIGHTS_256
SoDirectVizManager.EnvLights.ENV_LIGHTS_256 instead.public final SoSFBool accumulation
The initial value can be set using the environment variable DIRECTVIZ _ACCUMULATION. See SoPreferences. The number of successive passes is controlled with the maxAccumulationValue field.
public final SoSFInt32 maxAccumulationValue
The initial value can be set using the environment variable DIRECTVIZ_MAX_ACCUMULATION_VALUE. See SoPreferences.
public final SoSFBool subSampling
subSamplingFactor field. Default is true.
 The initial value can be set using the environment variable DIRECTVIZ_SUBSAMPLING. See SoPreferences.
public final SoSFFloat subSamplingFactor
SoPreferences.public final SoSFInt32 recursionLimit
The initial value can be set using the environment variable DIRECTVIZ_RECURSION_LIMIT. See SoPreferences.
public final SoSFBool subRecursion
subRecursion to false: it will force the recursion limit to 1 and therefore prevent reflections and refractions. Default is true.
 The initial value can be set using the environment variable DIRECTVIZ_SUB_RECURSION. See SoPreferences.
public final SoSFBool progressiveRendering
numProgressiveRenderingSteps field. Default is false.
 The initial value can be set using the environment variable DIRECTVIZ_PROGRESSIVE_RENDERING. See SoPreferences.
public final SoSFInt32 numProgressiveRenderingSteps
The initial value can be set using the environment variable DIRECTVIZ_RENDER_STEPS. See SoPreferences.
public final SoSFBool rendering
public final SoSFBool globalShadowing
The initial value can be set using the environment variable DIRECTVIZ_GLOBAL_SHADOW. See SoPreferences.
public final SoSFBool adaptiveOversampling
Adaptive oversampling reduces aliasing only near aliased pixels in the image. The initial value can be set using the environment variable DIRECTVIZ_ADAPTIVE_OVERSAMPLING. See SoPreferences. 
 
public final SoSFBool softShadows
The initial value can be set using the environment variable DIRECTVIZ_SOFT_SHADOWS. See SoPreferences. 
 
public final SoSFBool fuzzyLights
The initial value can be set using the environment variable DIRECTVIZ_FUZZY_LIGHTS. See SoPreferences. 
 
public final SoSFBool glossySurfaces
The initial value can be set using the environment variable DIRECTVIZ_GLOSSY_SURFACES. See SoPreferences. 
 
public final SoSFEnum<SoDirectVizManager.EnvLights> numEnvLights
The initial value can be set using the environment variable DIRECTVIZ_NUM_ENV_LIGHTS. See SoPreferences. 
 
public final SoSFFloat envLightIntensityScale
numEnvLights.
 The initial value can be set using the environment variable DIRECTVIZ_ENV_LIGHTS_SCALE. See SoPreferences. 
 
public final SoSFBool fileCaching
setCacheDirectory method, which will contain the cache files. For each scene graph there is exactly one cache file. A signature is automatically created and written in cache files, so it is not nesessary to name explicitly cached files. fileCaching is set to true, before rendering a new scene, DirectViz will first search in the cache directory if there is a cache file correponding to the scene signature. If such cache file exists, DirectViz will directly load OpenRTRT objects from it. Otherwise, DirectViz will create OpenRTRT objects from the scene graph and save them with the scene signature in a new cache file in the cache directory. A cache file can also be specified explicitly with setCacheFile(). Default is false.
 The initial value can be set using the environment variable DIRECTVIZ_FILE_CACHING. See SoPreferences.
public final SoSFBool controlDialog
The initial value can be set using the environment variable DIRECTVIZ_CONTROL_DIALOG. See SoPreferences.
public void setCacheFile(java.lang.String file)
public void setCacheFile(java.lang.String file,
                         SoDirectVizManager.CacheModes mode)
public int getNumEnvironmentLights()
public void setCamera(SoCamera camera)
public void setCacheDirectory(java.lang.String directory)
SoPreferences.public SbVec2s getRenderedImageSize()
public int getCurrentAccumValue()
public static SoDirectVizManager getInstance(SoSceneManager mgr)
pViewer->getSceneManager(); 
public double getLastRenderTime()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com