Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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