Class SoCpuContext
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.devices.SoDeviceContext
com.openinventor.inventor.devices.SoCpuContext
- All Implemented Interfaces:
SafeDisposable
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
ConstructorsConstructorDescriptionCalls SoCpuContext((com.openinventor.inventor.devices.SoCpuDevice)null).SoCpuContext(SoCpuDevice device) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoCpuContextReturns 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, unbindMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Constructor Details
-
SoCpuContext
public SoCpuContext()Calls SoCpuContext((com.openinventor.inventor.devices.SoCpuDevice)null). -
SoCpuContext
Default constructor.- Parameters:
device- TheSoCpuDeviceon which to create the context.
-
-
Method Details
-
getCurrent
Returns the currently bound context (if any) for the current thread.- Returns:
- The current CPU context.
-