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* fInstance        ! the singleton cache instance
                                                                                                                                                                                         static const UInt_t INVALID_DL_NAME

## Class Description

TGLDisplayListCache& Instance()

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

~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.5 2005/06/15 15:40:30 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *