Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17class FTFont;
18
19class TGLText : public TAttText {
20private:
21 TGLText(const TGLText&) = delete;
22 TGLText& operator=(const TGLText&) = delete;
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
32public:
33 TGLText();
34 TGLText(Double_t x, Double_t y, Double_t z, const char *text);
35 ~TGLText() override;
36
37 FTFont* GetFont() { return fGLTextFont; }
38
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 ClassDefOverride(TGLText,0) // a GL text
47};
48
49#endif
short Font_t
Definition RtypesCore.h:88
double Double_t
Definition RtypesCore.h:59
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t fontnumber
Option_t Option_t TPoint TPoint const char text
Text Attributes class.
Definition TAttText.h:18
GL Text.
Definition TGLText.h:19
void PaintBBox(const char *text)
Definition TGLText.cxx:141
void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3)
Set the text rotation angles.
Definition TGLText.cxx:165
Double_t fY
Definition TGLText.h:25
void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text)
Draw text.
Definition TGLText.cxx:94
TGLText()
Definition TGLText.cxx:54
~TGLText() override
Definition TGLText.cxx:85
Double_t fAngle3
Definition TGLText.h:29
Double_t fZ
Definition TGLText.h:26
TGLText & operator=(const TGLText &)=delete
TGLText(const TGLText &)=delete
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:156
Double_t fX
Definition TGLText.h:24
Double_t fAngle2
Definition TGLText.h:28
Double_t fAngle1
Definition TGLText.h:27
FTFont * GetFont()
Definition TGLText.h:37
FTFont * fGLTextFont
Definition TGLText.h:30
void SetGLTextFont(Font_t fontnumber)
Definition TGLText.cxx:175
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17