TGLWidget Class Reference

#include <TGLWidget.h>

Inheritance diagram for TGLWidget:

TGFrame TGLPaintDevice TGFrame TGLPaintDevice TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 ~TGLWidget ()
virtual void InitGL ()
virtual void PaintGL ()
Bool_t MakeCurrent ()
Bool_t ClearCurrent ()
void SwapBuffers ()
const TGLContextGetContext () const
const TGLFormatGetPixelFormat () const
void SetFormat ()
void ExtractViewport (Int_t *vp) const
TGEventHandlerGetEventHandler () const
void SetEventHandler (TGEventHandler *eh)
Bool_t HandleButton (Event_t *ev)
Bool_t HandleDoubleClick (Event_t *ev)
Bool_t HandleConfigureNotify (Event_t *ev)
Bool_t HandleKey (Event_t *ev)
Bool_t HandleMotion (Event_t *ev)
Bool_t HandleFocusChange (Event_t *)
Bool_t HandleCrossing (Event_t *)
void DoRedraw ()
 ~TGLWidget ()
virtual void InitGL ()
virtual void PaintGL ()
Bool_t MakeCurrent ()
Bool_t ClearCurrent ()
void SwapBuffers ()
const TGLContextGetContext () const
const TGLFormatGetPixelFormat () const
void SetFormat ()
void ExtractViewport (Int_t *vp) const
TGEventHandlerGetEventHandler () const
void SetEventHandler (TGEventHandler *eh)
Bool_t HandleButton (Event_t *ev)
Bool_t HandleDoubleClick (Event_t *ev)
Bool_t HandleConfigureNotify (Event_t *ev)
Bool_t HandleKey (Event_t *ev)
Bool_t HandleMotion (Event_t *ev)
Bool_t HandleFocusChange (Event_t *)
Bool_t HandleCrossing (Event_t *)
void DoRedraw ()

Static Public Member Functions

static TGLWidgetCreateDummy ()
static TGLWidgetCreate (const TGWindow *parent, Bool_t selectInput, Bool_t shareDefault, const TGLPaintDevice *shareDevice, UInt_t width, UInt_t height)
static TGLWidgetCreate (const TGLFormat &format, const TGWindow *parent, Bool_t selectInput, Bool_t shareDefault, const TGLPaintDevice *shareDevice, UInt_t width, UInt_t height)
static TGLWidgetCreateDummy ()
static TGLWidgetCreate (const TGWindow *parent, Bool_t selectInput, Bool_t shareDefault, const TGLPaintDevice *shareDevice, UInt_t width, UInt_t height)
static TGLWidgetCreate (const TGLFormat &format, const TGWindow *parent, Bool_t selectInput, Bool_t shareDefault, const TGLPaintDevice *shareDevice, UInt_t width, UInt_t height)

Protected Member Functions

 TGLWidget (Window_t glw, const TGWindow *parent, Bool_t selectInput)
void AddContext (TGLContext *ctx)
void RemoveContext (TGLContext *ctx)
std::pair< void *, void * > GetInnerData () const
 ClassDef (TGLWidget, 0)
 TGLWidget (Window_t glw, const TGWindow *parent, Bool_t selectInput)
void AddContext (TGLContext *ctx)
void RemoveContext (TGLContext *ctx)
std::pair< void *, void * > GetInnerData () const
 ClassDef (TGLWidget, 0)

Static Protected Member Functions

static Window_t CreateWindow (const TGWindow *parent, const TGLFormat &format, UInt_t width, UInt_t height, std::pair< void *, void * > &innerData)
static Window_t CreateWindow (const TGWindow *parent, const TGLFormat &format, UInt_t width, UInt_t height, std::pair< void *, void * > &innerData)

Private Member Functions

 TGLWidget (const TGLWidget &)
TGLWidgetoperator= (const TGLWidget &)
 TGLWidget (const TGLWidget &)
TGLWidgetoperator= (const TGLWidget &)

Private Attributes

TGLContextfGLContext
std::pair< void *, void * > fInnerData
Int_t fWindowIndex
TGLFormat fGLFormat
Bool_t fFromInit
std::set< TGLContext * > fValidContexts
TGEventHandlerfEventHandler
TGLContextfGLContext
std::pair< void *, void * > fInnerData
std::set< TGLContext * > fValidContexts
TGEventHandlerfEventHandler

Friends

class TGLContext

Detailed Description

Definition at line 35 of file TGLWidget.h.


Constructor & Destructor Documentation

TGLWidget::~TGLWidget (  ) 

Definition at line 157 of file TGLWidget.cxx.

