![]() |
ROOT
6.06/09
Reference Guide
|
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.
Public Member Functions | |
| TGLText () | |
| TGLText (Double_t x, Double_t y, Double_t z, const char *text) | |
| TGLext normal constructor. More... | |
| virtual | ~TGLText () |
| FTFont * | GetFont () |
| void | SetGLTextAngles (Double_t a1, Double_t a2, Double_t a3) |
| Set the text rotation angles. More... | |
| void | SetGLTextFont (Font_t fontnumber) |
| void | PaintGLText (Double_t x, Double_t y, Double_t z, const char *text) |
| Draw text. More... | |
| 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. More... | |
Public Member Functions inherited from TAttText | |
| TAttText () | |
| 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 |
| virtual Float_t | GetTextAngle () const |
| virtual Color_t | GetTextColor () const |
| virtual Font_t | GetTextFont () const |
| virtual Float_t | GetTextSize () 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 | SetTextAttributes () |
| Invoke the DialogCanvas Text attributes. More... | |
| virtual void | SetTextAlign (Short_t align=11) |
| virtual void | SetTextAngle (Float_t tangle=0) |
| virtual void | SetTextColor (Color_t tcolor=1) |
| virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
| Set a transparent marker color. More... | |
| virtual void | SetTextFont (Font_t tfont=62) |
| virtual void | SetTextSize (Float_t tsize=1) |
| virtual void | SetTextSizePixels (Int_t npixels) |
| Set the text size in pixels. More... | |
Private Member Functions | |
| TGLText (const TGLText &) | |
| TGLText & | operator= (const TGLText &) |
Private Attributes | |
| Double_t | fX |
| Double_t | fY |
| Double_t | fZ |
| Double_t | fAngle1 |
| Double_t | fAngle2 |
| Double_t | fAngle3 |
| FTFont * | fGLTextFont |
Additional Inherited Members | |
Protected Attributes inherited from TAttText | |
| Float_t | fTextAngle |
| Float_t | fTextSize |
| Short_t | fTextAlign |
| Color_t | fTextColor |
| Font_t | fTextFont |
#include <TGLText.h>
Inheritance diagram for TGLText:
Collaboration diagram for TGLText:
|
private |
| TGLText::TGLText | ( | ) |
TGLext normal constructor.
Definition at line 72 of file TGLText.cxx.
|
virtual |
Definition at line 87 of file TGLText.cxx.
| 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 158 of file TGLText.cxx.
| void TGLText::PaintBBox | ( | const char * | text | ) |
Definition at line 143 of file TGLText.cxx.
Set the text rotation angles.
Definition at line 167 of file TGLText.cxx.
Referenced by TGLAxis::PaintGLAxisLabels().
Definition at line 177 of file TGLText.cxx.
Referenced by TGLAxis::PaintGLAxisLabels(), and TGLText().
|
private |
Definition at line 29 of file TGLText.h.
Referenced by PaintGLText(), SetGLTextAngles(), and TGLText().
|
private |
Definition at line 30 of file TGLText.h.
Referenced by PaintGLText(), SetGLTextAngles(), and TGLText().
|
private |
Definition at line 31 of file TGLText.h.
Referenced by PaintGLText(), SetGLTextAngles(), and TGLText().
|
private |
Definition at line 32 of file TGLText.h.
Referenced by BBox(), GetFont(), PaintBBox(), PaintGLText(), SetGLTextFont(), TGLText(), and ~TGLText().