ROOT » GRAF3D » GL » TGLFont

class TGLFont

 TGLFont

 A wrapper class for FTFont.
 Holds pointer to FTFont object and its description: face size, font file
 and class ID. It  wraps Render and BBox functions.

Function Members (Methods)

public:
virtual~TGLFont()
voidBBox(const char* txt, Float_t& llx, Float_t& lly, Float_t& llz, Float_t& urx, Float_t& ury, Float_t& urz) const
voidBBox(const wchar_t* txt, Float_t& llx, Float_t& lly, Float_t& llz, Float_t& urx, Float_t& ury, Float_t& urz) const
static TClass*Class()
voidCopyAttributes(const TGLFont& o)
Float_tGetAscent() const
Float_tGetDepth() const
Float_tGetDescent() const
Int_tGetFile() const
const FTFont*GetFont() const
Float_tGetLineHeight() const
const TGLFontManager*GetManager() const
TGLFont::EModeGetMode() const
Int_tGetSize() const
Int_tGetTrashCount() const
Int_tIncTrashCount() const
virtual TClass*IsA() const
voidMeasureBaseLineParams(Float_t& ascent, Float_t& descent, Float_t& line_height, const char* txt = "Xj") const
Bool_toperator<(const TGLFont& o) const
virtual voidPostRender() const
virtual voidPreRender(Bool_t autoLight = kTRUE, Bool_t lightOn = kFALSE) const
voidRender(const TString& txt) const
voidRender(const char* txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
voidRender(const wchar_t* txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
voidRender(const TString& txt, Float_t x, Float_t y, Float_t z, TGLFont::ETextAlignH_e alignH, TGLFont::ETextAlignV_e alignV) const
voidSetDepth(Float_t d)
voidSetFont(FTFont* f)
voidSetManager(TGLFontManager* mng)
voidSetTrashCount(Int_t c) const
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLFont()
TGLFont(const TGLFont& o)
TGLFont(Int_t size, Int_t font, TGLFont::EMode mode, FTFont* f = 0, TGLFontManager* mng = 0)
private:
TGLFont&operator=(const TGLFont& o)

Data Members

public:
static TGLFont::EModekBitmap
static TGLFont::ETextAlignV_ekBottom
static TGLFont::ETextAlignH_ekCenterH
static TGLFont::ETextAlignV_ekCenterV
static TGLFont::EModekExtrude
static TGLFont::ETextAlignH_ekLeft
static TGLFont::EModekOutline
static TGLFont::EModekPixmap
static TGLFont::EModekPolygon
static TGLFont::ETextAlignH_ekRight
static TGLFont::EModekTexture
static TGLFont::ETextAlignV_ekTop
static TGLFont::EModekUndef
protected:
Int_tfFilefree-type file name
TGLFont::EModefModefree-type FTGL class id
Int_tfSizefree-type face size
Int_tfTrashCount
private:
Float_tfDepthdepth of extruded fonts, enforced at render time.
FTFont*fFontFTGL font.
TGLFontManager*fManagerFont manager.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLFont()
 Constructor.
TGLFont(Int_t size, Int_t font, TGLFont::EMode mode, FTFont* f = 0, TGLFontManager* mng = 0)
 Constructor.
TGLFont(const TGLFont& o)
 Assignment operator.
~TGLFont()
Destructor
void CopyAttributes(const TGLFont& o)
 Assignment operator.
Float_t GetAscent() const
 Get font's ascent.
Float_t GetDescent() const
 Get font's descent. The returned value is positive.
Float_t GetLineHeight() const
 Get font's line-height.
void MeasureBaseLineParams(Float_t& ascent, Float_t& descent, Float_t& line_height, const char* txt = "Xj") const
 Measure font's base-line parameters from the passed text.
 Note that the measured parameters are not the same as the ones
 returned by get-functions - those were set by the font designer.
void BBox(const char* txt, Float_t& llx, Float_t& lly, Float_t& llz, Float_t& urx, Float_t& ury, Float_t& urz) const
 Get bounding box.
void BBox(const wchar_t* txt, Float_t& llx, Float_t& lly, Float_t& llz, Float_t& urx, Float_t& ury, Float_t& urz) const
 Get bounding box.
void Render(const wchar_t* txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
void Render(const char* txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
void Render(const TString& txt) const
 Render text.
void PreRender(Bool_t autoLight = kTRUE, Bool_t lightOn = kFALSE) const
 Set-up GL state before FTFont rendering.
void PostRender() const
 Reset GL state after FTFont rendering.
TGLFont& operator=(const TGLFont& o)
Int_t GetSize() const
{ return fSize;}
Int_t GetFile() const
{ return fFile;}
EMode GetMode() const
{ return fMode;}
Int_t GetTrashCount() const
{ return fTrashCount; }
void SetTrashCount(Int_t c) const
{ fTrashCount = c; }
Int_t IncTrashCount() const
{ return ++fTrashCount; }
void SetFont(FTFont* f)
{ fFont =f;}
const FTFont* GetFont() const
{ return fFont; }
void SetManager(TGLFontManager* mng)
{ fManager = mng; }
const TGLFontManager* GetManager() const
{ return fManager; }
Float_t GetDepth() const
{ return fDepth; }
void SetDepth(Float_t d)
{ fDepth = d; }
void Render(const char* txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
Bool_t operator<(const TGLFont& o) const