static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
To draw Mathematical Formula.
virtual void SetLimitIndiceSize(Int_t limitFactorSize)
Set limit for text resizing of subscripts and superscripts.
Int_t fPos
! Current position in array fTabSize;
Double_t GetXsize()
Return size of the formula along X in pad coordinates.
Double_t GetHeight() const
Return height of current pad in pixels.
Double_t fFactorPos
! Relative position of subscripts and superscripts
void DrawCircle(Double_t x1, Double_t y1, Double_t r, TextSpec_t spec)
Draw an arc of ellipse in a Latex formula (right or left parenthesis)
Int_t fLimitFactorSize
lower bound for subscripts/superscripts size
virtual void SetIndiceSize(Double_t factorSize)
Set relative size of subscripts and superscripts.
FormSize_t * fTabSize
! array of values for the different zones
Int_t PaintLatex1(Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
Drawing function.
Double_t fOriginSize
Font size of the starting font.
Double_t GetYsize()
Return size of the formula along Y in pad coordinates.
TLatexFormSize Anal1(TextSpec_t spec, const Char_t *t, Int_t length)
Analyse function.
Int_t fTabMax
! Maximum allocation for array fTabSize;
TLatexFormSize FirstParse(Double_t angle, Double_t size, const Char_t *text)
First parsing of the analyse sequence.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
TLatexFormSize Readfs()
Read fs in fTabSize.
void Copy(TObject &text) const
Copy this TLatex object to another TLatex.
@ kTextNDC
The text postion is in NDC coordinates.
TLatex * DrawLatexNDC(Double_t x, Double_t y, const char *text)
Draw this TLatex with new coordinates in NDC.
void GetBoundingBox(UInt_t &w, UInt_t &h, Bool_t angle=kFALSE)
Return text size in pixels.
virtual ~TLatex()
Destructor.
virtual void PaintLatex(Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
Main drawing function.
TLatex()
Default constructor.
Bool_t fShow
! is true during the second pass (Painting)
TLatex & operator=(const TLatex &)
assignment operator
void DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2, TextSpec_t spec)
Draw a line in a Latex formula.
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
Double_t fFactorSize
! Relative size of subscripts and superscripts
const Char_t * fError
! error code
Bool_t fItalic
! Currently inside italic operator
virtual void Paint(Option_t *option="")
Paint.
TLatexFormSize Analyse(Double_t x, Double_t y, TextSpec_t spec, const Char_t *t, Int_t length)
Analyse and paint the TLatex formula.
Int_t CheckLatexSyntax(TString &text)
Check if the Latex syntax is correct.
void DrawParenthesis(Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, TextSpec_t spec)
Draw an arc of ellipse in a Latex formula (right or left parenthesis)
void Savefs(TLatexFormSize *fs)
Save fs values in array fTabSize.
Mother of all ROOT objects.
Base class for several text objects.
Short_t Max(Short_t a, Short_t b)
TLatex helper struct holding the attributes of a piece of text.