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:
TGLFont()
TGLFont(const TGLFont& o)
TGLFont(Int_t size, Int_t font, TGLFont::EMode mode, FTFont* f = 0, TGLFontManager* mng = 0)
virtual~TGLFont()
voidBBox(const Text_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_tGetDepth() const
Int_tGetFile() const
const FTFont*GetFont() const
const TGLFontManager*GetManager() const
TGLFont::EModeGetMode() const
Int_tGetSize() const
Int_tGetTrashCount() const
Int_tIncTrashCount() const
virtual TClass*IsA() const
Bool_toperator<(const TGLFont& o) const
virtual voidPostRender() const
virtual voidPreRender(Bool_t autoLight = kTRUE, Bool_t lightOn = kFALSE) const
voidRender(const Text_t* txt) const
voidRenderBitmap(const Text_t* txt, Float_t x, Float_t y, Float_t zs, TGLFont::ETextAlign_e align) const
voidSetDepth(Float_t d)
voidSetFont(FTFont* f)
voidSetManager(TGLFontManager* mng)
voidSetTrashCount(Int_t c) const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TGLFont&operator=(const TGLFont& o)

Data Members

public:
enum EMode { kUndef
kBitmap
kPixmap
kTexture
kOutline
kPolygon
kExtrude
};
enum ETextAlign_e { kCenterDown
kCenterUp
kLeft
kRight
};
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.
void BBox(const Text_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 Text_t* txt) const
 Render text.
void RenderBitmap(const Text_t* txt, Float_t x, Float_t y, Float_t zs, TGLFont::ETextAlign_e align) const
 Render text at the given position. Offset depends of text aligment.
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; }
Bool_t operator<(const TGLFont& o) const

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.