Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:01

0001 // @(#)root/gl:$Id$
0002 // Author:  Olivier Couet 12/04/2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGLText
0013 #define ROOT_TGLText
0014 
0015 #include "TAttText.h"
0016 
0017 class FTFont;
0018 
0019 class TGLText : public TAttText {
0020 private:
0021    TGLText(const TGLText&) = delete;
0022    TGLText& operator=(const TGLText&) = delete;
0023 
0024    Double_t fX; // X position
0025    Double_t fY; // Y position
0026    Double_t fZ; // Z position
0027    Double_t fAngle1; // 1st angle.
0028    Double_t fAngle2; // 2nd angle.
0029    Double_t fAngle3; // 3rd angle.
0030    FTFont* fGLTextFont;
0031 
0032 public:
0033    TGLText();
0034    TGLText(Double_t x, Double_t y, Double_t z, const char *text);
0035    ~TGLText() override;
0036 
0037    FTFont* GetFont() { return fGLTextFont; }
0038 
0039    void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3);
0040    void SetGLTextFont(Font_t fontnumber);
0041    void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text);
0042    void PaintBBox(const char *text);
0043    void BBox(const char* string, float& llx, float& lly, float& llz,
0044                                  float& urx, float& ury, float& urz);
0045 
0046    ClassDefOverride(TGLText,0) // a GL text
0047 };
0048 
0049 #endif