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_10875)
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.
|
boolean |
isValid()
Returns true if this context is valid.
|
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.
|
getNativeResourceHandle
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 isCompatible(SoDeviceContext name_10875)
Compatible means that using a buffer from one of these contexts inside the other will not require copying the data.
public boolean isCurrent()
public void setSharable(boolean sharable)
public void bind()
public void unbind()
public boolean isSharedWith(SoDeviceContext context)
public boolean setSharedGroup(SoDeviceContextSharedGroup sharedGroup)
public int getSharedId()
public SoDeviceContextSharedGroup getSharedGroup()
public boolean isSharable()
public boolean setSharedWith(SoDeviceContext sourceCtx)
public boolean isValid()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com