63 : fWidth(form.fWidth), fOver(form.fOver), fUnder(form.fUnder) { }
Int_t fLimitFactorSize
Relative position of subscripts and superscripts.
Double_t fOriginSize
array of values for the different zones
TLatex & operator=(const TLatex &)
Currently inside italic operator.
Int_t PaintLatex1(Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
Drawing function.
TLatex * DrawLatexNDC(Double_t x, Double_t y, const char *text)
Draw this TLatex with new coordinates in NDC.
static const double x2[5]
void DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2, TextSpec_t spec)
Draw a line in a Latex formula.
Double_t GetYsize()
Return size of the formula along Y in pad coordinates.
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)
TLatexFormSize Anal1(TextSpec_t spec, const Char_t *t, Int_t length)
Analyse function.
To draw Mathematical Formula.
virtual void Paint(Option_t *option="")
Paint.
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.
Base class for several text objects.
Int_t CheckLatexSyntax(TString &text)
Check if the Latex syntax is correct.
virtual void PaintLatex(Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
Main drawing function.
Double_t GetHeight() const
Return height of current pad in pixels.
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)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Double_t length(const TVector2 &v)
Double_t GetXsize()
Return size of the formula along X in pad coordinates.
TLatexFormSize Readfs()
Read fs in fTabSize.
unsigned int r1[N_CITIES]
TLatexFormSize Analyse(Double_t x, Double_t y, TextSpec_t spec, const Char_t *t, Int_t length)
Analyse and paint the TLatex formula.
void GetBoundingBox(UInt_t &w, UInt_t &h, Bool_t angle=kFALSE)
Return text size in pixels.
TLatexFormSize FirstParse(Double_t angle, Double_t size, const Char_t *text)
First parsing of the analyse sequence.
void Savefs(TLatexFormSize *fs)
Save fs values in array fTabSize.
FormSize_t * fTabSize
is true during the second pass (Painting)
virtual ~TLatex()
Destructor.
static const double x1[5]
Int_t fPos
Maximum allocation for array fTabSize;.
Double_t fFactorPos
Relative size of subscripts and superscripts.
void Copy(TObject &text) const
Copy this TLatex object to another TLatex.
Mother of all ROOT objects.
TLatex helper struct holding the attributes of a piece of text.
double f2(const double *x)
Short_t Max(Short_t a, Short_t b)
Bool_t fItalic
Current position in array fTabSize;.
virtual void SetLimitIndiceSize(Int_t limitFactorSize)
Set limit for text resizing of subscripts and superscripts.
unsigned int r2[N_CITIES]
virtual void SetIndiceSize(Double_t factorSize)
Set relative size of subscripts and superscripts.