11 #ifndef ROOT_TMathText
12 #define ROOT_TMathText
17 class TMathTextRenderer;
19 class TMathText :
public TText,
public TAttFill {
22 TMathText &operator=(
const TMathText &);
24 void Render(
const Double_t x,
const Double_t y,
25 const Double_t size,
const Double_t angle,
26 const Char_t *t,
const Int_t length);
27 void GetSize(Double_t &x0, Double_t &y0,
28 Double_t &x1, Double_t &y1,
29 const Double_t size,
const Double_t angle,
30 const Char_t *t,
const Int_t length);
31 void GetAlignPoint(Double_t &x0, Double_t &y0,
32 const Double_t size,
const Double_t angle,
33 const Char_t *t,
const Int_t length,
41 Double_t x, Double_t y,
const char *text);
42 TMathText(
const TMathText &text);
43 virtual ~TMathText(
void);
44 void Copy(TObject &text)
const;
45 TMathText *DrawMathText(
46 Double_t x, Double_t y,
const char *text);
48 UInt_t &w, UInt_t &h, Bool_t angle = kFALSE);
49 Double_t GetXsize(
void);
50 Double_t GetYsize(
void);
51 virtual void Paint(Option_t *option =
"");
52 virtual void PaintMathText(
53 Double_t x, Double_t y, Double_t angle, Double_t size,
55 virtual void SavePrimitive(
56 std::ostream &out, Option_t *option =
"");
57 friend class TMathTextRenderer;