Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TGLAdapter Class Reference

Allow plot-painters to be used for gl-inpad and gl-viewer.

Definition at line 17 of file TGLAdapter.h.

Public Member Functions

 TGLAdapter (Int_t glDevice=-1)
 Constructor.
void ExtractViewport (Int_t *vp) const override
 Extract viewport from gl.
const TGLContextGetContext () const override
const TGLFormatGetPixelFormat () const override
TClassIsA () const override
Bool_t MakeCurrent () override
 Set as current GL context.
void MarkForDirectCopy (Bool_t isDirect)
 Mark gl-device for later copying into x-pixmap.
void ReadGLBuffer ()
 Read gl buffer into x-pixmap.
void SelectOffScreenDevice ()
 Select off-screen device for rendering.
void SetGLDevice (Int_t glDevice)
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
void SwapBuffers () override
 Swap front/back buffers.

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Private Member Functions

 TGLAdapter (const TGLAdapter &)
void AddContext (TGLContext *) override
TGLAdapteroperator= (const TGLAdapter &)
void RemoveContext (TGLContext *) override

Private Attributes

Int_t fGLDevice

#include <TGLAdapter.h>

Inheritance diagram for TGLAdapter:
TGLPaintDevice

Constructor & Destructor Documentation

◆ TGLAdapter() [1/2]

TGLAdapter::TGLAdapter ( Int_t glDevice = -1)
explicit

Constructor.

Definition at line 23 of file TGLAdapter.cxx.

◆ TGLAdapter() [2/2]

TGLAdapter::TGLAdapter ( const TGLAdapter & )
private

Member Function Documentation

◆ AddContext()

void TGLAdapter::AddContext ( TGLContext * )
inlineoverrideprivatevirtual

Implements TGLPaintDevice.

Definition at line 43 of file TGLAdapter.h.

◆ Class()

TClass * TGLAdapter::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TGLAdapter::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TGLAdapter::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 46 of file TGLAdapter.h.

◆ DeclFileName()

const char * TGLAdapter::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 46 of file TGLAdapter.h.

◆ ExtractViewport()

void TGLAdapter::ExtractViewport ( Int_t * vp) const
overridevirtual

Extract viewport from gl.

Implements TGLPaintDevice.

Definition at line 64 of file TGLAdapter.cxx.

◆ GetContext()

const TGLContext * TGLAdapter::GetContext ( ) const
inlineoverridevirtual

Implements TGLPaintDevice.

Definition at line 27 of file TGLAdapter.h.

◆ GetPixelFormat()

const TGLFormat * TGLAdapter::GetPixelFormat ( ) const
inlineoverridevirtual

Implements TGLPaintDevice.

Definition at line 26 of file TGLAdapter.h.

◆ IsA()

TClass * TGLAdapter::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TGLPaintDevice.

Definition at line 46 of file TGLAdapter.h.

◆ MakeCurrent()

Bool_t TGLAdapter::MakeCurrent ( )
overridevirtual

Set as current GL context.

Implements TGLPaintDevice.

Definition at line 31 of file TGLAdapter.cxx.

◆ MarkForDirectCopy()

void TGLAdapter::MarkForDirectCopy ( Bool_t isDirect)

Mark gl-device for later copying into x-pixmap.

Definition at line 48 of file TGLAdapter.cxx.

◆ operator=()

TGLAdapter & TGLAdapter::operator= ( const TGLAdapter & )
private

◆ ReadGLBuffer()

void TGLAdapter::ReadGLBuffer ( )

Read gl buffer into x-pixmap.

Definition at line 56 of file TGLAdapter.cxx.

◆ RemoveContext()

void TGLAdapter::RemoveContext ( TGLContext * )
inlineoverrideprivatevirtual

Implements TGLPaintDevice.

Definition at line 44 of file TGLAdapter.h.

◆ SelectOffScreenDevice()

void TGLAdapter::SelectOffScreenDevice ( )

Select off-screen device for rendering.

Definition at line 72 of file TGLAdapter.cxx.

◆ SetGLDevice()

void TGLAdapter::SetGLDevice ( Int_t glDevice)
inline

Definition at line 29 of file TGLAdapter.h.

◆ Streamer()

void TGLAdapter::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TGLPaintDevice.

◆ StreamerNVirtual()

void TGLAdapter::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 46 of file TGLAdapter.h.

◆ SwapBuffers()

void TGLAdapter::SwapBuffers ( )
overridevirtual

Swap front/back buffers.

Implements TGLPaintDevice.

Definition at line 39 of file TGLAdapter.cxx.

Member Data Documentation

◆ fGLDevice

Int_t TGLAdapter::fGLDevice
private

Definition at line 19 of file TGLAdapter.h.


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