SoDeviceContext Class Reference

VSG extension Abstract base class for device context managment More...

#include <Inventor/devices/SoDeviceContext.h>

Inheritance diagram for SoDeviceContext:
SoRefCounter SoCpuContext SoGLContext

List of all members.

Public Member Functions

 SoDeviceContext ()
virtual void bind ()=0
virtual void unbind ()=0
virtual bool isCompatible (SoDeviceContext *) const =0
virtual bool isCurrent () const =0
void setSharable (bool sharable)
bool isSharable () const
virtual bool setSharedWith (SoDeviceContext *sourceCtx)
virtual bool isSharedWith (const SoDeviceContext *context) const
virtual int getSharedId () const
SoDeviceContextSharedGroupgetSharedGroup () const
bool setSharedGroup (SoDeviceContextSharedGroup *sharedGroup)
virtual bool isValid () const


class SoGLContext_qtcontext_OIV_875_Stub

Detailed Description

VSG extension Abstract base class for device context managment

This class provides generic functions to manage or get data about specific device contexts.

Reference counting:

Constructor & Destructor Documentation

SoDeviceContext::SoDeviceContext (  ) 

Default constructor.

Member Function Documentation

virtual void SoDeviceContext::bind (  )  [pure virtual]

Bind this context to the current thread.

Implemented in SoCpuContext, and SoGLContext.

SoDeviceContextSharedGroup* SoDeviceContext::getSharedGroup (  )  const

Returns the current shared group.

virtual int SoDeviceContext::getSharedId (  )  const [virtual]

Returns an id common to all compatible/shared contexts.

virtual bool SoDeviceContext::isCompatible ( SoDeviceContext  )  const [pure virtual]

Returns true if two contexts are compatible.

Compatible means that using a buffer from one of these contexts inside the other will not require copying the data.

virtual bool SoDeviceContext::isCurrent (  )  const [pure virtual]

Returns true if the context is valid and currently active.

Implemented in SoCpuContext, and SoGLContext.

bool SoDeviceContext::isSharable (  )  const

Returns the sharable status of this context.

By default, a context is sharable.

virtual bool SoDeviceContext::isSharedWith ( const SoDeviceContext context  )  const [virtual]

Returns the current sharing state with passed context.

virtual bool SoDeviceContext::isValid (  )  const [virtual]

Returns true if this context is valid.

true if the context is valid.

Reimplemented in SoGLContext.

void SoDeviceContext::setSharable ( bool  sharable  ) 

Sets the sharable property.

bool SoDeviceContext::setSharedGroup ( SoDeviceContextSharedGroup sharedGroup  ) 

Explicitly change the sharedGroup.

virtual bool SoDeviceContext::setSharedWith ( SoDeviceContext sourceCtx  )  [virtual]

Share this context.

virtual void SoDeviceContext::unbind (  )  [pure virtual]

Unbind this context from the current thread.

Implemented in SoCpuContext, and SoGLContext.

Friends And Related Function Documentation

friend class SoGLContext_qtcontext_OIV_875_Stub [friend]

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Aug 2020
Copyright © Thermo Fisher Scientific All rights reserved.