TGLLockable Class Reference

#include <TGLLockable.h>

Inheritance diagram for TGLLockable:

TGLSceneBase TGLSceneBase TGLViewerBase TGLViewerBase TGLScene TGLScene TGLScene TGLScene TGLViewer TGLViewer TGLViewer TGLViewer List of all members.

Public Types

enum  ELock
enum  ELock

Public Member Functions

 TGLLockable ()
virtual ~TGLLockable ()
virtual const char * LockIdStr () const
Bool_t TakeLock (ELock lock) const
Bool_t ReleaseLock (ELock lock) const
Bool_t IsLocked () const
ELock CurrentLock () const
Bool_t IsDrawOrSelectLock () const
 ClassDef (TGLLockable, 0)
 TGLLockable ()
virtual ~TGLLockable ()
virtual const char * LockIdStr () const
Bool_t TakeLock (ELock lock) const
Bool_t ReleaseLock (ELock lock) const
Bool_t IsLocked () const
ELock CurrentLock () const
Bool_t IsDrawOrSelectLock () const
 ClassDef (TGLLockable, 0)

Static Public Member Functions

static const char * LockName (ELock lock)
static Bool_t LockValid (ELock lock)
static const char * LockName (ELock lock)
static Bool_t LockValid (ELock lock)

Protected Attributes

ELock fLock

Private Member Functions

 TGLLockable (const TGLLockable &)
TGLLockableoperator= (const TGLLockable &)
 TGLLockable (const TGLLockable &)
TGLLockableoperator= (const TGLLockable &)

Classes

class  TUnlocker

Detailed Description

Definition at line 17 of file TGLLockable.h.


Member Enumeration Documentation

enum TGLLockable::ELock

Definition at line 20 of file TGLLockable.h.

enum TGLLockable::ELock

Definition at line 20 of file TGLLockable.h.


Constructor & Destructor Documentation

TGLLockable::TGLLockable ( const TGLLockable  )  [private]

TGLLockable::TGLLockable (  ) 

Definition at line 23 of file TGLLockable.cxx.

virtual TGLLockable::~TGLLockable (  )  [inline, virtual]

Definition at line 54 of file TGLLockable.h.

TGLLockable::TGLLockable ( const TGLLockable  )  [private]

TGLLockable::TGLLockable (  ) 

virtual TGLLockable::~TGLLockable (  )  [inline, virtual]

Definition at line 54 of file TGLLockable.h.


Member Function Documentation

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

virtual const char* TGLLockable::LockIdStr (  )  const [inline, virtual]

Definition at line 56 of file TGLLockable.h.

Referenced by ReleaseLock(), and TakeLock().

Bool_t TGLLockable::TakeLock ( ELock  lock  )  const

Definition at line 30 of file TGLLockable.cxx.

References Error, fLock, gDebug, Info, kFALSE, kTRUE, kUnlocked, LockIdStr(), LockName(), and LockValid().

Referenced by TGLScene::BeginUpdate(), TGLViewer::DoDraw(), TGLViewer::RequestDraw(), TGLViewer::RequestOverlaySelect(), TGLViewer::RequestSecondarySelect(), TGLViewer::RequestSelect(), TGLViewer::SavePictureUsingBB(), TGLViewer::SavePictureUsingFBO(), and TGLScene::~TGLScene().

Bool_t TGLLockable::ReleaseLock ( ELock  lock  )  const

Definition at line 49 of file TGLLockable.cxx.

References Error, fLock, gDebug, Info, kFALSE, kTRUE, kUnlocked, LockIdStr(), LockName(), and LockValid().

Referenced by TGLViewer::DoDraw(), TGLViewer::DoOverlaySelect(), TGLViewer::DoSecondarySelect(), TGLViewer::DoSelect(), TGLScene::EndUpdate(), TGLScene::~TGLScene(), and TGLLockable::TUnlocker::~TUnlocker().

Bool_t TGLLockable::IsLocked (  )  const [inline]

Definition at line 60 of file TGLLockable.h.

References fLock, and kUnlocked.

Referenced by TGLEventHandler::HandleButton(), TGLEventHandler::HandleConfigureNotify(), TGLEventHandler::HandleDoubleClick(), TGLEventHandler::HandleExpose(), TGLEventHandler::HandleKey(), TGLEventHandler::HandleMotion(), TGLEventHandler::Repaint(), TGLViewer::SetCurrentCamera(), TGLViewer::SetupCameras(), and TGLLockable::TUnlocker::~TUnlocker().

ELock TGLLockable::CurrentLock (  )  const [inline]

Definition at line 61 of file TGLLockable.h.

References fLock.

Referenced by TGLScenePad::AddObject(), TGLScenePad::BuildingScene(), TGLViewer::DoDraw(), TGLViewer::DoOverlaySelect(), TGLViewer::DoSecondarySelect(), TGLViewer::DoSelect(), TGLEventHandler::HandleButton(), TGLEventHandler::HandleConfigureNotify(), TGLEventHandler::HandleDoubleClick(), TGLEventHandler::HandleExpose(), TGLEventHandler::HandleKey(), TGLEventHandler::HandleMotion(), TGLEventHandler::Repaint(), TGLViewer::SetCurrentCamera(), TGLViewer::SetupCameras(), TGLViewer::SwapBuffers(), and TGLLockable::TUnlocker::~TUnlocker().

Bool_t TGLLockable::IsDrawOrSelectLock (  )  const [inline]

Definition at line 63 of file TGLLockable.h.

References fLock, kDrawLock, and kSelectLock.

Referenced by TGLSceneBase::PreDraw(), and TGLViewer::SwapBuffers().

const char * TGLLockable::LockName ( ELock  lock  )  [static]

Definition at line 68 of file TGLLockable.cxx.

References kModifyLock, and names.

Referenced by TGLViewer::DoDraw(), TGLViewer::DoOverlaySelect(), TGLViewer::DoSecondarySelect(), TGLViewer::DoSelect(), G__G__GL_458_0_10(), G__setup_memfuncTGLLockable(), TGLEventHandler::HandleButton(), TGLEventHandler::HandleConfigureNotify(), TGLEventHandler::HandleDoubleClick(), TGLEventHandler::HandleExpose(), TGLEventHandler::HandleKey(), TGLEventHandler::HandleMotion(), ReleaseLock(), TGLEventHandler::Repaint(), TGLViewer::SetCurrentCamera(), TGLViewer::SetupCameras(), TGLViewer::SwapBuffers(), and TakeLock().

Bool_t TGLLockable::LockValid ( ELock  lock  )  [static]

Definition at line 83 of file TGLLockable.cxx.

References kDrawLock, kFALSE, kModifyLock, kSelectLock, and kTRUE.

Referenced by G__G__GL_458_0_11(), G__setup_memfuncTGLLockable(), ReleaseLock(), and TakeLock().

TGLLockable::ClassDef ( TGLLockable  ,
 
)

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

virtual const char* TGLLockable::LockIdStr (  )  const [inline, virtual]

Definition at line 56 of file TGLLockable.h.

Bool_t TGLLockable::TakeLock ( ELock  lock  )  const

Bool_t TGLLockable::ReleaseLock ( ELock  lock  )  const

Bool_t TGLLockable::IsLocked (  )  const [inline]

Definition at line 60 of file TGLLockable.h.

References fLock, and kUnlocked.

ELock TGLLockable::CurrentLock (  )  const [inline]

Definition at line 61 of file TGLLockable.h.

References fLock.

Bool_t TGLLockable::IsDrawOrSelectLock (  )  const [inline]

Definition at line 63 of file TGLLockable.h.

References fLock, kDrawLock, and kSelectLock.

static const char* TGLLockable::LockName ( ELock  lock  )  [static]

static Bool_t TGLLockable::LockValid ( ELock  lock  )  [static]

TGLLockable::ClassDef ( TGLLockable  ,
 
)


Member Data Documentation

ELock TGLLockable::fLock [mutable, protected]

Definition at line 32 of file TGLLockable.h.

Referenced by TGLScene::AdoptLogical(), TGLScene::AdoptPhysical(), CurrentLock(), TGLScene::DestroyLogical(), TGLScene::DestroyLogicals(), TGLScene::DestroyPhysical(), TGLScene::DestroyPhysicals(), IsDrawOrSelectLock(), IsLocked(), ReleaseLock(), TakeLock(), TGLScene::UpdateLogical(), TGLScene::UpdatePhysical(), and TGLScene::UpdatePhysioLogical().


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