Logo ROOT   6.14/05
Reference Guide
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
TGLFontManager Class Reference

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.

Definition at line 119 of file TGLFontManager.h.

Public Types

typedef std::vector< Int_tFontSizeVec_t
 

Public Member Functions

 TGLFontManager ()
 
virtual ~TGLFontManager ()
 Destructor. More...
 
void ClearFontTrash ()
 Delete FTFFont objects registered for destruction. More...
 
void RegisterFont (Int_t size, Int_t file, TGLFont::EMode mode, TGLFont &out)
 Provide font with given size, file and FTGL class. More...
 
void RegisterFont (Int_t size, const char *name, TGLFont::EMode mode, TGLFont &out)
 Get mapping from ttf id to font names. Table taken from TTF.cxx. More...
 
void ReleaseFont (TGLFont &font)
 Release font with given attributes. More...
 

Static Public Member Functions

static Int_t GetExtendedFontStartIndex ()
 
static TObjArrayGetFontFileArray ()
 Get id to file name map. More...
 
static const char * GetFontNameFromId (Int_t)
 Get font name from TAttAxis font id. More...
 
static Int_t GetFontSize (Int_t ds)
 Get availabe font size. More...
 
static Int_t GetFontSize (Int_t ds, Int_t min, Int_t max)
 Get availabe font size. More...
 
static FontSizeVec_tGetFontSizeArray ()
 Get valid font size vector. More...
 

Protected Types

typedef std::list< const TGLFont * >::const_iterator FontList_ci
 
typedef std::list< const TGLFont * >::iterator FontList_i
 
typedef std::list< const TGLFont * > FontList_t
 
typedef std::map< TGLFont, Int_t >::iterator FontMap_i
 
typedef std::map< TGLFont, Int_tFontMap_t
 

Static Protected Member Functions

static void InitStatics ()
 Create a list of available font files and allowed font sizes. More...
 

Protected Attributes

FontMap_t fFontMap
 
FontList_t fFontTrash
 

Static Protected Attributes

static Int_t fgExtendedFontStart
 
static TObjArray fgFontFileArray
 
static FontSizeVec_t fgFontSizeArray
 
static Bool_t fgStaticInitDone = kFALSE
 

Private Member Functions

 TGLFontManager (const TGLFontManager &)
 
TGLFontManageroperator= (const TGLFontManager &)
 

#include <TGLFontManager.h>

Member Typedef Documentation

◆ FontList_ci

typedef std::list<const TGLFont*>::const_iterator TGLFontManager::FontList_ci
protected

Definition at line 134 of file TGLFontManager.h.

◆ FontList_i

typedef std::list<const TGLFont*>::iterator TGLFontManager::FontList_i
protected

Definition at line 133 of file TGLFontManager.h.

◆ FontList_t

typedef std::list<const TGLFont*> TGLFontManager::FontList_t
protected

Definition at line 132 of file TGLFontManager.h.

◆ FontMap_i

typedef std::map<TGLFont, Int_t>::iterator TGLFontManager::FontMap_i
protected

Definition at line 130 of file TGLFontManager.h.

◆ FontMap_t

typedef std::map<TGLFont, Int_t> TGLFontManager::FontMap_t
protected

Definition at line 129 of file TGLFontManager.h.

◆ FontSizeVec_t

typedef std::vector<Int_t> TGLFontManager::FontSizeVec_t

Definition at line 122 of file TGLFontManager.h.

Constructor & Destructor Documentation

◆ TGLFontManager() [1/2]

TGLFontManager::TGLFontManager ( const TGLFontManager )
private

◆ TGLFontManager() [2/2]

TGLFontManager::TGLFontManager ( )
inline

Definition at line 148 of file TGLFontManager.h.

◆ ~TGLFontManager()

TGLFontManager::~TGLFontManager ( )
virtual

Destructor.

Definition at line 430 of file TGLFontManager.cxx.

Member Function Documentation

◆ ClearFontTrash()

void TGLFontManager::ClearFontTrash ( )

Delete FTFFont objects registered for destruction.

Definition at line 700 of file TGLFontManager.cxx.

◆ GetExtendedFontStartIndex()

Int_t TGLFontManager::GetExtendedFontStartIndex ( )
static

Definition at line 570 of file TGLFontManager.cxx.

◆ GetFontFileArray()

TObjArray * TGLFontManager::GetFontFileArray ( )
static

Get id to file name map.

Definition at line 553 of file TGLFontManager.cxx.

◆ GetFontNameFromId()

const char * TGLFontManager::GetFontNameFromId ( Int_t  id)
static

Get font name from TAttAxis font id.

Definition at line 606 of file TGLFontManager.cxx.

◆ GetFontSize() [1/2]

Int_t TGLFontManager::GetFontSize ( Int_t  ds)
static

Get availabe font size.

Definition at line 582 of file TGLFontManager.cxx.

◆ GetFontSize() [2/2]

Int_t TGLFontManager::GetFontSize ( Int_t  ds,
Int_t  min,
Int_t  max 
)
static

Get availabe font size.

Definition at line 596 of file TGLFontManager.cxx.

◆ GetFontSizeArray()

TGLFontManager::FontSizeVec_t * TGLFontManager::GetFontSizeArray ( )
static

Get valid font size vector.

Definition at line 562 of file TGLFontManager.cxx.

◆ InitStatics()

void TGLFontManager::InitStatics ( )
staticprotected

Create a list of available font files and allowed font sizes.

Definition at line 624 of file TGLFontManager.cxx.

◆ operator=()

TGLFontManager& TGLFontManager::operator= ( const TGLFontManager )
private

◆ RegisterFont() [1/2]

void TGLFontManager::RegisterFont ( Int_t  size,
Int_t  file,
TGLFont::EMode  mode,
TGLFont out 
)

Provide font with given size, file and FTGL class.

Definition at line 443 of file TGLFontManager.cxx.

◆ RegisterFont() [2/2]

void TGLFontManager::RegisterFont ( Int_t  size,
const char *  name,
TGLFont::EMode  mode,
TGLFont out 
)

Get mapping from ttf id to font names. Table taken from TTF.cxx.

Definition at line 511 of file TGLFontManager.cxx.

◆ ReleaseFont()

void TGLFontManager::ReleaseFont ( TGLFont font)

Release font with given attributes.

Returns false if font has not been found in the managers font set.

Definition at line 534 of file TGLFontManager.cxx.

Member Data Documentation

◆ fFontMap

FontMap_t TGLFontManager::fFontMap
protected

Definition at line 136 of file TGLFontManager.h.

◆ fFontTrash

FontList_t TGLFontManager::fFontTrash
protected

Definition at line 137 of file TGLFontManager.h.

◆ fgExtendedFontStart

Int_t TGLFontManager::fgExtendedFontStart
staticprotected

Definition at line 141 of file TGLFontManager.h.

◆ fgFontFileArray

TObjArray TGLFontManager::fgFontFileArray
staticprotected

Definition at line 139 of file TGLFontManager.h.

◆ fgFontSizeArray

TGLFontManager::FontSizeVec_t TGLFontManager::fgFontSizeArray
staticprotected

Definition at line 143 of file TGLFontManager.h.

◆ fgStaticInitDone

Bool_t TGLFontManager::fgStaticInitDone = kFALSE
staticprotected

Definition at line 144 of file TGLFontManager.h.

Libraries for TGLFontManager:
[legend]

The documentation for this class was generated from the following files: