Class SoCpuContext
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.devices.SoDeviceContext
-
- com.openinventor.inventor.devices.SoCpuContext
-
- All Implemented Interfaces:
SafeDisposable
public class SoCpuContext extends SoDeviceContext
CPU device context managment class. This class provides functions to manage CPU device contexts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoCpuContext()
Calls SoCpuContext((com.openinventor.inventor.devices.SoCpuDevice)null).SoCpuContext(SoCpuDevice device)
Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SoCpuContext
getCurrent()
Returns the currently bound context (if any) for the current thread.-
Methods inherited from class com.openinventor.inventor.devices.SoDeviceContext
bind, dispose, getSharedGroup, getSharedId, isCompatible, isCurrent, isDisposable, isSharable, isSharedWith, isValid, setSharable, setSharedGroup, setSharedWith, unbind
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoCpuContext
public SoCpuContext()
Calls SoCpuContext((com.openinventor.inventor.devices.SoCpuDevice)null).
-
SoCpuContext
public SoCpuContext(SoCpuDevice device)
Default constructor.- Parameters:
device
- TheSoCpuDevice
on which to create the context.
-
-
Method Detail
-
getCurrent
public static SoCpuContext getCurrent()
Returns the currently bound context (if any) for the current thread.- Returns:
- The current CPU context.
-
-