Logo ROOT  
Reference Guide
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. More...
 
void ExtractViewport (Int_t *vp) const
 Extract viewport from gl. More...
 
const TGLContextGetContext () const
 
const TGLFormatGetPixelFormat () const
 
virtual TClassIsA () const
 
Bool_t MakeCurrent ()
 Set as current GL context. More...
 
void MarkForDirectCopy (Bool_t isDirect)
 Mark gl-device for later copying into x-pixmap. More...
 
void ReadGLBuffer ()
 Read gl buffer into x-pixmap. More...
 
void SelectOffScreenDevice ()
 Select off-screen device for rendering. More...
 
void SetGLDevice (Int_t glDevice)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void SwapBuffers ()
 Swap front/back buffers. More...
 
- Public Member Functions inherited from TGLPaintDevice
virtual ~TGLPaintDevice ()
 
virtual void ExtractViewport (Int_t *vp) const =0
 
virtual const TGLContextGetContext () const =0
 
virtual const TGLFormatGetPixelFormat () const =0
 
virtual TClassIsA () const
 
virtual Bool_t MakeCurrent ()=0
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SwapBuffers ()=0
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGLPaintDevice
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

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

Private Attributes

Int_t fGLDevice
 

#include <TGLAdapter.h>

Inheritance diagram for TGLAdapter:
[legend]

Constructor & Destructor Documentation

◆ TGLAdapter() [1/2]

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

Constructor.

Definition at line 24 of file TGLAdapter.cxx.

◆ TGLAdapter() [2/2]

TGLAdapter::TGLAdapter ( const TGLAdapter )
private

Member Function Documentation

◆ AddContext()

void TGLAdapter::AddContext ( TGLContext )
inlineprivatevirtual

Implements TGLPaintDevice.

Definition at line 43 of file TGLAdapter.h.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static Version_t TGLAdapter::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 46 of file TGLAdapter.h.

◆ DeclFileName()

static 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
virtual

Extract viewport from gl.

Implements TGLPaintDevice.

Definition at line 65 of file TGLAdapter.cxx.

◆ GetContext()

const TGLContext * TGLAdapter::GetContext ( ) const
inlinevirtual

Implements TGLPaintDevice.

Definition at line 27 of file TGLAdapter.h.

◆ GetPixelFormat()

const TGLFormat * TGLAdapter::GetPixelFormat ( ) const
inlinevirtual

Implements TGLPaintDevice.

Definition at line 26 of file TGLAdapter.h.

◆ IsA()

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

Reimplemented from TGLPaintDevice.

Definition at line 46 of file TGLAdapter.h.

◆ MakeCurrent()

Bool_t TGLAdapter::MakeCurrent ( )
virtual

Set as current GL context.

Implements TGLPaintDevice.

Definition at line 32 of file TGLAdapter.cxx.

◆ MarkForDirectCopy()

void TGLAdapter::MarkForDirectCopy ( Bool_t  isDirect)

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

Definition at line 49 of file TGLAdapter.cxx.

◆ operator=()

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

◆ ReadGLBuffer()

void TGLAdapter::ReadGLBuffer ( )

Read gl buffer into x-pixmap.

Definition at line 57 of file TGLAdapter.cxx.

◆ RemoveContext()

void TGLAdapter::RemoveContext ( TGLContext )
inlineprivatevirtual

Implements TGLPaintDevice.

Definition at line 44 of file TGLAdapter.h.

◆ SelectOffScreenDevice()

void TGLAdapter::SelectOffScreenDevice ( )

Select off-screen device for rendering.

Definition at line 73 of file TGLAdapter.cxx.

◆ SetGLDevice()

void TGLAdapter::SetGLDevice ( Int_t  glDevice)
inline

Definition at line 29 of file TGLAdapter.h.

◆ Streamer()

virtual void TGLAdapter::Streamer ( TBuffer )
virtual

Reimplemented from TGLPaintDevice.

◆ StreamerNVirtual()

void TGLAdapter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 46 of file TGLAdapter.h.

◆ SwapBuffers()

void TGLAdapter::SwapBuffers ( )
virtual

Swap front/back buffers.

Implements TGLPaintDevice.

Definition at line 40 of file TGLAdapter.cxx.

Member Data Documentation

◆ fGLDevice

Int_t TGLAdapter::fGLDevice
private

Definition at line 19 of file TGLAdapter.h.

Libraries for TGLAdapter:
[legend]

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