ROOT logo
ROOT » GRAF3D » GL » TGLText

class TGLText: public TAttText


GL Text

To draw a 3D text in a GL window. This class uses uses FTGL to render text. FTGL is a package making the interface between the Free Type fonts and GL.
 

Function Members (Methods)

public:
TGLText()
TGLText(Double_t x, Double_t y, Double_t z, const char* text)
virtual~TGLText()
voidBBox(const char* string, float& llx, float& lly, float& llz, float& urx, float& ury, float& urz)
static TClass*Class()
static TClass*TAttText::Class()
voidTAttText::Copy(TAttText& atttext) const
FTFont*GetFont()
virtual Short_tTAttText::GetTextAlign() const
virtual Float_tTAttText::GetTextAngle() const
virtual Color_tTAttText::GetTextColor() const
virtual Font_tTAttText::GetTextFont() const
virtual Float_tTAttText::GetTextSize() const
virtual TClass*IsA() const
virtual TClass*TAttText::IsA() const
virtual voidTAttText::Modify()
TAttText&TAttText::operator=(const TAttText&)
voidPaintBBox(const char* text)
voidPaintGLText(Double_t x, Double_t y, Double_t z, const char* text)
virtual voidTAttText::ResetAttText(Option_t* toption = "")
virtual voidTAttText::SaveTextAttributes(ostream& out, const char* name, Int_t alidef = 12, Float_t angdef = 0, Int_t coldef = 1, Int_t fondef = 61, Float_t sizdef = 1)
voidSetGLTextAngles(Double_t a1, Double_t a2, Double_t a3)
voidSetGLTextFont(Font_t fontnumber)
virtual voidTAttText::SetTextAlign(Short_t align = 11)
virtual voidTAttText::SetTextAngle(Float_t tangle = 0)MENU
virtual voidTAttText::SetTextAttributes()MENU
virtual voidTAttText::SetTextColor(Color_t tcolor = 1)
virtual voidTAttText::SetTextFont(Font_t tfont = 62)
virtual voidTAttText::SetTextSize(Float_t tsize = 1)
virtual voidTAttText::SetTextSizePixels(Int_t npixels)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTAttText::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
virtual voidTAttText::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTAttText::StreamerNVirtual(TBuffer& b)
private:
TGLText(const TGLText&)
TGLText&operator=(const TGLText&)

Data Members

private:
Double_tfAngle11st angle.
Double_tfAngle22nd angle.
Double_tfAngle33rd angle.
FTFont*fGLTextFont
Double_tfXX position
Double_tfYY position
Double_tfZZ position

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLText()
TGLText(Double_t x, Double_t y, Double_t z, const char* text)
 TGLext normal constructor.
~TGLText()
void PaintGLText(Double_t x, Double_t y, Double_t z, const char* text)
 Draw text
void PaintBBox(const char* text)
void BBox(const char* string, float& llx, float& lly, float& llz, float& urx, float& ury, float& urz)
 Calculate bounding-box for given string.
void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3)
 Set the text rotation angles.
void SetGLTextFont(Font_t fontnumber)
TGLText(const TGLText& )
TGLText& operator=(const TGLText& )
FTFont* GetFont()
{ return fGLTextFont; }