Logo ROOT  
Reference Guide
TGLText Class Reference

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.

Definition at line 19 of file TGLText.h.

Public Member Functions

 TGLText ()
 
 TGLText (Double_t x, Double_t y, Double_t z, const char *text)
 TGLext normal constructor. More...
 
virtual ~TGLText ()
 
void BBox (const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
 Calculate bounding-box for given string. More...
 
FTFont * GetFont ()
 
virtual TClassIsA () const
 
void PaintBBox (const char *text)
 
void PaintGLText (Double_t x, Double_t y, Double_t z, const char *text)
 Draw text. More...
 
void SetGLTextAngles (Double_t a1, Double_t a2, Double_t a3)
 Set the text rotation angles. More...
 
void SetGLTextFont (Font_t fontnumber)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttText
 TAttText ()
 AttText default constructor. More...
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor. More...
 
virtual ~TAttText ()
 AttText destructor. More...
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText. More...
 
virtual Short_t GetTextAlign () const
 Return the text alignment. More...
 
virtual Float_t GetTextAngle () const
 Return the text angle. More...
 
virtual Color_t GetTextColor () const
 Return the text color. More...
 
virtual Font_t GetTextFont () const
 Return the text font. More...
 
virtual Float_t GetTextSize () const
 Return the text size. More...
 
virtual Float_t GetTextSizePercent (Float_t size)
 Return the text in percent of the pad size. More...
 
virtual TClassIsA () const
 
virtual void Modify ()
 Change current text attributes if necessary. More...
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values. More...
 
virtual void SaveTextAttributes (std::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)
 Save text attributes as C++ statement(s) on output stream out. More...
 
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment. More...
 
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle. More...
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes. More...
 
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color. More...
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent marker color. More...
 
virtual void SetTextFont (Font_t tfont=62)
 Set the text font. More...
 
virtual void SetTextSize (Float_t tsize=1)
 Set the text size. More...
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixel. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttText
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

 TGLText (const TGLText &)
 
TGLTextoperator= (const TGLText &)
 

Private Attributes

Double_t fAngle1
 
Double_t fAngle2
 
Double_t fAngle3
 
FTFont * fGLTextFont
 
Double_t fX
 
Double_t fY
 
Double_t fZ
 

Additional Inherited Members

- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment. More...
 
Float_t fTextAngle
 Text angle. More...
 
Color_t fTextColor
 Text color. More...
 
Font_t fTextFont
 Text font. More...
 
Float_t fTextSize
 Text size. More...
 

#include <TGLText.h>

Inheritance diagram for TGLText:
[legend]

Constructor & Destructor Documentation

◆ TGLText() [1/3]

TGLText::TGLText ( const TGLText )
private

◆ TGLText() [2/3]

TGLText::TGLText ( )

Definition at line 54 of file TGLText.cxx.

◆ TGLText() [3/3]

TGLText::TGLText ( Double_t  x,
Double_t  y,
Double_t  z,
const char *  text 
)

TGLext normal constructor.

Definition at line 70 of file TGLText.cxx.

◆ ~TGLText()

TGLText::~TGLText ( )
virtual

Definition at line 85 of file TGLText.cxx.

Member Function Documentation

◆ BBox()

void TGLText::BBox ( const char *  string,
float &  llx,
float &  lly,
float &  llz,
float &  urx,
float &  ury,
float &  urz 
)

Calculate bounding-box for given string.

Definition at line 156 of file TGLText.cxx.

◆ Class()

static TClass * TGLText::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLText::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TGLText::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 46 of file TGLText.h.

◆ DeclFileName()

static const char * TGLText::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 46 of file TGLText.h.

◆ GetFont()

FTFont * TGLText::GetFont ( )
inline

Definition at line 37 of file TGLText.h.

◆ IsA()

virtual TClass * TGLText::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TAttText.

Definition at line 46 of file TGLText.h.

◆ operator=()

TGLText & TGLText::operator= ( const TGLText )
private

◆ PaintBBox()

void TGLText::PaintBBox ( const char *  text)

Definition at line 141 of file TGLText.cxx.

◆ PaintGLText()

void TGLText::PaintGLText ( Double_t  x,
Double_t  y,
Double_t  z,
const char *  text 
)

Draw text.

Definition at line 94 of file TGLText.cxx.

◆ SetGLTextAngles()

void TGLText::SetGLTextAngles ( Double_t  a1,
Double_t  a2,
Double_t  a3 
)

Set the text rotation angles.

Definition at line 165 of file TGLText.cxx.

◆ SetGLTextFont()

void TGLText::SetGLTextFont ( Font_t  fontnumber)

Definition at line 175 of file TGLText.cxx.

◆ Streamer()

virtual void TGLText::Streamer ( TBuffer )
virtual

Reimplemented from TAttText.

◆ StreamerNVirtual()

void TGLText::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 46 of file TGLText.h.

Member Data Documentation

◆ fAngle1

Double_t TGLText::fAngle1
private

Definition at line 27 of file TGLText.h.

◆ fAngle2

Double_t TGLText::fAngle2
private

Definition at line 28 of file TGLText.h.

◆ fAngle3

Double_t TGLText::fAngle3
private

Definition at line 29 of file TGLText.h.

◆ fGLTextFont

FTFont* TGLText::fGLTextFont
private

Definition at line 30 of file TGLText.h.

◆ fX

Double_t TGLText::fX
private

Definition at line 24 of file TGLText.h.

◆ fY

Double_t TGLText::fY
private

Definition at line 25 of file TGLText.h.

◆ fZ

Double_t TGLText::fZ
private

Definition at line 26 of file TGLText.h.

Libraries for TGLText:
[legend]

The documentation for this class was generated from the following files: