| SoDB Class |
Scene graph database class.
Namespace: OIV.Inventor
The SoDB type exposes the following members.
| Name | Description | |
|---|---|---|
| AddConverter | Registers a field conversion engine that can be used to convert from one type of field to another. | |
| AddPlugin | Loads a plugin library. | |
| AddPluginsDirectory | Adds a directory to search for libraries defining new Open Inventor plugins. | |
| CloseRegistryKey | This closes the key opened by openRegistryKey. | |
| CreateGlobalField | 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. | |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetConverter | Returns the field conversion engine registered for the two given field types. | |
| GetDelaySensorTimeout | Returns the current delay queue timeout value. | |
| GetGlobalField | Returns the global field with the given name, or NULL if there is none. | |
| GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
| GetHeaderString | Returns the i'th header. | |
| GetIvTuneAllowed | Returns true if IvTune can be launched interactively using the keyboard shortcut. | |
| GetNumHeaders | Returns the number of valid headers, including standard Open Inventor headers, and user-registered headers. | |
| GetNumRenderCaches | Obsolete. | |
| GetRealTimeInterval | Returns how often the database is updating the realTime global field. | |
| GetRenderCacheMode | Obsolete. | |
| GetTickCount | ||
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsMultiThread | Obsolete. Returns whether multi-thread support is enabled in Open Inventor. | |
| IsValidHeader | 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 () method. | |
| OpenRegistryKey | Calls OpenRegistryKey(false). | |
| OpenRegistryKey(Boolean) | Registry Utility Function You must have Administrator privileges to use these functions All methods work off of the key \HKEY_CURRENT_USER\SOFTWARE\VSG If the key does not exist it is created. | |
| ProcessEvents | Process Open Inventor sensor queues (TimerQueue and DelayQueue). | |
| Read(SoInput, SoNode) | Reads a graph from the file specified by the given OIV.Inventor.SoInput, returning the resulting root node in rootNode. | |
| Read(SoInput, SoPath) | Reads a graph from the file specified by the given OIV.Inventor.SoInput, returning the resulting path in path. | |
| ReadAll(String) |
Read all graphs from the file specified by the file name. See #ReadAll(SoInput) for more details.
| |
| ReadAll(SoInput) | Reads all graphs and paths from the file specified by the given OIV.Inventor.SoInput. | |
| Readlock | Acquire a non-exclusive global scene graph read-lock. | |
| Readunlock | Release a non-exclusive global scene graph read-lock. | |
| RemoveConverter | Remove a previously added converter. | |
| RemovePlugin | Unloads the specified plugin library. | |
| RemovePluginsDirectory | Remove directory from the list of search directories for plugin loading. | |
| RenameGlobalField | Renames the global field named oldName. | |
| SetDelaySensorTimeout | This sets the timeout value for sensors that are delay queue sensors (one-shot sensors, data sensors). | |
| SetIvTuneAllowed | Specifies if launching IvTune interactively using the keyboard shortcut is allowed. | |
| SetNumRenderCaches | Obsolete. Since Open Inventor 10.3, this method has no effect because render caches are automatically managed. | |
| SetRealTimeInterval | The database automatically creates one global field when () is called. | |
| SetRenderCacheMode | Obsolete. | |
| SetSystemTimer | ||
| ThreadInit | Obsolete.
Initializes the database with support for multi thread programs.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Writelock | ||
| Writeunlock | Release the global scene graph write-lock. |
The OIV.Inventor.SoDB class holds all scene graphs, each representing a 3D scene used by an application. A scene graph is a collection of OIV.Inventor.Nodes.SoNode objects which come in several varieties (see OIV.Inventor.Nodes.SoNode).
All methods in this class are static.
Data Files:
OIV.Inventor.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
VRML/X3D
DXF
STL (see OIV.Inventor.IO.STL.SoSTLFileFormat and OIV.Inventor.IO.STL.SoSTLInputReader)
Open Inventor also supports many standard CAD file formats. See OIV.Inventor.IO.CAD.SoCADInputReader for the current list. Also see OIV.Inventor.IO.CAD.SoCADFileFormat.