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 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)
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.
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(const TGLFontManager& )
{}
FontSizeVec_t* GetFontSizeArray()

Last change: Wed Jun 25 08:40:57 2008
Last generated: 2008-06-25 08:40

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.