class TGLFontManager


 A FreeType GL font manager.

 Each GL rendering context has an instance of FTGLManager.
 This enables FTGL fonts to be shared same way as textures and display lists.

Function Members (Methods)

public:
TGLFontManager()
virtual~TGLFontManager()
static TClass*Class()
voidClearFontTrash()
static TObjArray*GetFontFileArray()
static const char*GetFontNameFromId(Int_t)
static Int_tGetFontSize(Float_t ds, Int_t min = -1, Int_t max = -1)
static TGLFontManager::FontSizeVec_t*GetFontSizeArray()
virtual TClass*IsA() const
voidRegisterFont(Int_t size, Int_t file, TGLFont::EMode mode, TGLFont& out)
voidRegisterFont(Int_t size, const Text_t* name, TGLFont::EMode mode, TGLFont& out)
voidReleaseFont(TGLFont& font)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
static voidInitStatics()
private:
TGLFontManager(const TGLFontManager&)
TGLFontManager&operator=(const TGLFontManager&)

Data Members

protected:
map<TGLFont,int,less<TGLFont>,allocator<pair<const TGLFont,int> > >fFontMapmap of created fonts
list<const TGLFont*,allocator<const TGLFont*> >fFontTrashfonts to purge
static TObjArrayfgFontFileArraymap font-id to ttf-font-file
static vector<int,allocator<int> >fgFontSizeArraymap of valid font-size
static Bool_tfgStaticInitDoneglobal initialization flag

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

~TGLFontManager()
 Destructor.
void RegisterFont(Int_t size, Int_t fileID, TGLFont::EMode mode, TGLFont &out)
 Provide font with given size, file and FTGL class.
void RegisterFont(Int_t size, const Text_t* name, TGLFont::EMode mode, TGLFont &out)
 Get mapping from ttf id to font names. Table taken from TTF.cxx.
void ReleaseFont(TGLFont& font)
 Release font with given attributes. Returns false if font has
 not been found in the managers font set.
TObjArray* GetFontFileArray()
 Get id to file name map.
Int_t GetFontSize(Float_t ds, Int_t min = -1, Int_t max = -1)
 Get availabe font size.
const char* GetFontNameFromId(Int_t )
void InitStatics()
 Create a list of available font files and allowed font sizes.
void ClearFontTrash()
 Delete FTFFont objects registered for destruction.
TGLFont& operator=(const TGLFontManager& )
TGLFontManager(const TGLFontManager& )
TGLFontManager()
{}
FontSizeVec_t* GetFontSizeArray()

Author: Olivier Couet 12/04/2007
Last change: root/gl:$Id: TGLFontManager.h 26772 2008-12-09 19:57:49Z matevz $
Last generated: 2008-12-10 08:21
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

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.