Click or drag to resize
SoDB Class

Scene graph database class.

Inheritance Hierarchy

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public sealed class SoDB : SoNetBase

The SoDB type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddConverter
Public methodStatic memberAddPlugin

Loads a plugin library.

Public methodStatic memberAddPluginsDirectory

Adds a directory to search for libraries defining new Open Inventor plugins.

Public methodStatic memberCloseRegistryKey

This closes the key opened by openRegistryKey.

Public methodStatic memberCloseTGSRegistryKey Obsolete.

Obsoletesince Open Inventor 8100 Use SoDB.closeRegistryKey instead .

Public methodStatic memberCreateGlobalField

The database maintains a namespace for global fields, making sure that there is at most one instance of a global field with any given name in the database.

Public methodStatic memberCreateRoute

Creates a VRML 2.0 ROUTE-TO connection.

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

Returns the field conversion engine registered for the two given field types.

Public methodStatic memberGetDelaySensorTimeout

Returns the current delay queue timeout value.

Public methodStatic memberGetGlobalField

Returns the global field with the given name, or NULL if there is none.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodStatic memberGetHeaderString

Returns the i'th header.

Public methodStatic memberGetIvTuneAllowed

Returns true if IvTune can be launched interactively using the keyboard shortcut.

Public methodStatic memberGetLicensingVersionNumber Obsolete.

Returns current version number for license checking.

Public methodStatic memberGetNumHeaders

Returns the number of valid headers, including standard Open Inventor headers, and user-registered headers.

Public methodStatic memberGetNumRenderCaches

Returns the current maximum number of render caches.

Public methodStatic memberGetRealTimeInterval

Returns how often the database is updating the realTime global field.

Public methodStatic memberGetRenderCacheMode

Returns the current render cache mode.

Public methodStatic memberGetTickCount

Returns the current time.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetVersion Obsolete.

Returns a character string identifying the version of the Open Inventor library in use.

Public methodStatic memberIsMultiThread

Returns whether multi-thread support is enabled in Open Inventor.

Public methodStatic memberIsPrioritizedChildrenCaching Obsolete.

Returns the children caching priority state.

Public methodStatic memberIsValidHeader

This returns true if the given character string is one of the valid Open Inventor file headers, (e.g., "#Inventor V2.0 binary"), or if the string has been registered as a valid header through the registerHeader() method.

Public methodStatic memberLicenseCheck(String, Single) Obsolete.
Calls LicenseCheck(productName, version, (System.String ^)nullptr, true, (cli.array<System.String^>^)nullptr).
Public methodStatic memberLicenseCheck(String, Single, String) Obsolete.
Calls LicenseCheck(productName, version, licenseString, true, (cli.array<System.String^>^)nullptr).
Public methodStatic memberLicenseCheck(String, Single, String, Boolean) Obsolete.
Calls LicenseCheck(productName, version, licenseString, printWarning, (cli.array<System.String^>^)nullptr).
Public methodStatic memberLicenseCheck(String, Single, String, Boolean, String) Obsolete.

Query if Open Inventor or an extension module is licensed on this machine.

Public methodStatic memberOpenRegistryKey
Calls OpenRegistryKey(false).
Public methodStatic memberOpenRegistryKey(Boolean)
Public methodStatic memberOpenTGSRegistryKey Obsolete.
Calls OpenTGSRegistryKey(false).
Public methodStatic memberOpenTGSRegistryKey(Boolean) Obsolete.

Obsoletesince Open Inventor 8100 Use SoDB.openRegistryKey instead.

Public methodStatic memberPrioritizeChildrenCaching Obsolete.

Set the priority to children caching.

Public methodStatic memberProcessEvents

Process Open Inventor sensor queues (TimerQueue and DelayQueue).

Public methodStatic memberRead(SoInput, SoNode)
Public methodStatic memberRead(SoInput, SoPath)

Reads a graph from the file specified by the given SoInput, returning the resulting path in path.

Public methodStatic memberReadAll(String)
Read all graphs from the file specified by the file name. See #ReadAll(SoInput) for more details.
Public methodStatic memberReadAll(SoInput)

Reads all graphs and paths from the file specified by the given SoInput.

Public methodStatic memberReadAllVRML Obsolete.

Reads all graphs and paths from the VRML file specified by the given SoInput.

Public methodStatic memberReadlock

Acquire a non-exclusive global scene graph read-lock.

Public methodStatic memberReadPROTOFromFile
Public methodStatic memberReadunlock

Release a non-exclusive global scene graph read-lock.

Public methodStatic memberRemoveConverter

Remove a previously added converter.

Public methodStatic memberRemovePlugin

Unloads the specified plugin library.

Public methodStatic memberRemovePluginsDirectory

Remove directory from the list of search directories for plugin loading.

Public methodStatic memberRemoveRoute

Removes a VRML 2.0 ROUTE-TO connection.

Public methodStatic memberRenameGlobalField

Renames the global field named oldName.

Public methodStatic memberSetDelaySensorTimeout

This sets the timeout value for sensors that are delay queue sensors (one-shot sensors, data sensors).

Public methodStatic memberSetIvTuneAllowed
Public methodStatic memberSetNumRenderCaches

This method sets the maximum number of caches for nodes that create render caches.

Public methodStatic memberSetRealTimeInterval

The database automatically creates one global field when SoDB.init() is called.

Public methodStatic memberSetRenderCacheMode

This method specifies the way render caches (display lists) will be created.

Public methodStatic memberSetSystemTimer

The system dependent timer allows Inventor to manage its sensor queue (for timers, animation) when creating custom viewers.

Public methodStatic memberTGSLicenseCheck(String, Single) Obsolete.
Calls TGSLicenseCheck(productName, version, (System.String ^)nullptr, true).
Public methodStatic memberTGSLicenseCheck(String, Single, String) Obsolete.
Calls TGSLicenseCheck(productName, version, licenseString, true).
Public methodStatic memberTGSLicenseCheck(String, Single, String, Boolean) Obsolete.

Obsoletesince Open Inventor 8000 Use SoDB.LicenseCheck instead.

Public methodStatic memberThreadInit
Initializes the database with support for multi thread programs.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberWritelock

Acquire the global scene graph write-lock.

Public methodStatic memberWriteunlock

Release the global scene graph write-lock.

Top
Remarks

The SoDB class holds all scene graphs, each representing a 3D scene used by an application. A scene graph is a collection of SoNode objects which come in several varieties (see SoNode).

All methods in this class are static.

Data Files:

SoDB also provides convenient methods for reading data files, for example:

String filename = "$OIVHOME/data/models/bird.iv";
SoSeparator rootSep = null;
SoInput input = new SoInput();
if (input.OpenFile(filename))
{
   rootSep = SoDB.ReadAll( input );
   input.CloseFile();
}

Open Inventor has built-in support for reading the following file formats:

Open Inventor also supports many standard CAD file formats. See SoCADInputReader for the current list. Also see SoCADFileFormat.

Version Number:

Please use the SoLicensesInfo class to query the Open Inventor version number.

See Also