public class SoDeviceContext extends Inventor implements SafeDisposable
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
bind()
Bind this context to the current thread.
|
boolean |
dispose()
Explicitly call this method to force object to dispose its unmanaged
resources.
|
SoDeviceContextSharedGroup |
getSharedGroup()
Returns the current shared group.
|
int |
getSharedId()
Returns an id common to all compatible/shared contexts.
|
boolean |
isCompatible(SoDeviceContext name_12363)
Returns true if two contexts are compatible.
|
boolean |
isCurrent()
Returns true if the context is valid and currently active.
|
boolean |
isDisposable()
Returns a boolean flag which indicates if it is safe to call
SafeDisposable.dispose() on the object. |
boolean |
isSharable()
Returns the sharable status of this context.
|
boolean |
isSharedWith(SoDeviceContext context)
Returns the current sharing state with passed context.
|
void |
setSharable(boolean sharable)
Sets the sharable property.
|
boolean |
setSharedGroup(SoDeviceContextSharedGroup sharedGroup)
Explicitly change the sharedGroup.
|
boolean |
setSharedWith(SoDeviceContext sourceCtx)
Share this context.
|
void |
unbind()
Unbind this context from the current thread.
|
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public boolean isDisposable()
SafeDisposable
SafeDisposable.dispose()
on the object.isDisposable
in interface SafeDisposable
true
if the object can be disposed in a safe mannerpublic boolean dispose()
Inventor
dispose
in interface SafeDisposable
dispose
in class Inventor
true
if this object native resources were successfully
disposed; false
if it was already disposed or no
native resources has been registered for this object.public boolean isCurrent()
public boolean isCompatible(SoDeviceContext name_12363)
Compatible means that using a buffer from one of these contexts inside the other will not require copying the data.
public boolean isSharedWith(SoDeviceContext context)
public void bind()
public void unbind()
public void setSharable(boolean sharable)
public int getSharedId()
public SoDeviceContextSharedGroup getSharedGroup()
public boolean setSharedGroup(SoDeviceContextSharedGroup sharedGroup)
public boolean isSharable()
public boolean setSharedWith(SoDeviceContext sourceCtx)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com