TGLContextIdentity Class Reference

#include <TGLContext.h>

List of all members.

Public Member Functions

 TGLContextIdentity ()
virtual ~TGLContextIdentity ()
void AddRef (TGLContext *ctx)
void Release (TGLContext *ctx)
void AddClientRef ()
void ReleaseClient ()
Int_t GetRefCnt () const
Int_t GetClientRefCnt () const
Bool_t IsValid () const
void RegisterDLNameRangeToWipe (UInt_t base, Int_t size)
void DeleteGLResources ()
TGLFontManagerGetFontManager ()
 TGLContextIdentity ()
virtual ~TGLContextIdentity ()
void AddRef (TGLContext *ctx)
void Release (TGLContext *ctx)
void AddClientRef ()
void ReleaseClient ()
Int_t GetRefCnt () const
Int_t GetClientRefCnt () const
Bool_t IsValid () const
void RegisterDLNameRangeToWipe (UInt_t base, Int_t size)
void DeleteGLResources ()
TGLFontManagerGetFontManager ()

Static Public Member Functions

static TGLContextIdentityGetCurrent ()
static TGLContextIdentityGetDefaultIdentity ()
static TGLContextGetDefaultContextAny ()
static TGLContextIdentityGetCurrent ()
static TGLContextIdentityGetDefaultIdentity ()
static TGLContextGetDefaultContextAny ()

Protected Attributes

TGLFontManagerfFontManager
TGLFontManagerfFontManager

Private Types

typedef std::pair< UInt_t,
Int_t
DLRange_t
typedef std::list< DLRange_tDLTrash_t
typedef DLTrash_t::const_iterator DLTrashIt_t
typedef std::list< TGLContext * > CtxList_t
typedef std::pair< UInt_t,
Int_t
DLRange_t
typedef std::list< DLRange_tDLTrash_t
typedef DLTrash_t::const_iterator DLTrashIt_t
typedef std::list< TGLContext * > CtxList_t

Private Member Functions

void CheckDestroy ()
 ClassDef (TGLContextIdentity, 0)
void CheckDestroy ()
 ClassDef (TGLContextIdentity, 0)

Private Attributes

Int_t fCnt
Int_t fClientCnt
DLTrash_t fDLTrash
CtxList_t fCtxs

Static Private Attributes

static TGLContextIdentityfgDefaultIdentity
static TGLContextIdentityfgDefaultIdentity


Detailed Description

Definition at line 83 of file TGLContext.h.


Member Typedef Documentation

typedef std::pair<UInt_t, Int_t> TGLContextIdentity::DLRange_t [private]

Definition at line 120 of file TGLContext.h.

typedef std::list<DLRange_t> TGLContextIdentity::DLTrash_t [private]

Definition at line 121 of file TGLContext.h.

typedef DLTrash_t::const_iterator TGLContextIdentity::DLTrashIt_t [private]

Definition at line 122 of file TGLContext.h.

typedef std::list<TGLContext*> TGLContextIdentity::CtxList_t [private]

Definition at line 124 of file TGLContext.h.

typedef std::pair<UInt_t, Int_t> TGLContextIdentity::DLRange_t [private]

Definition at line 120 of file TGLContext.h.

typedef std::list<DLRange_t> TGLContextIdentity::DLTrash_t [private]

Definition at line 121 of file TGLContext.h.

typedef DLTrash_t::const_iterator TGLContextIdentity::DLTrashIt_t [private]

Definition at line 122 of file TGLContext.h.

typedef std::list<TGLContext*> TGLContextIdentity::CtxList_t [private]

Definition at line 124 of file TGLContext.h.


Constructor & Destructor Documentation

TGLContextIdentity::TGLContextIdentity (  ) 

TGLContextIdentity::~TGLContextIdentity (  )  [virtual]

Definition at line 382 of file TGLContext.cxx.

References fFontManager.

TGLContextIdentity::TGLContextIdentity (  ) 

virtual TGLContextIdentity::~TGLContextIdentity (  )  [virtual]


Member Function Documentation

void TGLContextIdentity::AddRef ( TGLContext ctx  ) 

Definition at line 390 of file TGLContext.cxx.

References fCnt, and fCtxs.

Referenced by TGLContext::TGLContext(), and TGLViewer::TGLViewer().

void TGLContextIdentity::Release ( TGLContext ctx  ) 

Definition at line 398 of file TGLContext.cxx.

References CheckDestroy(), Error, fCnt, fCtxs, and i.

Referenced by TGLContext::~TGLContext(), and TGLViewer::~TGLViewer().

void TGLContextIdentity::AddClientRef (  )  [inline]

Definition at line 96 of file TGLContext.h.

References fClientCnt.

Referenced by TGLScene::PreDraw().

void TGLContextIdentity::ReleaseClient (  )  [inline]

Definition at line 97 of file TGLContext.h.

References CheckDestroy(), and fClientCnt.

Referenced by TGLScene::ReleaseGLCtxIdentity(), and TGLScene::~TGLScene().

Int_t TGLContextIdentity::GetRefCnt (  )  const [inline]

Definition at line 99 of file TGLContext.h.

References fCnt.

Int_t TGLContextIdentity::GetClientRefCnt (  )  const [inline]

Definition at line 100 of file TGLContext.h.

References fClientCnt.

Bool_t TGLContextIdentity::IsValid (  )  const [inline]

Definition at line 102 of file TGLContext.h.

References fCnt.

Referenced by TGLScene::ReleaseGLCtxIdentity().

void TGLContextIdentity::RegisterDLNameRangeToWipe ( UInt_t  base,
Int_t  size 
)

Definition at line 415 of file TGLContext.cxx.

References fDLTrash.

Referenced by TGLLogicalShape::PurgeDLRange().

void TGLContextIdentity::DeleteGLResources (  ) 

Definition at line 422 of file TGLContext.cxx.

References TGLFontManager::ClearFontTrash(), fDLTrash, fFontManager, and glDeleteLists().

Referenced by TGLContext::MakeCurrent(), and TGLViewer::PreRender().

TGLContextIdentity * TGLContextIdentity::GetCurrent (  )  [static]

Definition at line 438 of file TGLContext.cxx.

References TGLContext::GetCurrent(), and TGLContext::GetIdentity().

Referenced by G__G__GL_443_0_11(), G__setup_memfuncTGLContextIdentity(), and TGLViewerBase::PreRender().

TGLContextIdentity * TGLContextIdentity::GetDefaultIdentity (  )  [static]

Definition at line 446 of file TGLContext.cxx.

References fgDefaultIdentity.

Referenced by G__G__GL_443_0_12(), G__setup_memfuncTGLContextIdentity(), and TGLContext::TGLContext().

TGLContext * TGLContextIdentity::GetDefaultContextAny (  )  [static]

Definition at line 455 of file TGLContext.cxx.

References fCtxs, and fgDefaultIdentity.

Referenced by G__G__GL_443_0_13(), G__setup_memfuncTGLContextIdentity(), and TGLContext::TGLContext().

TGLFontManager * TGLContextIdentity::GetFontManager (  ) 

Definition at line 465 of file TGLContext.cxx.

References fFontManager.

Referenced by TGLRnrCtx::RegisterFontNoScale(), and TGLRnrCtx::ReleaseFont().

void TGLContextIdentity::CheckDestroy (  )  [private]

Definition at line 473 of file TGLContext.cxx.

References fClientCnt, fCnt, and fgDefaultIdentity.

Referenced by Release(), and ReleaseClient().

TGLContextIdentity::ClassDef ( TGLContextIdentity  ,
 
) [private]

void TGLContextIdentity::AddRef ( TGLContext ctx  ) 

void TGLContextIdentity::Release ( TGLContext ctx  ) 

void TGLContextIdentity::AddClientRef (  )  [inline]

Definition at line 96 of file TGLContext.h.

References fClientCnt.

void TGLContextIdentity::ReleaseClient (  )  [inline]

Definition at line 97 of file TGLContext.h.

References CheckDestroy(), and fClientCnt.

Int_t TGLContextIdentity::GetRefCnt (  )  const [inline]

Definition at line 99 of file TGLContext.h.

References fCnt.

Int_t TGLContextIdentity::GetClientRefCnt (  )  const [inline]

Definition at line 100 of file TGLContext.h.

References fClientCnt.

Bool_t TGLContextIdentity::IsValid (  )  const [inline]

Definition at line 102 of file TGLContext.h.

References fCnt.

void TGLContextIdentity::RegisterDLNameRangeToWipe ( UInt_t  base,
Int_t  size 
)

void TGLContextIdentity::DeleteGLResources (  ) 

static TGLContextIdentity* TGLContextIdentity::GetCurrent (  )  [static]

static TGLContextIdentity* TGLContextIdentity::GetDefaultIdentity (  )  [static]

static TGLContext* TGLContextIdentity::GetDefaultContextAny (  )  [static]

TGLFontManager* TGLContextIdentity::GetFontManager (  ) 

void TGLContextIdentity::CheckDestroy (  )  [private]

TGLContextIdentity::ClassDef ( TGLContextIdentity  ,
 
) [private]


Member Data Documentation

TGLFontManager* TGLContextIdentity::fFontManager [protected]

Definition at line 87 of file TGLContext.h.

Referenced by DeleteGLResources(), GetFontManager(), and ~TGLContextIdentity().

Int_t TGLContextIdentity::fCnt [private]

Definition at line 115 of file TGLContext.h.

Referenced by AddRef(), CheckDestroy(), GetRefCnt(), IsValid(), and Release().

Int_t TGLContextIdentity::fClientCnt [private]

Definition at line 116 of file TGLContext.h.

Referenced by AddClientRef(), CheckDestroy(), GetClientRefCnt(), and ReleaseClient().

DLTrash_t TGLContextIdentity::fDLTrash [private]

Definition at line 126 of file TGLContext.h.

Referenced by DeleteGLResources(), and RegisterDLNameRangeToWipe().

CtxList_t TGLContextIdentity::fCtxs [private]

Definition at line 127 of file TGLContext.h.

Referenced by AddRef(), GetDefaultContextAny(), and Release().

TGLContextIdentity* TGLContextIdentity::fgDefaultIdentity [static, private]

Definition at line 129 of file TGLContext.h.

Referenced by CheckDestroy(), GetDefaultContextAny(), and GetDefaultIdentity().

TGLFontManager* TGLContextIdentity::fFontManager [protected]

Definition at line 87 of file TGLContext.h.

TGLContextIdentity* TGLContextIdentity::fgDefaultIdentity [static, private]

Definition at line 129 of file TGLContext.h.


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