48 : fWidth(form.fWidth), fOver(form.fOver), fUnder(form.fUnder) { }
Int_t fLimitFactorSize
lower bound for subscripts/superscripts size
Bool_t fShow
! is true during the second pass (Painting)
Double_t fOriginSize
Font size of the starting font.
Int_t fTabMax
! Maximum allocation for array fTabSize;
TLatex & operator=(const TLatex &)
assignment 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.
#define ClassDef(name, id)
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)
The text postion is in NDC coordinates.
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.
TLatex()
Default constructor.
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.
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)
const Char_t * fError
! error code
Double_t GetHeight() const
Return height of current pad in pixels.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
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
! array of values for the different zones
virtual ~TLatex()
Destructor.
static const double x1[5]
Int_t fPos
! Current position in array fTabSize;
void Copy(TObject &text) const
Copy this TLatex object to another TLatex.
Double_t fFactorPos
! Relative position of subscripts and superscripts
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
! Currently inside italic operator
virtual void SetLimitIndiceSize(Int_t limitFactorSize)
Set limit for text resizing of subscripts and superscripts.
unsigned int r2[N_CITIES]
Double_t fFactorSize
! Relative size of subscripts and superscripts
virtual void SetIndiceSize(Double_t factorSize)
Set relative size of subscripts and superscripts.