Class SoBaseContextObject
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.devices.SoBaseContextObject
-
public class SoBaseContextObject extends Inventor
Context dependent object management class. A helper base class used to store context dependent objects.
-
-
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 SoBaseContextObject(SoDeviceContextSharedGroup sharedContextGroup)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDeviceContextSharedGroup
getContextSharedGroup()
Returns the OpenGL context in which the OpenGL objects were created.void
release()
This function is called by the attached context when it has been requested to delete the context through the SoDeviceContext.dispose() method.-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoBaseContextObject
public SoBaseContextObject(SoDeviceContextSharedGroup sharedContextGroup)
Constructor.- Parameters:
sharedContextGroup
- context shared group from which it depends.
-
-
Method Detail
-
release
public void release()
This function is called by the attached context when it has been requested to delete the context through the SoDeviceContext.dispose() method. As some object might be still attached, it triggers all attached objectrelease()
method to ask them to detach (and then get it refcount to zero).
-
getContextSharedGroup
public SoDeviceContextSharedGroup getContextSharedGroup()
Returns the OpenGL context in which the OpenGL objects were created.
-
-