ROOT » GRAF3D » GL » TGLLockable

class TGLLockable


 Simple locking interface used by viewer and scene.

Function Members (Methods)

static TClass*Class()
TGLLockable::ELockCurrentLock() const
virtual TClass*IsA() const
Bool_tIsDrawOrSelectLock() const
Bool_tIsLocked() const
virtual const char*LockIdStr() const
static const char*LockName(TGLLockable::ELock lock)
static Bool_tLockValid(TGLLockable::ELock lock)
Bool_tReleaseLock(TGLLockable::ELock lock) const
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Bool_tTakeLock(TGLLockable::ELock lock) const

Data Members

static TGLLockable::ELockkDrawLock
static TGLLockable::ELockkModifyLock
static TGLLockable::ELockkSelectLock
static TGLLockable::ELockkUnlocked
TGLLockable::ELockfLockLock state.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t TakeLock(TGLLockable::ELock lock) const
 Lock the object in mode 'lock'. Return TRUE if successful, FALSE
 if the object is already locked.
Bool_t ReleaseLock(TGLLockable::ELock lock) const
 Release current lock, make sure it the same as the 'lock' argument.
 Returns TRUE on success, FALSE on failure.
const char* LockName(TGLLockable::ELock lock)
 Return name-string for given lock-type.
Bool_t LockValid(TGLLockable::ELock lock)
 Test if lock is a valid type to take/release.
 kUnlocked is never valid in these cases.
TGLLockable(const TGLLockable& )
TGLLockable& operator=(const TGLLockable& )
virtual ~TGLLockable()
const char* LockIdStr() const
{ return "<unknown>"; }
Bool_t IsLocked() const
{ return (fLock != kUnlocked); }
ELock CurrentLock() const
{ return fLock; }
Bool_t IsDrawOrSelectLock() const
{ return fLock == kDrawLock || fLock == kSelectLock; }