ROOT logo
// @(#)root/gl:$Id: TGLText.h 21807 2008-01-22 15:46:23Z matevz $
// Author:  Olivier Couet 12/04/2007

/*************************************************************************
 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGLText
#define ROOT_TGLText

#ifndef ROOT_TAttText
#include "TAttText.h"
#endif

class FTFont;

class TGLText : public TAttText {
private:
   TGLText(const TGLText&);            // Not implemented
   TGLText& operator=(const TGLText&); // Not implemented

   Double_t fX; // X position
   Double_t fY; // Y position
   Double_t fZ; // Z position
   Double_t fAngle1; // 1st angle.
   Double_t fAngle2; // 2nd angle.
   Double_t fAngle3; // 3rd angle.
   FTFont* fGLTextFont;

public:
   TGLText();
   TGLText(Double_t x, Double_t y, Double_t z, const char *text);
   virtual ~TGLText();

   FTFont* GetFont() { return fGLTextFont; }

   void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3);
   void SetGLTextFont(Font_t fontnumber);
   void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text);
   void PaintBBox(const char *text);
   void BBox(const char* string, float& llx, float& lly, float& llz,
                                 float& urx, float& ury, float& urz);

   ClassDef(TGLText,0) // a GL text
};

#endif
 TGLText.h:1
 TGLText.h:2
 TGLText.h:3
 TGLText.h:4
 TGLText.h:5
 TGLText.h:6
 TGLText.h:7
 TGLText.h:8
 TGLText.h:9
 TGLText.h:10
 TGLText.h:11
 TGLText.h:12
 TGLText.h:13
 TGLText.h:14
 TGLText.h:15
 TGLText.h:16
 TGLText.h:17
 TGLText.h:18
 TGLText.h:19
 TGLText.h:20
 TGLText.h:21
 TGLText.h:22
 TGLText.h:23
 TGLText.h:24
 TGLText.h:25
 TGLText.h:26
 TGLText.h:27
 TGLText.h:28
 TGLText.h:29
 TGLText.h:30
 TGLText.h:31
 TGLText.h:32
 TGLText.h:33
 TGLText.h:34
 TGLText.h:35
 TGLText.h:36
 TGLText.h:37
 TGLText.h:38
 TGLText.h:39
 TGLText.h:40
 TGLText.h:41
 TGLText.h:42
 TGLText.h:43
 TGLText.h:44
 TGLText.h:45
 TGLText.h:46
 TGLText.h:47
 TGLText.h:48
 TGLText.h:49
 TGLText.h:50
 TGLText.h:51