library: libRGL
#include "TGLDisplayListCache.h"

TGLDisplayListCache


class description - source file - inheritance tree (.pdf)

class TGLDisplayListCache

Inheritance Chart:
TGLDisplayListCache
    private:
TGLDisplayListCache(Bool_t enable = true, UInt_t size = 10000) virtual ~TGLDisplayListCache() UInt_t Find(TGLDisplayListCache::CacheID_t cacheID) const void Init() TGLDisplayListCache::CacheID_t MakeCacheID(const TGLDrawable& drawable, UInt_t LOD) const public:
TGLDisplayListCache(const TGLDisplayListCache&) Bool_t CaptureIsOpen() static TClass* Class() Bool_t CloseCapture() Bool_t Draw(const TGLDrawable& drawable, UInt_t LOD) const void Dump() const void Enable(Bool_t enable) static TGLDisplayListCache& Instance() virtual TClass* IsA() const Bool_t IsEnabled() Bool_t OpenCapture(const TGLDrawable& drawable, UInt_t LOD) TGLDisplayListCache& operator=(const TGLDisplayListCache&) void Purge() void Purge(const TGLDrawable& drawable) void Purge(const TGLDrawable& drawable, UInt_t LOD) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
UInt_t fSize ! Bool_t fInit ! Bool_t fEnabled ! Bool_t fCaptureOpen ! UInt_t fDLBase ! UInt_t fDLNextFree ! map<pair<const TGLDrawable*,const unsigned int>,unsigned int,less<pair<const TGLDrawable*,const unsigned int> >,allocator<pair<const pair<const TGLDrawable*,const unsigned int>,unsigned int> > > fCacheDLMap ! static TGLDisplayListCache* fgInstance ! the singleton cache instance static const UInt_t fgInvalidDLName

Class Description


TGLDisplayListCache& Instance()

TGLDisplayListCache(Bool_t enable, UInt_t size) : fSize(size), fInit(kFALSE), fEnabled(enable), fCaptureOpen(kFALSE), fDLBase(fgInvalidDLName), fDLNextFree(fgInvalidDLName)

~TGLDisplayListCache()

void Init()

Bool_t Draw(const TGLDrawable & drawable, UInt_t LOD) const

Bool_t OpenCapture(const TGLDrawable & drawable, UInt_t LOD)

Bool_t CloseCapture()

void Purge()
 Purge everything from the cache

void Purge(const TGLDrawable & /* drawable */)

void Purge(const TGLDrawable & /* drawable */, UInt_t /* LOD */)

UInt_t Find(CacheID_t cacheID) const
 Look at Effect STL on efficiency .

void Dump() const



Inline Functions


        TGLDisplayListCache::CacheID_t MakeCacheID(const TGLDrawable& drawable, UInt_t LOD) const
                                  void Enable(Bool_t enable)
                                Bool_t IsEnabled()
                                Bool_t CaptureIsOpen()
                               TClass* Class()
                               TClass* IsA() const
                                  void ShowMembers(TMemberInspector& insp, char* parent)
                                  void Streamer(TBuffer& b)
                                  void StreamerNVirtual(TBuffer& b)
                   TGLDisplayListCache TGLDisplayListCache(const TGLDisplayListCache&)
                  TGLDisplayListCache& operator=(const TGLDisplayListCache&)


Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLDisplayListCache.cxx,v 1.6 2005/08/30 10:29:52 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.