References fGLContext, fInnerData, fValidContexts, fWindowIndex, gVirtualX, u, and TObject::Warning().

TGLWidget::TGLWidget ( const TGLWidget  )  [private]

Referenced by Create().

TGLWidget::TGLWidget ( Window_t  glw,
const TGWindow parent,
Bool_t  selectInput 
) [protected]

Definition at line 135 of file TGLWidget.cxx.

References TGObject::GetId(), gVirtualX, kAnyButton, kAnyModifier, kButtonPressMask, kButtonReleaseMask, kEnterWindowMask, kExposureMask, kFocusChangeMask, kKeyPressMask, kKeyReleaseMask, kLeaveWindowMask, kNone, kPointerMotionMask, and kStructureNotifyMask.

TGLWidget::~TGLWidget (  ) 

TGLWidget::TGLWidget ( const TGLWidget  )  [private]

TGLWidget::TGLWidget ( Window_t  glw,
const TGWindow parent,
Bool_t  selectInput 
) [protected]


Member Function Documentation

TGLWidget * TGLWidget::CreateDummy (  )  [static]

Definition at line 73 of file TGLWidget.cxx.

References Create(), gClient, TGClient::GetDefaultRoot(), kFALSE, and TGLFormat::kNone.

Referenced by G__G__GL_446_0_1(), G__setup_memfuncTGLWidget(), and TGLFormat::InitAvailableSamples().

TGLWidget * TGLWidget::Create ( const TGWindow parent,
Bool_t  selectInput,
Bool_t  shareDefault,
const TGLPaintDevice shareDevice,
UInt_t  width,
UInt_t  height 
) [static]

Definition at line 83 of file TGLWidget.cxx.

Referenced by TGLPShapeObjEditor::CreateColorControls(), CreateDummy(), TGLEmbeddedViewer::CreateFrames(), TGLSAViewer::CreateGLWidget(), TGLEmbeddedViewer::CreateGLWidget(), G__G__GL_446_0_2(), G__G__GL_446_0_3(), and G__setup_memfuncTGLWidget().

TGLWidget * TGLWidget::Create ( const TGLFormat format,
const TGWindow parent,
Bool_t  selectInput,
Bool_t  shareDefault,
const TGLPaintDevice shareDevice,
UInt_t  width,
UInt_t  height 
) [static]

Definition at line 96 of file TGLWidget.cxx.

References CreateWindow(), fFromInit, fGLContext, fGLFormat, fInnerData, fWindowIndex, TGLPaintDevice::GetContext(), gVirtualX, kFALSE, SetFormat(), TGLContext, and TGLWidget().

void TGLWidget::InitGL (  )  [virtual]

Definition at line 180 of file TGLWidget.cxx.

void TGLWidget::PaintGL (  )  [virtual]

Definition at line 186 of file TGLWidget.cxx.

Bool_t TGLWidget::MakeCurrent (  )  [virtual]

Implements TGLPaintDevice.

Definition at line 192 of file TGLWidget.cxx.

References fGLContext, and TGLContext::MakeCurrent().

Referenced by TGLPShapeObjEditor::DrawSphere(), TGLFormat::InitAvailableSamples(), and TGLViewer::MakeCurrent().

Bool_t TGLWidget::ClearCurrent (  ) 

Definition at line 199 of file TGLWidget.cxx.

References TGLContext::ClearCurrent(), and fGLContext.

void TGLWidget::SwapBuffers (  )  [virtual]

Implements TGLPaintDevice.

Definition at line 206 of file TGLWidget.cxx.

References fGLContext, and TGLContext::SwapBuffers().

Referenced by TGLPShapeObjEditor::DrawSphere(), and TGLViewer::SwapBuffers().

const TGLContext * TGLWidget::GetContext (  )  const [virtual]

Implements TGLPaintDevice.

Definition at line 213 of file TGLWidget.cxx.

References fGLContext.

const TGLFormat * TGLWidget::GetPixelFormat (  )  const [virtual]

Implements TGLPaintDevice.

Definition at line 220 of file TGLWidget.cxx.

References fGLFormat.

Referenced by TGLViewer::SavePictureUsingFBO().

void TGLWidget::SetFormat (  ) 

Definition at line 482 of file TGLWidget.cxx.

Referenced by Create().

void TGLWidget::ExtractViewport ( Int_t vp  )  const [virtual]

Implements TGLPaintDevice.

Definition at line 250 of file TGLWidget.cxx.

References TGFrame::GetHeight(), and TGFrame::GetWidth().

TGEventHandler* TGLWidget::GetEventHandler (  )  const [inline]

Definition at line 83 of file TGLWidget.h.

References fEventHandler.

void TGLWidget::SetEventHandler ( TGEventHandler eh  ) 

Definition at line 498 of file TGLWidget.cxx.

References fEventHandler.

Referenced by TGLEmbeddedViewer::CreateFrames(), TGLSAViewer::CreateGLWidget(), TGLEmbeddedViewer::CreateGLWidget(), TGLEmbeddedViewer::DestroyGLWidget(), TGLSAViewer::DestroyGLWidget(), and TGLViewer::SetEventHandler().

Bool_t TGLWidget::HandleButton ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Definition at line 523 of file TGLWidget.cxx.

References fEventHandler, Form(), gROOT, gVirtualX, TGEventHandler::HandleButton(), kFALSE, kTRUE, and TROOT::ProcessLineFast().

Bool_t TGLWidget::HandleDoubleClick ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Definition at line 536 of file TGLWidget.cxx.

References fEventHandler, Form(), gROOT, gVirtualX, TGEventHandler::HandleDoubleClick(), kFALSE, kTRUE, and TROOT::ProcessLineFast().

Bool_t TGLWidget::HandleConfigureNotify ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Definition at line 549 of file TGLWidget.cxx.

References fEventHandler, Form(), gROOT, gVirtualX, TGFrame::HandleConfigureNotify(), TGEventHandler::HandleConfigureNotify(), kFALSE, kTRUE, and TROOT::ProcessLineFast().

Bool_t TGLWidget::HandleKey ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Definition at line 578 of file TGLWidget.cxx.

References fEventHandler, Form(), gROOT, gVirtualX, TGEventHandler::HandleKey(), kFALSE, kTRUE, and TROOT::ProcessLineFast().

Bool_t TGLWidget::HandleMotion ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Definition at line 591 of file TGLWidget.cxx.

References fEventHandler, Form(), gROOT, gVirtualX, TGEventHandler::HandleMotion(), kFALSE, kTRUE, and TROOT::ProcessLineFast().

Bool_t TGLWidget::HandleFocusChange ( Event_t  )  [virtual]

Reimplemented from TGFrame.

Definition at line 565 of file TGLWidget.cxx.

References fEventHandler, Form(), gROOT, gVirtualX, TGEventHandler::HandleFocusChange(), kFALSE, kTRUE, and TROOT::ProcessLineFast().

Bool_t TGLWidget::HandleCrossing ( Event_t  )  [virtual]

Reimplemented from TGFrame.

Definition at line 505 of file TGLWidget.cxx.

References fEventHandler, Form(), Event_t::fType, TGObject::GetId(), gROOT, gVirtualX, TGEventHandler::HandleCrossing(), kEnterNotify, kFALSE, kTRUE, and TROOT::ProcessLineFast().

void TGLWidget::DoRedraw (  )  [virtual]

Reimplemented from TGFrame.

Definition at line 604 of file TGLWidget.cxx.

References fEventHandler, and TGEventHandler::Repaint().

TGLWidget& TGLWidget::operator= ( const TGLWidget  )  [private]

Window_t TGLWidget::CreateWindow ( const TGWindow parent,
const TGLFormat format,
UInt_t  width,
UInt_t  height,
std::pair< void *, void * > &  innerData 
) [static, protected]

Definition at line 436 of file TGLWidget.cxx.

References Display(), TObject::Error(), fill_format(), TGObject::GetId(), glXChooseVisual(), gVirtualX, and mask.

Referenced by Create().

void TGLWidget::AddContext ( TGLContext ctx  )  [protected, virtual]

Implements TGLPaintDevice.

Definition at line 234 of file TGLWidget.cxx.

References fValidContexts.

void TGLWidget::RemoveContext ( TGLContext ctx  )  [protected, virtual]

Implements TGLPaintDevice.

Definition at line 241 of file TGLWidget.cxx.

References fValidContexts.

std::pair< void *, void * > TGLWidget::GetInnerData (  )  const [protected]

Definition at line 227 of file TGLWidget.cxx.

References fInnerData.

Referenced by TGLContext::SetContext().

TGLWidget::ClassDef ( TGLWidget  ,
 
) [protected]

static TGLWidget* TGLWidget::CreateDummy (  )  [static]

static TGLWidget* TGLWidget::Create ( const TGWindow parent,
Bool_t  selectInput,
Bool_t  shareDefault,
const TGLPaintDevice shareDevice,
UInt_t  width,
UInt_t  height 
) [static]

