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
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
};
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(const TGLFont& o)
 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 PreRender(Bool_t autoLight = kTRUE, Bool_t lightOn = kFALSE) const
 Set-up GL state before FTFont rendering.
void PostRender()
 Reset GL state after FTFont rendering.
TGLFont& operator=(const TGLFont& o)
Int_t GetSize()
{ return fSize;}
Int_t GetFile()
{ return fFile;}
EMode GetMode()
{ return fMode;}
Int_t GetTrashCount()
{ return fTrashCount; }
void SetTrashCount(Int_t c) const
{ fTrashCount = c; }
Int_t IncTrashCount()
{ return ++fTrashCount; }
void SetFont(FTFont* f)
{ fFont =f;}
const FTFont* GetFont()
{ return fFont; }
void SetManager(TGLFontManager* mng)
{fManager = mng;}
const TGLFontManager* GetManager()
{ return fManager; }
Float_t GetDepth()
{ return fDepth;}
void SetDepth(Float_t d)
{ fDepth = d; }
Bool_t operator<(const TGLFont& o) const

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.