Logo ROOT   6.10/09
Reference Guide
TGLText.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Olivier Couet 12/04/2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGLText
13 #define ROOT_TGLText
14 
15 #include "TAttText.h"
16 
17 class FTFont;
18 
19 class TGLText : public TAttText {
20 private:
21  TGLText(const TGLText&); // Not implemented
22  TGLText& operator=(const TGLText&); // Not implemented
23 
24  Double_t fX; // X position
25  Double_t fY; // Y position
26  Double_t fZ; // Z position
27  Double_t fAngle1; // 1st angle.
28  Double_t fAngle2; // 2nd angle.
29  Double_t fAngle3; // 3rd angle.
30  FTFont* fGLTextFont;
31 
32 public:
33  TGLText();
34  TGLText(Double_t x, Double_t y, Double_t z, const char *text);
35  virtual ~TGLText();
36 
37  FTFont* GetFont() { return fGLTextFont; }
38 
39  void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3);
40  void SetGLTextFont(Font_t fontnumber);
41  void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text);
42  void PaintBBox(const char *text);
43  void BBox(const char* string, float& llx, float& lly, float& llz,
44  float& urx, float& ury, float& urz);
45 
46  ClassDef(TGLText,0) // a GL text
47 };
48 
49 #endif
void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text)
Draw text.
Definition: TGLText.cxx:96
Double_t fX
Definition: TGLText.h:24
GL Text.
Definition: TGLText.h:19
void PaintBBox(const char *text)
Definition: TGLText.cxx:143
FTFont * GetFont()
Definition: TGLText.h:37
Double_t fAngle1
Definition: TGLText.h:27
short Font_t
Definition: RtypesCore.h:75
void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3)
Set the text rotation angles.
Definition: TGLText.cxx:167
TGLText & operator=(const TGLText &)
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:297
void BBox(const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
Calculate bounding-box for given string.
Definition: TGLText.cxx:158
FTFont * fGLTextFont
Definition: TGLText.h:30
Double_t fY
Definition: TGLText.h:25
virtual ~TGLText()
Definition: TGLText.cxx:87
Text Attributes class.
Definition: TAttText.h:18
double Double_t
Definition: RtypesCore.h:55
TText * text
Double_t fAngle2
Definition: TGLText.h:28
Double_t y[n]
Definition: legend1.C:17
TGLText()
Definition: TGLText.cxx:56
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
void SetGLTextFont(Font_t fontnumber)
Definition: TGLText.cxx:177
Double_t fZ
Definition: TGLText.h:26
Double_t fAngle3
Definition: TGLText.h:29