23#if !defined SODEVICECONTEXT_H
24#define SODEVICECONTEXT_H
26#include <Inventor/SbBase.h>
27#include <Inventor/misc/SoRefCounter.h>
28#include <Inventor/STL/set>
29#include <Inventor/STL/list>
30#include <Inventor/threads/SbThread.h>
31#include <Inventor/threads/SbThreadMutex.h>
32#include <Inventor/threads/SbThreadSpinlock.h>
33#include <Inventor/devices/SoDeviceContextSharedGroup.h>
37#pragma warning(disable:4251)
41class SoBaseContextCache;
135 void unlockContext();
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
virtual bool isCompatible(SoDeviceContext *) const =0
Returns true if two contexts are compatible.
void setSharable(bool sharable)
Sets the sharable property.
virtual bool setSharedWith(SoDeviceContext *sourceCtx)
Share this context.
friend class SoGLContext_qtcontext_OIV_875_Stub
virtual bool isCurrent() const =0
Returns true if the context is valid and currently active.
SoDeviceContextSharedGroup * getSharedGroup() const
Returns the current shared group.
SoDeviceContext()
Default constructor.
virtual void bind()=0
Bind this context to the current thread.
virtual void unbind()=0
Unbind this context from the current thread.
virtual int getSharedId() const
Returns an id common to all compatible/shared contexts.
virtual bool isSharedWith(const SoDeviceContext *context) const
Returns the current sharing state with passed context.
bool setSharedGroup(SoDeviceContextSharedGroup *sharedGroup)
Explicitly change the sharedGroup.
bool isSharable() const
Returns the sharable status of this context.
virtual bool isValid() const
Returns true if this context is valid.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Shared context m...
Base class for ref-counted objects.
Smart pointer for any class inheriting SoRefCounter.