Logo ROOT   6.08/07
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 #ifndef ROOT_TAttText
16 #include "TAttText.h"
17 #endif
18 
19 class FTFont;
20 
21 class TGLText : public TAttText {
22 private:
23  TGLText(const TGLText&); // Not implemented
24  TGLText& operator=(const TGLText&); // Not implemented
25 
26  Double_t fX; // X position
27  Double_t fY; // Y position
28  Double_t fZ; // Z position
29  Double_t fAngle1; // 1st angle.
30  Double_t fAngle2; // 2nd angle.
31  Double_t fAngle3; // 3rd angle.
32  FTFont* fGLTextFont;
33 
34 public:
35  TGLText();
36  TGLText(Double_t x, Double_t y, Double_t z, const char *text);
37  virtual ~TGLText();
38 
39  FTFont* GetFont() { return fGLTextFont; }
40 
41  void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3);
42  void SetGLTextFont(Font_t fontnumber);
43  void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text);
44  void PaintBBox(const char *text);
45  void BBox(const char* string, float& llx, float& lly, float& llz,
46  float& urx, float& ury, float& urz);
47 
48  ClassDef(TGLText,0) // a GL text
49 };
50 
51 #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:26
GL Text.
Definition: TGLText.h:21
void PaintBBox(const char *text)
Definition: TGLText.cxx:143
FTFont * GetFont()
Definition: TGLText.h:39
Double_t fAngle1
Definition: TGLText.h:29
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:254
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:32
Double_t fY
Definition: TGLText.h:27
virtual ~TGLText()
Definition: TGLText.cxx:87
Text Attributes class.
Definition: TAttText.h:24
double Double_t
Definition: RtypesCore.h:55
TText * text
Double_t fAngle2
Definition: TGLText.h:30
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:28
Double_t fAngle3
Definition: TGLText.h:31