ROOT
6.07/01
Reference Guide
|
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_t > | FontSizeVec_t |
Public Member Functions | |
TGLFontManager () | |
virtual | ~TGLFontManager () |
Destructor. 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... | |
void | ClearFontTrash () |
Delete FTFFont objects registered for destruction. More... | |
ClassDef (TGLFontManager, 0) | |
Static Public Member Functions | |
static TObjArray * | GetFontFileArray () |
Get id to file name map. More... | |
static FontSizeVec_t * | GetFontSizeArray () |
Get valid font size vector. More... | |
static Int_t | GetExtendedFontStartIndex () |
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 const char * | GetFontNameFromId (Int_t) |
Get font name from TAttAxis font id. More... | |
Protected Types | |
typedef std::map< TGLFont, Int_t > | FontMap_t |
typedef std::map< TGLFont, Int_t >::iterator | FontMap_i |
typedef std::list< const TGLFont * > | FontList_t |
typedef std::list< const TGLFont * >::iterator | FontList_i |
typedef std::list< const TGLFont * >::const_iterator | FontList_ci |
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 TObjArray | fgFontFileArray |
static Int_t | fgExtendedFontStart |
static FontSizeVec_t | fgFontSizeArray |
static Bool_t | fgStaticInitDone = kFALSE |
Private Member Functions | |
TGLFontManager (const TGLFontManager &) | |
TGLFontManager & | operator= (const TGLFontManager &) |
#include <TGLFontManager.h>
|
protected |
Definition at line 134 of file TGLFontManager.h.
|
protected |
Definition at line 133 of file TGLFontManager.h.
|
protected |
Definition at line 132 of file TGLFontManager.h.
|
protected |
Definition at line 130 of file TGLFontManager.h.
|
protected |
Definition at line 129 of file TGLFontManager.h.
typedef std::vector<Int_t> TGLFontManager::FontSizeVec_t |
Definition at line 122 of file TGLFontManager.h.
|
private |
|
inline |
Definition at line 148 of file TGLFontManager.h.
|
virtual |
Destructor.
Definition at line 429 of file TGLFontManager.cxx.
TGLFontManager::ClassDef | ( | TGLFontManager | , |
0 | |||
) |
void TGLFontManager::ClearFontTrash | ( | ) |
Delete FTFFont objects registered for destruction.
Definition at line 703 of file TGLFontManager.cxx.
Referenced by TGLContextIdentity::DeleteGLResources().
|
static |
Definition at line 573 of file TGLFontManager.cxx.
Referenced by TGLPadPainter::DrawTextHelper().
|
static |
Get id to file name map.
Definition at line 556 of file TGLFontManager.cxx.
Referenced by TGLPadPainter::DrawTextHelper(), RegisterFont(), TEveText::SetFontFile(), and TEveTextEditor::TEveTextEditor().
|
static |
Get font name from TAttAxis font id.
Definition at line 609 of file TGLFontManager.cxx.
Referenced by TEveProjectionAxesGL::DirectDraw(), TGLPadPainter::DrawTextHelper(), and TGLAxisPainter::PaintAxis().
Get availabe font size.
Definition at line 585 of file TGLFontManager.cxx.
Referenced by GetFontSize(), RegisterFont(), and TGLAnnotation::Render().
Get availabe font size.
Definition at line 599 of file TGLFontManager.cxx.
|
static |
Get valid font size vector.
Definition at line 565 of file TGLFontManager.cxx.
Referenced by TEveText::SetFontSize(), and TEveTextEditor::TEveTextEditor().
|
staticprotected |
Create a list of available font files and allowed font sizes.
Definition at line 627 of file TGLFontManager.cxx.
Referenced by GetExtendedFontStartIndex(), GetFontFileArray(), GetFontNameFromId(), GetFontSize(), GetFontSizeArray(), and RegisterFont().
|
private |
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 442 of file TGLFontManager.cxx.
Referenced by TGLPadPainter::DrawTextHelper(), RegisterFont(), and TGLRnrCtx::RegisterFontNoScale().
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 514 of file TGLFontManager.cxx.
Release font with given attributes.
Returns false if font has not been found in the managers font set.
Definition at line 537 of file TGLFontManager.cxx.
Referenced by TGLRnrCtx::ReleaseFont(), and TGLFont::~TGLFont().
|
protected |
Definition at line 136 of file TGLFontManager.h.
Referenced by ClearFontTrash(), RegisterFont(), ReleaseFont(), and ~TGLFontManager().
|
protected |
Definition at line 137 of file TGLFontManager.h.
Referenced by ClearFontTrash(), RegisterFont(), and ReleaseFont().
|
staticprotected |
Definition at line 141 of file TGLFontManager.h.
Referenced by GetExtendedFontStartIndex(), InitStatics(), and RegisterFont().
|
staticprotected |
Definition at line 139 of file TGLFontManager.h.
Referenced by GetFontFileArray(), GetFontNameFromId(), InitStatics(), and RegisterFont().
|
staticprotected |
Definition at line 143 of file TGLFontManager.h.
Referenced by GetFontSize(), GetFontSizeArray(), and InitStatics().
Definition at line 144 of file TGLFontManager.h.
Referenced by GetExtendedFontStartIndex(), GetFontFileArray(), GetFontNameFromId(), GetFontSize(), GetFontSizeArray(), InitStatics(), and RegisterFont().