SoDevice Class |
Abstract device management class.
Namespace: OIV.Inventor.Devices
The SoDevice type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetAvailableMemory | Returns the current available memory of this device in bytes. | |
GetDevice | Returns the OIV.Inventor.Devices.SoDevice pointed by index. | |
GetDeviceName | Returns the name of this device. | |
GetDevicesCount | Returns the number of devices. | |
GetDriverVersion | Returns the driver version of this device. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetLogicalUnits | Returns the number of logical units of this device. | |
GetTotalMemory | Returns the total memory of this device in bytes. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class provides generic functions to manage and to get data about specific devices.
There are specific implementations of this class for each type of device supported by Open Inventor. These classes may provide additional methods to query information specific to the device type. Currently the supported device types are:
OIV.Inventor.Devices.SoCpuDevice: A system CPU, including multiple cores.
OIV.Inventor.Devices.SoGLDevice: A GPU, managed through the OpenGL API.
Using the query methods, you can determine the number of each type of device and specific information about each device such as the total memory.
On most devices other than the CPU, a device "context" is necessary when using the device. Open Inventor provides classes to manage contexts for each type of device. See OIV.Inventor.Devices.SoDeviceContext and its derived classes OIV.Inventor.Devices.SoCpuContext and OIV.Inventor.Devices.SoGLContext.
Open Inventor provides classes to manage data objects (blocks of memory), called buffer objects, on each type of device. See OIV.Inventor.Devices.SoBufferObject and its derived classes OIV.Inventor.Devices.SoCpuBufferObject, OIV.Inventor.Devices.SoGpuBufferObject etc.
Note: The word "device" is also used to refer to input devices such as the mouse and keyboard. These devices are associated with the viewer or render area and are represented by window system dependent classes. See, for example: OIV.Inventor.Win.Devices.SoWinDevice, SoQtDevice and SoXtDevice.