static TGLWidget* TGLWidget::Create ( const TGLFormat format,
const TGWindow parent,
Bool_t  selectInput,
Bool_t  shareDefault,
const TGLPaintDevice shareDevice,
UInt_t  width,
UInt_t  height 
) [static]

virtual void TGLWidget::InitGL (  )  [virtual]

virtual void TGLWidget::PaintGL (  )  [virtual]

Bool_t TGLWidget::MakeCurrent (  )  [virtual]

Implements TGLPaintDevice.

Bool_t TGLWidget::ClearCurrent (  ) 

void TGLWidget::SwapBuffers (  )  [virtual]

Implements TGLPaintDevice.

const TGLContext* TGLWidget::GetContext (  )  const [virtual]

Implements TGLPaintDevice.

const TGLFormat* TGLWidget::GetPixelFormat (  )  const [virtual]

Implements TGLPaintDevice.

void TGLWidget::SetFormat (  ) 

void TGLWidget::ExtractViewport ( Int_t vp  )  const [virtual]

Implements TGLPaintDevice.

TGEventHandler* TGLWidget::GetEventHandler (  )  const [inline]

Definition at line 83 of file TGLWidget.h.

References fEventHandler.

void TGLWidget::SetEventHandler ( TGEventHandler eh  ) 

Bool_t TGLWidget::HandleButton ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLWidget::HandleDoubleClick ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLWidget::HandleConfigureNotify ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLWidget::HandleKey ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLWidget::HandleMotion ( Event_t ev  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLWidget::HandleFocusChange ( Event_t  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLWidget::HandleCrossing ( Event_t  )  [virtual]

Reimplemented from TGFrame.

void TGLWidget::DoRedraw (  )  [virtual]

Reimplemented from TGFrame.

TGLWidget& TGLWidget::operator= ( const TGLWidget  )  [private]

static Window_t TGLWidget::CreateWindow ( const TGWindow parent,
const TGLFormat format,
UInt_t  width,
UInt_t  height,
std::pair< void *, void * > &  innerData 
) [static, protected]

void TGLWidget::AddContext ( TGLContext ctx  )  [protected, virtual]

Implements TGLPaintDevice.

void TGLWidget::RemoveContext ( TGLContext ctx  )  [protected, virtual]

Implements TGLPaintDevice.

std::pair<void *, void *> TGLWidget::GetInnerData (  )  const [protected]

TGLWidget::ClassDef ( TGLWidget  ,
 
) [protected]


Friends And Related Function Documentation

TGLContext [friend]

Reimplemented from TGLPaintDevice.

Definition at line 37 of file TGLWidget.h.

Referenced by Create().


Member Data Documentation

TGLContext* TGLWidget::fGLContext [private]

Definition at line 40 of file TGLWidget.h.

Referenced by ClearCurrent(), Create(), GetContext(), MakeCurrent(), SwapBuffers(), and ~TGLWidget().

std::pair<void *, void *> TGLWidget::fInnerData [private]

Definition at line 42 of file TGLWidget.h.

Referenced by Create(), GetInnerData(), and ~TGLWidget().

Int_t TGLWidget::fWindowIndex [private]

Definition at line 43 of file TGLWidget.h.

Referenced by Create(), and ~TGLWidget().

TGLFormat TGLWidget::fGLFormat [private]

Definition at line 45 of file TGLWidget.h.

Referenced by Create(), and GetPixelFormat().

Bool_t TGLWidget::fFromInit [private]

Definition at line 47 of file TGLWidget.h.

Referenced by Create().

std::set<TGLContext *> TGLWidget::fValidContexts [private]

Definition at line 49 of file TGLWidget.h.

Referenced by AddContext(), RemoveContext(), and ~TGLWidget().

TGEventHandler* TGLWidget::fEventHandler [private]

Definition at line 51 of file TGLWidget.h.

Referenced by DoRedraw(), GetEventHandler(), HandleButton(), HandleConfigureNotify(), HandleCrossing(), HandleDoubleClick(), HandleFocusChange(), HandleKey(), HandleMotion(), and SetEventHandler().

TGLContext* TGLWidget::fGLContext [private]

Definition at line 40 of file TGLWidget.h.

std::pair<void *, void *> TGLWidget::fInnerData [private]

Definition at line 42 of file TGLWidget.h.

std::set<TGLContext *> TGLWidget::fValidContexts [private]

Definition at line 49 of file TGLWidget.h.

TGEventHandler* TGLWidget::fEventHandler [private]

Definition at line 51 of file TGLWidget.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:16 2011 for ROOT_528-00b_version by  doxygen 1.5.1